mirror of
https://github.com/alexohneander/alexohneander-astro.git
synced 2025-06-30 07:21:52 +00:00
feat: add cache policy to static elements
This commit is contained in:
parent
5778f49c7b
commit
ad060e13a0
@ -11,6 +11,11 @@ ingress:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
kubernetes.io/tls-acme: "true"
|
||||
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:
|
||||
- host: alexohneander.de
|
||||
paths:
|
||||
|
Loading…
x
Reference in New Issue
Block a user