From 62480a439f27a64780a8bebb88bf7c8b618d367e Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Sat, 17 May 2025 09:13:36 -0500 Subject: [PATCH] use more_clear_headers/more_set_headers --- helm-chart/templates/_helpers.tpl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/helm-chart/templates/_helpers.tpl b/helm-chart/templates/_helpers.tpl index 532af97..d895400 100644 --- a/helm-chart/templates/_helpers.tpl +++ b/helm-chart/templates/_helpers.tpl @@ -34,7 +34,6 @@ server { resolver 1.1.1.1 valid=300s ipv6=off; proxy_hide_header x-amz-request-id; proxy_hide_header x-minio-deployment-id; - proxy_hide_header Cache-Control; location ~ ^([^.?]*[^/])$ { return 301 $1/; @@ -55,8 +54,8 @@ server { proxy_ssl_verify off; error_page 404 {{ .errorPage }}; - proxy_hide_header Cache-Control; - add_header Cache-Control "public, max-age={{ $.Values.maxAge }}, stale-while-revalidate={{ $.Values.staleWhileRevalidate }}, stale-if-error={{ $.Values.staleIfError }}" always; + more_clear_headers Cache-Control; + more_set_headers Cache-Control "public, max-age={{ $.Values.maxAge }}, stale-while-revalidate={{ $.Values.staleWhileRevalidate }}, stale-if-error={{ $.Values.staleIfError }}" always; } }