Webp generated but not served
-
Hello,
I have a problem with your plugin I have installed today on my website.
The webp files were perfectly generated but I was surprised that the htaccess file didn’t include any rewrite rule for webp files.
I have used one snippet I found on this forum :
RewriteEngine On # Check if browser supports WebP images RewriteCond %{HTTP_ACCEPT} image/webp # Check if WebP replacement image exists RewriteCond %{DOCUMENT_ROOT}/$1.webp -f # Serve WebP image instead RewriteRule (.+).(jpe?g|png|gif)$ $1.webp [T=image/webp,E=REQUEST_image]
# Vary: Accept for all the requests to jpeg, png and gif Header append Vary Accept env=REQUEST_image
AddType image/webp .webp
But the webp files are still not appearing.
I have mod_rewrite enabled and working correctly.Thanks for your help
Laurent
- The topic ‘Webp generated but not served’ is closed to new replies.