Browse Source

Add webp to expires rules for Nginx

Emmanuel Bouthenot 5 years ago
parent
commit
4e2954ff4c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/webserver/templates/nginx/vhost_expires.j2

+ 1 - 1
roles/webserver/templates/nginx/vhost_expires.j2

@@ -19,7 +19,7 @@ location ~* \.(?:rss|atom)$ {
 }
 }
 
 
 # Media: images, icons, video, audio, HTC
 # Media: images, icons, video, audio, HTC
-location ~* \.(?:jpg|jpeg|gif|png|ico|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
+location ~* \.(?:jpg|jpeg|webp|gif|png|ico|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
     expires 1M;
     expires 1M;
     access_log off;
     access_log off;
     add_header Cache-Control "public";
     add_header Cache-Control "public";