Webp format is the rage now for images on the web as it guarantees faster loading times due to small file sizes. Recently I deployed the Converter for Media – Optimize images | Convert WebP & AVIF – WordPress plugin | WordPress.org on my site but sadly this error appeared:
Server configuration error
It appears 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 when an image is loaded, but the last redirect from cache is performed.
Error codes: rewrites_cached
I use a free Cloudflare account on this site so to fix this issue I had to ask Cloudflare to stop caching my images specifically the .jpeg, .jpg and .png extensions.
Doing this is simple. Login to Cloudflare >> Cache Rules and Create a rule.
Set everything as shown below and deploy it.
Go back to the Converter for Media dashboard, click on CDN Settings and fill out your Cloudflare Zone ID and API Token. Detailed instructions for this can be found here; Configure Cloudflare Caching to use with the Converter for Media plugin.
Purge everything in Cloudflare and clear your WordPress cache (if you use a WordPress cache plugin or server cache system). The error should be gone now, and you should be able to convert even pre-existing images on the site.
Hope this helps, Bye.
Please rate & share this article to help others. Thanks
You’ll also like:
- FIXED! How To Edit WP-Config While Using Cloudflare
- How To Setup Cloudflare Cache Rules for WordPress
- How To Fix WordPress For BlackBerry XML-RPC Endpoint Not Found Error
- How To Setup Hyper Cache On Shared Hosting Server