Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #95476
    Ryan
    Guest

    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 Points

    In 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!

    #95503
    Marko Vasiljevic
    Keymaster

    Hello 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.webp

    The 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!

    #95621
    Ryan
    Guest

    Thanks 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;
    }

    #95724
    Marko Vasiljevic
    Keymaster

    Hello 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!

    #95937
    Ryan
    Guest

    Hi 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Image Service still serving PNG instead of WEBP’ is closed to new replies.