• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue NGINX webp images with Optimus and Cache Enabler

kaboemm

New Pleskian
Hello,

I have a wordpress website running on nginx and I want to serve .webp images. For the images I use Optimus and Cache Enabler. I have this in my /etc/nginx/nginx.config:
Code:
map $http_accept $webp_ext {
    default "";
    "~*webp" ".webp";
}

And I have this in my nginx directive in Plesk for the particular webspace:
Code:
location ~* ^/wp-content/.+\.(png|jpg)$ {
    add_header Vary Accept;
    try_files $uri$webp_ext $uri =404;
}

So now everything works fine except it ONLY works on my home page. Everything is served as .webp on my homepage but nowhere else. Can someone help me figuring out why it only word on my home page?

My website is https://123sieraad.nl
 
webp is not supported by Plesk, see here:
or vote here:
 
Back
Top