• Hello,

    We have been using the plugin with the workers mode on our site for a while, but we have been getting pretty inconsistent results. Sometimes I get cf-cache-status: HIT and other times it will be DYNAMIC. This is the case for all the subpages on the site too. We’re not making any changes to the site in the meantime either. I’m also not sure if the preloader works correctly for us.

    It’s most likely due to something I missed, therefore I wonder if you know any ways to fix this? If you need more information I’m happy to provide it, thank you.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    When you see cf-cache-status: DYNAMIC please do look at the header value of x-wp-cf-super-cache-worker-status as it shows DYNAMIC when the cache is actually MISS. Then after the first request, it becomes HIT.

    Also most importantly as I can see you have custom cookies being set on your pages (set-cookie). As I said may times before when Cloudflare sees custom cookie in the page, it will not cache the page thinking the cookie value might be used to show dynamically. But when pages are served from cache, PHP will not get chance to generate dynamic content. That is why CF doesn’t cache the pages. if you remove the plugin that is adding this custom cookie sin your pages, the problem will be resolved.

    Screenshots:

    View post on imgur.com

    Once you remove the plugin adding the cookie, the first request will be DYNAMIC and then from the next requests it will be HIT. But look at the data of x-wp-cf-super-cache-worker-status header, as that will show you the main data.

    Also do enable Tiered Cache option inside Cloudflare dashboard under Caching section. It will help a lot.

    I do not see any issues with preloader. Please let me know what issues you are facing with the preloader.

Viewing 1 replies (of 1 total)
  • The topic ‘Workers mode inconsistent results’ is closed to new replies.