• Resolved dzseti

    (@dzseti)


    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

    (@mateuszgbiorczyk)

    Hi @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

    (@dzseti)

    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

    (@mateuszgbiorczyk)

    Yes @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

    (@dzseti)

    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, 5 months ago by dzseti.
    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @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.