diff --git a/nginx.conf b/nginx.conf index 4c1d8cf..c6ad773 100644 --- a/nginx.conf +++ b/nginx.conf @@ -33,15 +33,15 @@ http { index index.html index.htm; error_page 404 /404/index.html; - # Media: images, icons, video, audio, HTC - location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { + # Fonts and media: images, icons, video, audio, HTC + location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc|ttf)$ { expires 1M; access_log off; add_header Cache-Control "public"; } # Javascript and CSS files - location ~* \.(?:css|js|woff2)$ { + location ~* \.(?:css|json|webmanifest|js|woff2|manifest)$ { try_files $uri =404; expires 1y; access_log off;