Hi @mateuszgbiorczyk ,
Cloudflare is added to the live website only. And on staging, I’m not seeing any error as it’s not proxied.
Would it be safe to test the beta on live website?
Hi,
I pasted this portion in nginx:
location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif)$ {
if ($http_accept !~* “image/webp”) {
break;
}
add_header Vary Accept;
expires 365d;
try_files /wp-content/uploads-webpc/$path.$ext.webp $uri =404;
}
This is working fine in both staging and live websites. I’m getting webp images.
Thanks a lot. It solved my problem 🙂