Hi @qtwrk ,
I destroyed all the optimized images and and recreated them again with the webp replacement option on. All the images were converted because I see them in the uploads directory in cPanel.
But the webp files won’t load in the browser for some reason. None of them, without exeption. I’ve checked in different browsers and all of them are modern ones with webp support.
So I destroyed the optimized images again, turned off the image optimization completely and tried my luck with another image converter plugin.
This plugin showed me this error code:
It seems that your server uses the cache for HTTP requests. The rules from the .htaccess file or from the Nginx configuration are not executed every time the image is loaded, but the last redirect from the cache is executed.
Please contact your hosting support or CDN support and send them the following message:
I have a problem with the cache for HTTP requests on my website. It is preventing the dynamic redirection of JPEG or PNG files to WebP or AVIF, depending on whether the browser supports the format.
Here are possible sources for this problem:
– the server or CDN server does not support the “Vary: Accept” HTTP header or handles it incorrectly (the cache for redirects should not only be based on the URL to the file, but also on the value of the Accept header sent by the browser)
– the server or CDN server does not support or incorrectly handles the “Cache-Control: private” HTTP header (this header should be able to disable the cache for static files on the CDN server or proxy server)
I don’t have a Litespeed server so I’m using the Litespeed cache plugin with the Quic-Cloud CDN. Maybe this is the problem why my webp images won’t load in the browser. Maybe there are some CDN-settings in the Quic-Cloud which would help.
Can you help me with this issue?