diff --git a/bootstrap/edge/templates/default.conf.tftpl b/bootstrap/edge/templates/default.conf.tftpl index be6cbd2..a2fa822 100644 --- a/bootstrap/edge/templates/default.conf.tftpl +++ b/bootstrap/edge/templates/default.conf.tftpl @@ -129,6 +129,9 @@ server { client_max_body_size 64m; proxy_pass http://authentik_backend; + proxy_cache off; + proxy_no_cache 1; + proxy_cache_bypass 1; proxy_http_version 1.1; proxy_buffering off; proxy_request_buffering off; @@ -143,7 +146,8 @@ server { proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Port 443; proxy_set_header CF-Connecting-IP $http_cf_connecting_ip; - add_header Cache-Control "no-store"; + expires off; + add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0" always; } }