• Hi, I have installed this plugin and all seems to be ok. I can test in my browser and see “cf-cache-status: HIT” in the response headers.

    However, the test page is reporting “Error on dynamic page: Cache status: BYPASS” and “Error on static resource: Unable to find the Cache-Control response header.”

    So I’m wondering, is it working ok? Or is some more configuration required?

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

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

    (@isaumya)

    Hi @mcartmel,
    Looking at the response header of your website, I can see that the cf-cache-status is not HIT. But I can confirm that the plugin is working properly. You are having this issue because there is some plugin on your website which is adding a cookie named PHPSESSID within the response header.

    When Cloudflare sees a cookie is being loaded in the response header with the set-cookie header, it does not cache the page thinking the cookie values might be used inside the webpage to dynamically show some data. So, Cloudflare doesn’t cache the page. If you remove the plugin which is adding this cookie, your problem will be resolved.

    Screenshot: https://i.imgur.com/LrLlWHe.jpeg

    Now when you refresh the page, at this time the cookie does not get loaded via the response header anymore as it is already added to the browser. As a result Cloudflare is able to cache the page.

    Screenshot:
    https://i.imgur.com/FkYwWi4.jpeg
    https://i.imgur.com/vQUTMoT.jpeg

    So, unless you close the incognito window, and open a fresh incognito window and load the page again with the network tab open you will not see the cookie.

    Finally, I would say, you need to find what is adding that cookie and remove it so that it is not get loaded.

Viewing 1 replies (of 1 total)
  • The topic ‘cf-cache-status: HIT, but the test fails’ is closed to new replies.