• Resolved zuevro

    (@zuevro)


    When I try to check if the cache is working, I get the following error.

    Page caching is working for static page but seems not working for dynamic pages.

    Error on dynamic page (https://selfevolves.com): Invalid Cache-Control response header. If you are using Litespeed Server, please disable the option Overwrite the cache-control header for WordPress’s pages using web server rules, purge the cache and retry.

    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.

    Earlier I tried to set up LiteSpeed and CDN quic.cloud, but I deleted that setting completely, recreated CloudFlare, and created a new htaccess, but the error did not go away.

    Any help would help, thanks.

    • This topic was modified 2 years ago by zuevro.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @zuevro,
    Looking at the response header of your website I do not see this plugin being active: https://i.imgur.com/S1zKe0X.jpeg

    Can you please enable this plugin, set it up and let me know so that I can check your website again to see what’s going on?

    central4all

    (@central4allgmailcom)

    Same problem here

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

    Error on dynamic page (https://seeme.baby): 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://seeme.baby/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.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @central4allgmailcom,
    Looking at the response header of your website I can see that you are using the official Cloudflare plugin + APO along with this plugin. Please note that it is not supported. You can either choose to use the Cloudflare official WordPress plugin along with APO or you can use this plugin but not both.

    If you wish to use this plugin, please delete the official Cloudflare plugin from your website and disable APO inside Cloudflare dashboard.

    Beside that, looking at the response header of your website, everything seems to be working properly. Screenshot:
    https://i.imgur.com/qHPOFAh.jpeg

    central4all

    (@central4allgmailcom)

    Is installed but is not active

    https://prnt.sc/Jl0C5HQAzTKN

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @central4allgmailcom,
    Please delete that plugin and also disable APO from the Cloudflare dashboard as according to the response header the APO is still enabled on your website.

    central4all

    (@central4allgmailcom)

    Done , but still gives error

    central4all

    (@central4allgmailcom)

    Now is ok

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Test Cache Error – Invalid Cache-Control’ is closed to new replies.