Corrected caddy caching for caddy v2

This commit is contained in:
2025-01-24 18:00:09 +00:00
parent 6f35c5aea4
commit 7d19feecdf

View File

@@ -4,16 +4,15 @@
}
(site) {
@cachedFiles {
path *.webp *.webm *.ico *.js *.css
}
header @cachedFiles Cache-Control "public, max-age=1814400, must-revalidate"
@landing {
path / /contact* /about*
cache {
ttl 86400s
}
}
handle /_app/* {
cache {
ttl 86400s
}
reverse_proxy site:3000
}
handle @landing {
@@ -25,9 +24,6 @@
}
}
handle /repo* {
cache {
ttl 86400s
}
uri strip_prefix /repo
reverse_proxy repo-placeholder:80
}