mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-18 23:26:17 +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:
@@ -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