• Resolved audiofoundry

    (@audiofoundry)


    There seems to be an issue with the lightbox when using Super Page Cache for Cloudflare by Optimole.

    For logged out users, the plugin works great, and images load perfectly in the lightbox. However, for logged in users, the image opens in the WP-content directory as normal. Disabling the WP Super Cloudflare page cache enables the lightbox to work even for logged in users, so it is almost certainly this plugin that is causing the issue.

    The WP Cloudflare super cache adds /?swcfpc=1 at the end of URLs in order to not cache certain info for logged in users. Could this addition be disrupting the way that the lightbox accesses the image file?

    Interested to hear your thoughts!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Fernando Tellado

    (@fernandot)

    Hi @audiofoundry

    I’m a huge fan of that plugin but if you add the parameters tu URL that can block the render of scripts, this plugin included.

    Have you tried to disable de preloader option in the SuperCache plugin settings?

    Thread Starter audiofoundry

    (@audiofoundry)

    Hi Fernando,

    Troubleshooting this situation actually helped me find out that there was a way to use the Cloudflare Supercache by using Cloudflare Workers rather than using the /?swcfpc=1 URL addition which relies on Page Rules. Those URLS had bothered me for a while so I made the switch, and the lightbox now works perfectly for both logged in and logged out users.

    As a result, I did not test the preloader to see if this was also a fix, so unfortunately I do not know if that would have also worked. However, the fact that the lightbox works perfectly now that Supercache is not adding any URL parameters seems to suggest that it was indeed the ‘/?swcfpc=1’ which was causing the issue.

    Hopefully that information is of interest to you! ??

    Plugin Author Fernando Tellado

    (@fernandot)

    Absolutely @audiofoundry Thanks! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue With WP Cloudflare Super Page Cache?’ is closed to new replies.