• Resolved Bruno Martinez

    (@brmartinez)


    Hello,

    I’m trying to make your plugin work here on my site, but I’m stuck on this bug:

    “Error codes: rewrites_cached. Your server uses the cache for HTTP requests. The rules from .htaccess file or from Nginx configuration are not executed every time when the image is loaded, but the last redirect from cache is performed. With each request to image, your server should execute the rules from .htaccess file or from Nginx configuration. Now it only does this the first time and then uses cache. This means that if your server redirected image to WebP format the first time, it does so on every request. It should check the rules from .htaccess file or from Nginx configuration each time during request to image and redirect only when the conditions are met. In this case, please contact your server administrator.”

    I’ve also asked the server’s theme to take a look, and they said the following:

    “I reviewed the provided information and can confirm that the error message in question is a false-positive. Each time that your website, or any of its pages or content is accessed, the directives present in the .htaccess file are being read and executed by Apache. The cPanel service does not include a redirect caching option that we can enable or disable on our end. This is most likely an issue with the plugin itself, however, I am unable to provide more information on why it is displaying this error.”

    Can you help me fix this?

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hello @brmartinez,

    Thanks for your message.

    Can you give me configuration of your server? Link to it can be found on the settings page of plugin in the section “We are waiting for your message” – please take a screenshot of the ENTIRE page and send it to me.

    Best,
    Mateusz

    Thread Starter Bruno Martinez

    (@brmartinez)

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @brmartinez Thank you for sending the configuration. I have checked and confirm that the error appears correctly.

    The plugin tries to download the .png file twice by cURL using the same URL, but with different headers in the request. The second request doesn’t go through the rules in the .htaccess file – there is some cache on the proxy or CDN server.

    On the other hand, when the plugin tries to download the .png2 file twice by cURL using the same URL, such a cache does not occur. The .png2 file is an unknown format, so I assume that some cache is set up on the server for known static file extensions such as images.

    Unfortunately, your server support has most likely misled you.

    Thread Starter Bruno Martinez

    (@brmartinez)

    Thanks for explaining. I’ve informed them of this and they said it might work to disable the server side cache.

    They’ve disabled it and that warning appeared. Did it work then?

    Also, I still don’t see webp images in the home. Should they be there already?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @brmartinez Until you eliminate the server configuration error, the plugin may not work properly. First, please eliminate this problem completely and then keep checking.

    Thread Starter Bruno Martinez

    (@brmartinez)

    Sorry if it wasn’t clear, but that’s exactly what I tried to clarify on the previous message. That error message disappeared.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error codes: rewrites_cached’ is closed to new replies.