From 09483587033867f481e15b0df1ecf445663ffc3a Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Fri, 16 May 2025 20:57:07 -0500 Subject: [PATCH] overwrite minio cache-control --- helm-chart/templates/_helpers.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helm-chart/templates/_helpers.tpl b/helm-chart/templates/_helpers.tpl index 4171a7c..375c596 100644 --- a/helm-chart/templates/_helpers.tpl +++ b/helm-chart/templates/_helpers.tpl @@ -53,8 +53,10 @@ server { proxy_ssl_server_name on; 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; + } } {{- end }}