Add no-store cache header on index.html in nginx
This commit is contained in:
parent
9e6509f7d1
commit
d2a6bdb18c
|
|
@ -50,7 +50,17 @@ server {
|
|||
root /app/static;
|
||||
index index.html;
|
||||
|
||||
location ~* .(?:css|js)$ {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
|
||||
location = /index.html {
|
||||
add_header Cache-Control 'no-store';
|
||||
expires 0;
|
||||
}
|
||||
|
||||
location / {
|
||||
add_header Cache-Control 'no-store';
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue