Refactor Nginx config to remove redundant Expires headers (#1112)
Removed redundant 'add_header Expires 0;' lines and ensured 'expires 0;' is used consistently. Co-authored-by: Simon <simobilleter@gmail.com>
This commit is contained in:
parent
df19f44394
commit
99568e0a74
|
|
@ -57,14 +57,13 @@ server {
|
||||||
location = /index.html {
|
location = /index.html {
|
||||||
add_header Cache-Control "no-store, no-cache, must-revalidate";
|
add_header Cache-Control "no-store, no-cache, must-revalidate";
|
||||||
add_header Pragma "no-cache";
|
add_header Pragma "no-cache";
|
||||||
add_header Expires 0;
|
|
||||||
expires 0;
|
expires 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
add_header Cache-Control "no-store, no-cache, must-revalidate";
|
add_header Cache-Control "no-store, no-cache, must-revalidate";
|
||||||
add_header Pragma "no-cache";
|
add_header Pragma "no-cache";
|
||||||
add_header Expires 0;
|
expires 0;
|
||||||
try_files $uri $uri/ /index.html =404;
|
try_files $uri $uri/ /index.html =404;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue