Title: Turn server http caching off
Last modified: December 9, 2020

---

# Turn server http caching off

 *  Resolved [dzseti](https://wordpress.org/support/users/dzseti/)
 * (@dzseti)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/turn-server-http-caching-off/)
 * Your error description and action are not very clear: “please contact your server
   administrator”
 * In the virtual host for my site I have added:
 *     ```
       <Location "%docroot%">
          CacheDisable on
       </Location>
       ```
   
 * to the template and checked that this has loaded okay.
 * But the error still shows 🙁
 * What exactly is Apache doing that it shouldn’t be doing?
 * How are you testing for http caching in your code?
 * Any help appreciated

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/turn-server-http-caching-off/#post-13764351)
 * Hi [@dzseti](https://wordpress.org/support/users/dzseti/),
 * Thank you for your message.
 * I test it by downloading the same image twice using the cURL function. The first
   time I send the headers is simulating a browser supporting WebP, and the second
   time simulating a browser that does not support WebP.
 * The size of the downloaded images should be different – if it is the same, it
   means that the second query was based on the cache, and it should not be.
 *  Thread Starter [dzseti](https://wordpress.org/support/users/dzseti/)
 * (@dzseti)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/turn-server-http-caching-off/#post-13764399)
 * Got it. That’s helpful. So I’ll have to keep digging. Could it be a WP plugin
   used for caching?
 * Thanks for a swift response 🙂
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/turn-server-http-caching-off/#post-13764438)
 * Yes [@dzseti](https://wordpress.org/support/users/dzseti/), but most often it
   is server-side cache. If you solve the problem, the error message will automatically
   disappear.
 * If you find a solution, please inform me – maybe someone will have similar settings
   to yours and will be able to suggest what you did. I will be very grateful!
 *  Thread Starter [dzseti](https://wordpress.org/support/users/dzseti/)
 * (@dzseti)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/turn-server-http-caching-off/#post-13765086)
 * In this case it was neither Apache nor the WP caching plugin that I use (WP Super
   Cache)
 * It turned out to be cloudflare.com that I use for security reasons as much as
   for caching. Had to turn off caching by enabling Development Mode
 * All working as it should. Many thanks 🙂
 * Plugin may actually work without turning off caching at cloudflare.com, if you
   only use curl to test for caching and not for processing
    -  This reply was modified 5 years, 6 months ago by [dzseti](https://wordpress.org/support/users/dzseti/).
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/turn-server-http-caching-off/#post-13765212)
 * [@dzseti](https://wordpress.org/support/users/dzseti/), this is great information.
   For users, I think there would be a problem too. One user walks in from Chrome
   and loads images in WebP, and another uses a browser that does not support WebP
   and would also be forced to redirect to WebP.
 * Could you describe step by step how you did it? If you can, add screens. I will
   be very grateful!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Turn server http caching off’ is closed to new replies.

 * ![](https://ps.w.org/webp-converter-for-media/assets/icon-256x256.png?rev=2636288)
 * [Converter for Media - Optimize images | Convert WebP & AVIF](https://wordpress.org/plugins/webp-converter-for-media/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-converter-for-media/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-converter-for-media/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-converter-for-media/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-converter-for-media/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-converter-for-media/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/turn-server-http-caching-off/#post-13765212)
 * Status: resolved