* webp config from offline imageresponsive moved separate file in includes.d
This commit is contained in:
8
config/nginx/includes.d/offline-webp.conf
Normal file
8
config/nginx/includes.d/offline-webp.conf
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user