• Hi, I hope you can assist me to resolve the below error. I get this when testing the cache, sometimes I get a successful test and other times this error, can you please assist, I reached out to cloudfare who said on their side they get a HIT status and suggested I reach out to you.

    Page caching seems not working for both dynamic and static pages.
    
    Error on dynamic page (https://bicyclemarketplace.co.za): Cache status: BYPASS - Cloudflare has been instructed to not cache this asset. It has been served directly from the origin.
    
    Error on static resource (https://bicyclemarketplace.co.za/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html): Unable to find the Cache-Control response header.
    
    Please check if the page caching is working by yourself by surfing the website in incognito mode 'cause sometimes Cloudflare bypass the cache for cURL requests. Reload a page two or three times. If you see the response header cf-cache-status: HIT, the page caching is working well.

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

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

    (@isaumya)

    Hi,
    as I can see the caches are getting bypassed for your main HTML request is because all of your webpage HTML has custom cookies in it. Screenshot: https://i.imgur.com/vZ2ESHb.png

    When Cloudflare sees any custom cookies in any webpage it thinks that the cookie might be used inside that webpage to dynamically show the content which means the page needs to be parsed via the server (i.e. PHP), so it does not cache the webpage.

    You each either remove the plugin that is adding the custom cookie or you can stay the Stripe Response Cookie option in the plugin settings and then test your site thoroughly to ensure it is working exactly as expected after stripping the cookies.

Viewing 1 replies (of 1 total)
  • The topic ‘Page caching seems not working for both dynamic and static pages’ is closed to new replies.