From 1b04db009af86cf9259e136d8c2a1a66b3bcda32 Mon Sep 17 00:00:00 2001 From: Koala <6156589+Shik3i@users.noreply.github.com> Date: Mon, 1 Jun 2026 03:51:03 +0200 Subject: [PATCH] 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. --- Caddyfile.example | 2 +- website/template.html | 2 +- website/www/de/index.html | 2 +- website/www/es/index.html | 2 +- website/www/fr/index.html | 2 +- website/www/index.html | 2 +- website/www/pt-BR/index.html | 2 +- website/www/ru/index.html | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Caddyfile.example b/Caddyfile.example index 99b081d..a7a701d 100644 --- a/Caddyfile.example +++ b/Caddyfile.example @@ -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" diff --git a/website/template.html b/website/template.html index fefac4b..13f90b6 100644 --- a/website/template.html +++ b/website/template.html @@ -1060,7 +1060,7 @@ # Static Caching for high performance @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" diff --git a/website/www/de/index.html b/website/www/de/index.html index 63c9464..36289f9 100644 --- a/website/www/de/index.html +++ b/website/www/de/index.html @@ -1060,7 +1060,7 @@ # Static Caching for high performance @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" diff --git a/website/www/es/index.html b/website/www/es/index.html index 4bce6ea..b21cc26 100644 --- a/website/www/es/index.html +++ b/website/www/es/index.html @@ -1060,7 +1060,7 @@ # Static Caching for high performance @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" diff --git a/website/www/fr/index.html b/website/www/fr/index.html index 4ac78ed..4ba23b3 100644 --- a/website/www/fr/index.html +++ b/website/www/fr/index.html @@ -1060,7 +1060,7 @@ # Static Caching for high performance @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" diff --git a/website/www/index.html b/website/www/index.html index 0301d8e..ca58e81 100644 --- a/website/www/index.html +++ b/website/www/index.html @@ -1060,7 +1060,7 @@ # Static Caching for high performance @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" diff --git a/website/www/pt-BR/index.html b/website/www/pt-BR/index.html index d29949a..dc22248 100644 --- a/website/www/pt-BR/index.html +++ b/website/www/pt-BR/index.html @@ -1060,7 +1060,7 @@ # Static Caching for high performance @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" diff --git a/website/www/ru/index.html b/website/www/ru/index.html index 65b880b..9918281 100644 --- a/website/www/ru/index.html +++ b/website/www/ru/index.html @@ -1060,7 +1060,7 @@ # Static Caching for high performance @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"