Explorar o código

Add webp to expires rules for Nginx

Emmanuel Bouthenot %!s(int64=6) %!d(string=hai) anos
pai
achega
4e2954ff4c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
-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;
     access_log off;
     add_header Cache-Control "public";