Webp Express not working on nginx
-
I have install e save settings for webp express.
I have generate all images with bulk convert.
For example:
https://www.viveremcasa.com/wp-content/uploads/2018/09/decoracao_com_sofa_azul_em_l.jpg.webpI edit /etc/nginx/nginx.conf and add:
include /etc/nginx/mime.types;
default_type application/octet-stream;# Webp
map $http_accept $webp_suffix {
default “”;
“~*webp” “.webp”;
}my file /etc/nginx/mime.type contains:
image/webp webp;On file /etc/nginx/sites-available/website.com.conf my server is https and i add:
location ~* ^/images/.+\.(png|jpg)$ {
add_header Vary Accept;
try_files $uri$webp_suffix $uri =404;
}i restarted nginx.service
web site is work but not webp images.
images are still displayed in jpg or png.
Did i do something wrong? forgot something? please help me…
thanks
The page I need help with: [log in to see the link]
- The topic ‘Webp Express not working on nginx’ is closed to new replies.