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:
Matthew Momjian 2026-02-05 06:46:34 -05:00 committed by GitHub
parent df19f44394
commit 99568e0a74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -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;
} }
} }