update nginx.conf

This commit is contained in:
Dawid Wysokiński 2021-03-27 17:32:59 +01:00
parent 18436febe3
commit 37fb673499

View File

@ -42,17 +42,11 @@ http {
# Javascript and CSS files
location ~* \.(?:css|webmanifest|js|woff2|manifest)$ {
try_files $uri =404;
expires 1y;
access_log off;
add_header Cache-Control "public";
}
# Any route containing a file extension (e.g. /devicesfile.js)
location ~ ^.+\..+$ {
try_files $uri =404;
}
location / {
# First attempt to serve request as file, then
# as directory, then fall back to redirecting to index.html