Tagged: Image Service
- AuthorPosts
- June 29, 2023 at 10:21 am #95476RyanGuest
Hi,
I have converted all images in the library and have ensured ImageMagick is installed and WEBP is active. As far as I can see, everything is configured correctly but images are still being served as PNG instead of WEBP.
I am completely stumped as to why this is happening. Any assistance would be greatly appreciated.
+9 PointsIn a recent test, we converted all of our images to WebP and added 9 points to the Google PageSpeed score! Review the test results to see how we did it!
Upgrade to W3 Total Cache Pro and improve your PageSpeed Scores today!
June 29, 2023 at 10:41 am #95503Marko VasiljevicKeymasterHello Ryan,
Thank you for reaching out and I am happy to assist you with this.
As I can see, the images are converted:
https://www.techatcost.co.za/wp-content/uploads/2022/02/microsoft-surface-ac-adapter-65w-1-600×600.webpThe thing that I can see is that the caching and the browser caching are also handled by Cloudflare. Have you purged all cache in the W3 Total Cache and have you also purged the Cloudflare cache after converting the images?
Thanks!June 30, 2023 at 12:31 pm #95621RyanGuestThanks so much for your reply. I have cleared all cache on W3TC and on Cloudflare but can see that when I load the front-end all the images are still being served as PNG and not WEBP even though they have all been generated.
I can also see the following under the Browser Cache section in Install > Rewrite Rules
location ~* ^(?<path>.+)\.(jpe?g|png|gif)$ {
if ( $http_accept !~* “webp|\*/\*” ) {
break;
}June 30, 2023 at 12:35 pm #95724Marko VasiljevicKeymasterHello Ryan,
Thank your feedback. Are you using Nginx or Apache? Please check the nginx.conf/.htaccess file and check for the W3TC webp rules.
Also can you please change the Cloudflare Browser Cache TTL to respect the origin headers?Thanks!
July 3, 2023 at 10:11 am #95937RyanGuestHi thanks for getting back to me. I am using Nginx and have added the W3TC webp rules. I have also set Cloudflare Browser Cache TTL to respect the origin headers and it seems to be working now.
Thank you for all your help.
- AuthorPosts
- The topic ‘Image Service still serving PNG instead of WEBP’ is closed to new replies.