I recently upgraded to the Pro plan and I’m trying to implement the Polish feature to enable webp image codec on suitable browsers. I’m using the lossless setting with Webp enabled of course.
However, it seems that my images are still loading as jpegs on all compatible browsers. I’m still also getting opportunity to use “next-gen formats” on Google Pagespeed insights, which suggests that the feature is not working.
I’m using Cloudflare + WP Rocket for caching and I have cleared both but the issue persists across all posts and pages.
To sum up: If you have Polish and Mirage, that’s about as good as it gets. If Cloudflare doesn’t convert it, you’ve done an excellent job at compressing your images. If some page test is complaining that it’s not enough, then…they’re whining about nothing.
If I run a Lighthouse test on your homepage, your scores are awesome. Desktop (top) and Mobile (bottom):
If Cloudflare doesn’t convert it, you’ve done an excellent job at compressing your images.
i don’t think that’s correct, i have taken a 2 .jpg and converted online to .webp using 2 different online services both converters made a much smaller version webp (result same size).
So its not like Cloudflare could not optimise further, it just isn’t working Polish: Lossy & Webp
Output jpg ( content-type: image/jpeg)
I would say it isn’t working, but a nice checkbox in admin
Note: at first i thought the well optimised theory is correct since we try to optimise before upload (ImageOptim) in WP (kraken.io) but free online converters reduce the file size a lot
Thanks for this update. I tested a few free WebP converters too and had a similar result, plenty of room for improvement.
I’m also using ImageOptim to optimise my images prior to upload. Could it be that Cloudflare’s Polish is not converting to WebP if Jpegs are already optimised, even if there is room for savings with WebP?
vary_header_present : The origin web server has sent a Vary header with a value other than accept-encoding. If the origin web server is attempting to support WebP, disable WebP at the origin web server and let Polish perform the WebP conversion. Polish will still work if the accept-encoding is not the only header listed within the Vary header.
I know that this is in regards to slavo’s example but I think this is a little bit beyond my understanding. Can you see any conflicts with my settings or script that would cause WebP not to work correctly?
I’m having the same problem with this webiste https://smuff.ro
I’ve activated my pro account, and polish but it seems that it doesn’t want to serve WebP.