Add caching to caddy

This commit is contained in:
Marko Korhonen 2024-01-28 19:13:56 +02:00
parent 6d5a7a3ee0
commit 544fcbfdf4
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -6,6 +6,11 @@ korhonen.cc, *.korhonen.cc {
encode zstd gzip
@static {
file
path *.ico *.css *.js *.gif *.webp *.avif *.jpg *.jpeg *.png *.svg *.woff *.woff2 *.pdf *.webmanifest
}
header {
Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
}
@ -17,6 +22,7 @@ korhonen.cc, *.korhonen.cc {
@homepage host korhonen.cc
handle @homepage {
header @static Cache-Control max-age=5184000
root * /var/www/korhonen.cc
file_server
}