From c9a3f8f0a63a3f78ef683a23a243850edecd866b Mon Sep 17 00:00:00 2001 From: ange Date: Sat, 3 May 2025 04:14:48 +0000 Subject: [PATCH] test: no server-snippet --- manifests/common/app.yaml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/manifests/common/app.yaml b/manifests/common/app.yaml index 924b78c..f80d931 100644 --- a/manifests/common/app.yaml +++ b/manifests/common/app.yaml @@ -11,13 +11,6 @@ metadata: more_set_headers "X-XSS-Protection: 1; mode=block"; more_set_headers "Content-Security-Policy: frame-ancestors 'self'"; - nginx.ingress.kubernetes.io/server-snippet: | - 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: