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: