Don't cache index.html (#4277)
parent
29f14a814a
commit
f0b2a75125
@ -1,7 +1,17 @@
|
||||
server {
|
||||
root /usr/share/nginx/html;
|
||||
# Any route that doesn't have a file extension (e.g. /devices)
|
||||
|
||||
location / {
|
||||
# Any route that doesn't exist on the server (e.g. /devices)
|
||||
try_files $uri $uri/ /index.html;
|
||||
add_header Cache-Control: "no-cache, no-store, must-revalidate";
|
||||
add_header Pragma: "no-cache";
|
||||
add_header Expires: 0;
|
||||
}
|
||||
|
||||
location /assets {
|
||||
expires 1y;
|
||||
add_header Cache-Control "public";
|
||||
access_log off;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue