Nginx and webp troubles
-
I have a vps server with a nginx ( i have configured it
location ~* ^/.+\.(png|jpg|jpeg)$ { set $red Z; if ($http_accept ~* "webp") { set $red A; } if (-f $request_filename.webp) { set $red "${red}B"; } if ($red = "AB") { add_header Vary Accept; rewrite (.*) $1.webp redirect; } }
and have green WEBp photo in admin area of EWWW https://joxi.ru/4DmBVRzUPq09mP
but at the site all photos only jpeg https://joxi.ru/LVm6g39S03Bx2Zi’ve tried to use Alt rewrite – it’s work (all photos become WEBp https://joxi.ru/LQ2KWqLuXOzv2j)
but with this option i have a problem with visual composer elements, like this :
https://joxi.ru/K823N8ztKzEKmO
in normal case look like this https://joxi.ru/WKAxZMbcqVWRm8
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Nginx and webp troubles’ is closed to new replies.