mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-07-26 12:08:15 +00:00
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:
+1
-1
@@ -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"
|
||||
|
||||
|
||||
@@ -1060,7 +1060,7 @@
|
||||
<span class="t-comment"># Static Caching for high performance</span>
|
||||
<span class="t-key">@static</span> {
|
||||
<span class="t-key">file</span>
|
||||
<span class="t-key">path</span> <span class="t-str">*.ico *.css *.js *.png *.svg *.webp</span>
|
||||
<span class="t-key">path</span> <span class="t-str">*.ico *.css *.js *.png *.svg *.webp *.avif</span>
|
||||
}
|
||||
<span class="t-key">header</span> <span class="t-val">@static</span> Cache-Control <span class="t-str">"public, max-age=31536000, must-revalidate"</span>
|
||||
|
||||
|
||||
@@ -1060,7 +1060,7 @@
|
||||
<span class="t-comment"># Static Caching for high performance</span>
|
||||
<span class="t-key">@static</span> {
|
||||
<span class="t-key">file</span>
|
||||
<span class="t-key">path</span> <span class="t-str">*.ico *.css *.js *.png *.svg *.webp</span>
|
||||
<span class="t-key">path</span> <span class="t-str">*.ico *.css *.js *.png *.svg *.webp *.avif</span>
|
||||
}
|
||||
<span class="t-key">header</span> <span class="t-val">@static</span> Cache-Control <span class="t-str">"public, max-age=31536000, must-revalidate"</span>
|
||||
|
||||
|
||||
@@ -1060,7 +1060,7 @@
|
||||
<span class="t-comment"># Static Caching for high performance</span>
|
||||
<span class="t-key">@static</span> {
|
||||
<span class="t-key">file</span>
|
||||
<span class="t-key">path</span> <span class="t-str">*.ico *.css *.js *.png *.svg *.webp</span>
|
||||
<span class="t-key">path</span> <span class="t-str">*.ico *.css *.js *.png *.svg *.webp *.avif</span>
|
||||
}
|
||||
<span class="t-key">header</span> <span class="t-val">@static</span> Cache-Control <span class="t-str">"public, max-age=31536000, must-revalidate"</span>
|
||||
|
||||
|
||||
@@ -1060,7 +1060,7 @@
|
||||
<span class="t-comment"># Static Caching for high performance</span>
|
||||
<span class="t-key">@static</span> {
|
||||
<span class="t-key">file</span>
|
||||
<span class="t-key">path</span> <span class="t-str">*.ico *.css *.js *.png *.svg *.webp</span>
|
||||
<span class="t-key">path</span> <span class="t-str">*.ico *.css *.js *.png *.svg *.webp *.avif</span>
|
||||
}
|
||||
<span class="t-key">header</span> <span class="t-val">@static</span> Cache-Control <span class="t-str">"public, max-age=31536000, must-revalidate"</span>
|
||||
|
||||
|
||||
@@ -1060,7 +1060,7 @@
|
||||
<span class="t-comment"># Static Caching for high performance</span>
|
||||
<span class="t-key">@static</span> {
|
||||
<span class="t-key">file</span>
|
||||
<span class="t-key">path</span> <span class="t-str">*.ico *.css *.js *.png *.svg *.webp</span>
|
||||
<span class="t-key">path</span> <span class="t-str">*.ico *.css *.js *.png *.svg *.webp *.avif</span>
|
||||
}
|
||||
<span class="t-key">header</span> <span class="t-val">@static</span> Cache-Control <span class="t-str">"public, max-age=31536000, must-revalidate"</span>
|
||||
|
||||
|
||||
@@ -1060,7 +1060,7 @@
|
||||
<span class="t-comment"># Static Caching for high performance</span>
|
||||
<span class="t-key">@static</span> {
|
||||
<span class="t-key">file</span>
|
||||
<span class="t-key">path</span> <span class="t-str">*.ico *.css *.js *.png *.svg *.webp</span>
|
||||
<span class="t-key">path</span> <span class="t-str">*.ico *.css *.js *.png *.svg *.webp *.avif</span>
|
||||
}
|
||||
<span class="t-key">header</span> <span class="t-val">@static</span> Cache-Control <span class="t-str">"public, max-age=31536000, must-revalidate"</span>
|
||||
|
||||
|
||||
@@ -1060,7 +1060,7 @@
|
||||
<span class="t-comment"># Static Caching for high performance</span>
|
||||
<span class="t-key">@static</span> {
|
||||
<span class="t-key">file</span>
|
||||
<span class="t-key">path</span> <span class="t-str">*.ico *.css *.js *.png *.svg *.webp</span>
|
||||
<span class="t-key">path</span> <span class="t-str">*.ico *.css *.js *.png *.svg *.webp *.avif</span>
|
||||
}
|
||||
<span class="t-key">header</span> <span class="t-val">@static</span> Cache-Control <span class="t-str">"public, max-age=31536000, must-revalidate"</span>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user