• Resolved nemesistech

    (@nemesistech)


    Hello,

    We are using Plesk on our server with NGINX as proxy and Apache with Cloudflare DNS.

    But, when I clicked on “TEST CACHE”, we do have the following issue.

    Do you have any ideas how to fix it?

    Error when testing cache:

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

    Error on dynamic page (https://www.nemesis-tech.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.

    Error on static resource (https://www.nemesis-tech.com/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html): 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.

    Regards,
    Chris

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

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

    (@isaumya)

    Hi @nemesistech,
    While looking at the response header of your pages, I can see that you are using the default Cloudflare plugin along with APO. Please note that you cannot use both this plugin and the official Cloudflare plugin along with APO. You need to choose one. If you choose to use this plugin, then you need to make sure that you have deactivated and deleted the official Cloudflare plugin from your website and also disabled APO inside your Cloudflare dashboard. Screenshot: https://i.imgur.com/XJO5eXm.jpeg

    Also, as you can see that the value of cache-control is not what it is supposed to be that is set by this plugin. This might be because of the default Cloudflare plugin or some other page caching system you have in your website which might be overriding the cache-control header value.

    Also looking at the end of the response header, I do not see the extra response headers that are added by this plugin when it is action. Which proves that this plugin is unable to work and some other page caching system is overwriting the headers. Screenshot: https://i.imgur.com/ugYm6u6.jpeg

    Basically, when using this plugin, just make sure you do not have any other page caching system in place so that the plugin can work properly and do it’s work.

Viewing 1 replies (of 1 total)

The topic ‘Error Overwrite the cache-control header for WordPress’s pages using web server’ is closed to new replies.