From 15150aa5654de4d162d318daa00951960f97c48b Mon Sep 17 00:00:00 2001 From: ange Date: Sat, 3 May 2025 04:15:38 +0000 Subject: [PATCH] feat: Cache-Control --- manifests/common/app.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manifests/common/app.yaml b/manifests/common/app.yaml index f80d931..8ca6109 100644 --- a/manifests/common/app.yaml +++ b/manifests/common/app.yaml @@ -11,6 +11,12 @@ metadata: more_set_headers "X-XSS-Protection: 1; mode=block"; more_set_headers "Content-Security-Policy: frame-ancestors 'self'"; + if ($request_uri = /) { + more_set_headers "Cache-Control: no-cache"; + } + if ($request_uri ~* ^/(config\..*\.json|i18n|home|sites|index\.html)$) { + more_set_headers "Cache-Control: no-cache, no-store, must-revalidate"; + } spec: ingressClassName: nginx tls: