diff --git a/nginx.conf.sample b/nginx.conf.sample index d22edd0d5f5f0..2151197123f09 100644 --- a/nginx.conf.sample +++ b/nginx.conf.sample @@ -112,7 +112,7 @@ location /static/ { rewrite ^/static/version\d*/(.*)$ /static/$1 last; } - location ~* \.(ico|jpg|jpeg|png|gif|svg|webp|js|css|swf|eot|ttf|otf|woff|woff2|html|json)$ { + location ~* \.(ico|jpg|jpeg|png|gif|svg|webp|avif|js|css|swf|eot|ttf|otf|woff|woff2|html|json)$ { add_header Cache-Control "public"; add_header X-Frame-Options "SAMEORIGIN"; expires +1y; @@ -166,7 +166,7 @@ location /media/ { deny all; } - location ~* \.(ico|jpg|jpeg|png|gif|svg|webp|js|css|swf|eot|ttf|otf|woff|woff2)$ { + location ~* \.(ico|jpg|jpeg|png|gif|svg|webp|avif|js|css|swf|eot|ttf|otf|woff|woff2)$ { add_header Cache-Control "public"; add_header X-Frame-Options "SAMEORIGIN"; expires +1y;