test: no server-snippet

This commit is contained in:
ange 2025-05-03 04:14:48 +00:00
parent 558541091f
commit c9a3f8f0a6
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -11,13 +11,6 @@ metadata:
more_set_headers "X-XSS-Protection: 1; mode=block"; more_set_headers "X-XSS-Protection: 1; mode=block";
more_set_headers "Content-Security-Policy: frame-ancestors 'self'"; 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: spec:
ingressClassName: nginx ingressClassName: nginx
tls: tls: