update nginx.conf

This commit is contained in:
Dawid Wysokiński 2021-03-27 18:26:32 +01:00
parent 4153903295
commit 44358bbf4d
2 changed files with 2 additions and 6 deletions

2
.gitignore vendored
View File

@ -67,3 +67,5 @@ yarn-error.log
.pnp.js
# Yarn Integrity file
.yarn-integrity
.idea

View File

@ -42,7 +42,6 @@ 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";
@ -53,10 +52,5 @@ http {
# as directory, then fall back to redirecting to index.html
try_files $uri $uri/ =404;
}
# Any route containing a file extension (e.g. /devicesfile.js)
location ~ ^.+\..+$ {
try_files $uri =404;
}
}
}