mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 21:39:49 +00:00
Add no-store cache header on index.html in nginx
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user