• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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