update nginx.conf
This commit is contained in:
parent
4153903295
commit
44358bbf4d
|
@ -67,3 +67,5 @@ yarn-error.log
|
|||
.pnp.js
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
.idea
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue