You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

8 lines
282 B

location ~* \.(jpe?g|png)$ {
# @see https://github.com/OFFLINE-GmbH/oc-responsive-images-plugin/#responsive-images
add_header Vary Accept;
try_files $uri$webp_suffix @router;
}
location @router {
rewrite ^(.*)$ /plugins/offline/responsiveimages/webp.php?path=$uri;
}