Title: Error Overwrite the cache-control header for WordPress&#8217;s pages using web server
Last modified: January 13, 2023

---

# Error Overwrite the cache-control header for WordPress’s pages using web server

 *  Resolved [nemesistech](https://wordpress.org/support/users/nemesistech/)
 * (@nemesistech)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-overwrite-the-cache-control-header-for-wordpresss-pages-using-web-server/)
 * 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](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](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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-overwrite-the-cache-control-header-for-wordpresss-pages-using-web-server%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-overwrite-the-cache-control-header-for-wordpresss-pages-using-web-server/#post-16376109)
 * Hi [@nemesistech](https://wordpress.org/support/users/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](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](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.

 * ![](https://ps.w.org/wp-cloudflare-page-cache/assets/icon-256x256.gif?rev=3234997)
 * [Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals](https://wordpress.org/plugins/wp-cloudflare-page-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cloudflare-page-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [iSaumya](https://wordpress.org/support/users/isaumya/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/error-overwrite-the-cache-control-header-for-wordpresss-pages-using-web-server/#post-16376109)
 * Status: resolved