mirror of
https://github.com/alexohneander/alexohneander-astro.git
synced 2025-06-28 22:41:53 +00:00
fix: cache only big files
This commit is contained in:
parent
ad060e13a0
commit
261a6f548b
@ -12,7 +12,7 @@ ingress:
|
|||||||
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 : |
|
nginx.ingress.kubernetes.io/configuration-snippet : |
|
||||||
if ($request_uri ~* \.(js|css|gif|jpe?g|png|woff2)) {
|
if ($request_uri ~* \.(gif|jpe?g|png|woff2)) {
|
||||||
expires 1M;
|
expires 1M;
|
||||||
add_header Cache-Control "public";
|
add_header Cache-Control "public";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user