From 89ad40bb88cde9ab1ef57ce4592646b3af6986b3 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Fri, 16 May 2025 20:51:58 -0500 Subject: [PATCH] add stale-if-error --- helm-chart/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-chart/templates/_helpers.tpl b/helm-chart/templates/_helpers.tpl index 3f878b6..4171a7c 100644 --- a/helm-chart/templates/_helpers.tpl +++ b/helm-chart/templates/_helpers.tpl @@ -54,7 +54,7 @@ server { proxy_ssl_verify off; error_page 404 {{ .errorPage }}; - add_header Cache-Control "public, max-age={{ $.Values.maxAge }}, stale-while-revalidate={{ $.Values.staleWhileRevalidate }}" always; + add_header Cache-Control "public, max-age={{ $.Values.maxAge }}, stale-while-revalidate={{ $.Values.staleWhileRevalidate }}, stale-if-error={{ $.Values.staleIfError }}" always; } } {{- end }}