add stale-if-error

This commit is contained in:
Waylon S. Walker 2025-05-16 20:51:58 -05:00
parent 856070907e
commit 89ad40bb88

View file

@ -54,7 +54,7 @@ server {
proxy_ssl_verify off; proxy_ssl_verify off;
error_page 404 {{ .errorPage }}; 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 }} {{- end }}