We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I installed the module and checked the image is being created.
But no webp image is being served.
Below is what was added to htaccess by the module.
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{DOCUMENT_ROOT}/$1.webp -f
RewriteRule (.+).(jpe?g|png|gif)$ $1.webp [T=image/webp,E=REQUEST_image]
Header append Vary Accept env=REQUEST_image
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I installed the module and checked the image is being created.
But no webp image is being served.
Below is what was added to htaccess by the module.
~~ mdn_webp_start
RewriteEngine OnCheck 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 # ~~ mdn_webp_endThe text was updated successfully, but these errors were encountered: