From 221dcc7cfe788c89be57456046f2372d03b076e4 Mon Sep 17 00:00:00 2001 From: ange Date: Sat, 3 May 2025 03:53:36 +0000 Subject: [PATCH] fix: ingress cache conditions --- manifests/common/app.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/common/app.yaml b/manifests/common/app.yaml index ad5300f..52c37bb 100644 --- a/manifests/common/app.yaml +++ b/manifests/common/app.yaml @@ -12,10 +12,10 @@ metadata: more_set_headers Content-Security-Policy "frame-ancestors 'self'"; nginx.ingress.kubernetes.io/server-snippet: | - if ($request_uri = "/") { + if ($request_uri = /) { more_set_headers "Cache-Control: no-cache"; } - if ($request_uri ~* "^/(config.*\.json|i18n|home|sites|index\.html)$") { + if ($request_uri ~* ^/(config\..*\.json|i18n|home|sites|index\.html)$) { more_set_headers "Cache-Control: no-cache, no-store, must-revalidate"; } spec: