fix: add *.avif to Caddy static cache matcher

PageSpeed Insights flagged AVIF files as uncached because the
@static matcher only included *.webp. Adding *.avif enables
1-year Cache-Control for all AVIF assets.
This commit is contained in:
Koala
2026-06-01 03:51:03 +02:00
parent a2720da5f8
commit 1b04db009a
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ sync.koalastuff.net {
# Static Caching for high-performance PageSpeed (1 year with validation)
@static {
file
path *.ico *.css *.js *.png *.svg *.webp
path *.ico *.css *.js *.png *.svg *.webp *.avif
}
header @static Cache-Control "public, max-age=31536000, must-revalidate"