• Resolved clickingclients

    (@clickingclients)


    I’ve used this plugin for a few years and never had this problem – it seems others too are having a similar problem this week!

    I’ve a free account on Cloudflare, and 1 page rule set up (to cache everything).

    I’ve deleted and re-installed the plugin – yet same error below.

    Clicking on “TEST CACHE” yields the error message/alert below:

    Page caching seems not working for both dynamic and static pages.

    Error on dynamic page (XXXXXXXX): Cache status: DYNAMIC – The resource was not cached by default and your current Cloudflare caching configuration doesn’t instruct Cloudflare to cache the resource. Instead, the resource was requested from the origin web server.
    Error on static resource (https://XXXXXXXX.com.au/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html): Cache status: DYNAMIC – The resource was not cached by default and your current Cloudflare caching configuration doesn’t instruct Cloudflare to cache the resource. Instead, the resource was requested from the origin web server.
    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 6 replies - 1 through 6 (of 6 total)
  • Thread Starter clickingclients

    (@clickingclients)

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @clickingclients,
    Please answer the following questions:

    1. Can you please share a screenshot of the page rule section?
    2. If you are using Bot Fight mode, can you try disabling it for some moment, purge the entire cache and then try again to see if it is working?
    3. Are you using any Cache Rules? If so, please share screenshot of them.
    4. Please make sure Development Mode is disabled inside your Cloudflare account.

    I can see the headers are showing correctly, so this is definitely something at the CF end that is causing this issue.

    • This reply was modified 1 year, 10 months ago by iSaumya.
    Thread Starter clickingclients

    (@clickingclients)

    1. Rule as mentioned above https://drive.google.com/file/d/1o8_xsnFtLgSeo97lJqeLCpmfM6NpW1gx/view?usp=share_link
    2. Bot Fight mode is off.
    3. “No rules have been created.”
    4. Dev mode is disabled.

    Server service – redis and varnish on – https://drive.google.com/file/d/1lDpcn-pearN18rYIgoheFitnpOMWNUg6/view?usp=share_link
    Varnish support “off” on your plugin.

    “Disable XML-RPC Protocol Support completely” via Asset Cleanup.

    WordFence on

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @clickingclients,
    I see absolutely no reason for the cache not to work. The Page rule is perfect, the response headers are also good.

    Couple of tings I have found and I want you to try:

    1. Can you try after disabling Wordfense?
    2. Another thing in your website is that though the cf-cache-status is DYNAMIC, there is actually an age being shown which basically denotes how long the page is in cache: https://i.imgur.com/ud7b6n7.jpeg
    3. Can you please check who is adding these response headers and try removing them: https://i.imgur.com/Xo0z9BL.jpeg
    4. Also, please share a screenshot of your DNS page
    Thread Starter clickingclients

    (@clickingclients)

    Thanks for your help with this Saumya.

    1. Tried this – no change.
    2 & 3. Cloudflare is adding them.
    4. I’ve discovered this site is using CLOUDFLARE ENTERPRISE via Cloudways admin panel. So the IP in the DNS is not that of the website server, but CloudFlares IP addresses connected with Cloudways Enterprise account with Cloudflare. I believe my own account with Cloudflare was being ignored/overwritten.

    Could that be it?

    UPDATE: I removed Cloudflare Enterprise via Cloudways and restored it via my own Cloudflare account. Tested and it works as it should.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @clickingclients,
    Yes, the Cloudflare enterprise was the problem. That’s why I asked for the screenshot of your DNS to check if you are using CF Enterprise. Anyways, as you have removed CF enterprise, everything should be good now.

    I’m resolving this thread now. If you love using the plugin, please consider sharing a review in the review section.

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