From c5218f35a194c7daaa00d9f77b63a2b3d061248f Mon Sep 17 00:00:00 2001 From: dsh Date: Tue, 18 Aug 2026 06:25:01 -0400 Subject: [PATCH] fix: cache-bust static asset URLs (?v=2) Browsers cached the pre-fix 404 responses for /static/js/markdown.js and /static/css/markdown.css (responses carry Cache-Control max-age=14400), so users kept seeing broken pages after redeploy. A versioned query string forces clients to refetch the assets; bump ?v= whenever the static files change. --- templates/layouts/base.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/layouts/base.html b/templates/layouts/base.html index 8780379..6e6e782 100644 --- a/templates/layouts/base.html +++ b/templates/layouts/base.html @@ -111,13 +111,16 @@ {{define "markdown_assets"}} {{/* Markdown rendering assets: marked (pinned UMD build), DOMPurify, highlight.js and the shared renderer + styles. Include on any page that - renders Markdown (articles, comments, editor previews). */}} + renders Markdown (articles, comments, editor previews). + Local static files carry a ?v= cache-buster: bump it whenever + static/js/markdown.js or static/css/markdown.css changes, otherwise + browsers may keep serving stale cached copies. */}} - + - + {{end}} {{define "footer"}}