* webp config from offline imageresponsive moved separate file in includes.d

This commit is contained in:
2021-11-16 22:25:10 +03:00
parent cbb1d79584
commit be1385a4a5
3 changed files with 13 additions and 9 deletions

View File

@ -0,0 +1,8 @@
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;
}