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.

7 lines
282 B

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