diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 22a5b39..8090945 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -19,9 +19,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; - add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate" always; - add_header Pragma "no-cache" always; - add_header Expires "0" always; + add_header Cache-Control "no-store, no-cache" always; } location = /health { @@ -31,22 +29,16 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; - add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate" always; - add_header Pragma "no-cache" always; - add_header Expires "0" always; + add_header Cache-Control "no-store, no-cache" always; } location = /index.html { - add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate" always; - add_header Pragma "no-cache" always; - add_header Expires "0" always; + add_header Cache-Control "no-store, no-cache" always; try_files $uri =404; } location / { - add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate" always; - add_header Pragma "no-cache" always; - add_header Expires "0" always; + add_header Cache-Control "no-store, no-cache" always; try_files $uri $uri/ /index.html; } }