krz/krz.sh

clone: git clone https://gitbay.org/krz/krz.sh.git

8095f288917d0db85c36041e2cd8850b04dbaa12

verified · cmc

author: Christian Cleberg <hello@cleberg.net> · 2026-08-12T05:13:57Z

cachebust icon urls

static assets are served with max-age=31536000, so cloudflare and
browsers kept serving the old favicon after it changed. use the same
cachebust already applied to main.css.
 templates/base.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/templates/base.html b/templates/base.html
index 9fe64c5..1d2a76c 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -7,12 +7,12 @@
   <meta name="description" content="{% block description %}{{ config.description }}{% endblock description %}">
   <meta name="color-scheme" content="dark light">
   <link rel="stylesheet" href="{{ get_url(path="main.css", cachebust=true) | safe }}">
-  <link rel="icon" href="{{ get_url(path="favicon.svg") | safe }}">
-  <link rel="apple-touch-icon" href="{{ get_url(path="apple-touch-icon.png") | safe }}">
+  <link rel="icon" href="{{ get_url(path="favicon.svg", cachebust=true) | safe }}">
+  <link rel="apple-touch-icon" href="{{ get_url(path="apple-touch-icon.png", cachebust=true) | safe }}">
   <meta property="og:type" content="website">
   <meta property="og:site_name" content="{{ config.title }}">
   <meta property="og:url" content="{{ current_url | default(value=config.base_url) | safe }}">
-  <meta property="og:image" content="{{ get_url(path="og.png") | safe }}">
+  <meta property="og:image" content="{{ get_url(path="og.png", cachebust=true) | safe }}">
   <meta property="og:image:width" content="1200">
   <meta property="og:image:height" content="630">
   <meta name="twitter:card" content="summary_large_image">