feat: add cache policy to static elements

This commit is contained in:
Alex Wellnitz 2023-09-03 10:58:28 +02:00
parent 5778f49c7b
commit ad060e13a0

View File

@ -11,6 +11,11 @@ ingress:
kubernetes.io/ingress.class: nginx kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true" kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/configuration-snippet : |
if ($request_uri ~* \.(js|css|gif|jpe?g|png|woff2)) {
expires 1M;
add_header Cache-Control "public";
}
hosts: hosts:
- host: alexohneander.de - host: alexohneander.de
paths: paths: