ops: Set nginx to ignore Pragma header for no-cache endpoints

This commit is contained in:
wiz 2023-11-18 13:22:17 +09:00
parent 82a43e25e0
commit 4070492584
No known key found for this signature in database
GPG key ID: A394E332255A6173

View file

@ -5,6 +5,7 @@ location /api/v1/services/account {
add_header 'Cache-Control' 'private, no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
proxy_hide_header Cache-Control;
proxy_hide_header Expires;
proxy_hide_header Pragma;
proxy_hide_header onion-location;
proxy_hide_header strict-transport-security;
proxy_hide_header content-security-policy;
@ -17,6 +18,7 @@ location /api/v1/services/auth {
add_header 'Cache-Control' 'private, no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
proxy_hide_header Cache-Control;
proxy_hide_header Expires;
proxy_hide_header Pragma;
proxy_hide_header onion-location;
proxy_hide_header strict-transport-security;
proxy_hide_header content-security-policy;