• Resolved nomaddaniele

    (@nomaddaniele)


    Hi there,

    I’ve installed and set up your plugin on this website but when I go to Test Cache I get this error:

    Page caching seems not working for both dynamic and static pages.
    
    Error on dynamic page (https://erasmustheatre.com): Seem that your website is not behind Cloudflare. If you have recently enabled the cache or it is your first test, wait about 30 seconds and try again because the changes take a few seconds for Cloudflare to propagate them on the web. If the error persists, request support for a detailed check.
    
    Error on static resource (https://erasmustheatre.com/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html): Seem that your website is not behind Cloudflare. If you have recently enabled the cache or it is your first test, wait about 30 seconds and try again because the changes take a few seconds for Cloudflare to propagate them on the web. If the error persists, request support for a detailed check.
    
    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.

    Despite the fact that the website is on cloudflare.

    How can I fix it?

    Thnaks

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @nomaddaniele,
    Looking at your website I found a few things/issues.

    1. The Cache-Control header has been set to no-store, no-cache, must-revalidate which is not something the plugin is setting. Which clearly means either you have some other caching plugin installed in your website which is hijacking and adding that value of cache-control header or you might have some server-level cache or rules that are adding that rule.

    Please check who is adding that rule and please remove that. When the plugin is working properly you will see the value of cache-control and x-wp-cf-super-cache-cache-control will match. Which is not the case at this time.
    Screenshot: https://i.imgur.com/i55TLgS.jpeg

    2. Also cookies are being set at the page level. Please note when cookies are loaded with the response header i.e. set-cookie header, Cloudflare will not cache the page thinking the cookie value might be used inside the page to load the page content dynamically. You should look for which plugin is adding that cookie and make sure that cookie is not loaded with the response header.
    Screenshot: https://i.imgur.com/jm3CKLx.jpeg

    3. It seems you also have some server-level cache active along with this page caching plugin. Please make sure not to use more than one page caching system on any website.
    Screenshot: https://i.imgur.com/MIUX0Pi.jpeg

    Thread Starter nomaddaniele

    (@nomaddaniele)

    Hi @isaumya

    Thank you for your detailed response! I’ll investigate further!

    Plugin Contributor iSaumya

    (@isaumya)

    OK. Let me know if you need any further help. Also if you love the plugin, please consider sharing a review.

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