fix: 静态资源 URL 加版本号,避免浏览器缓存旧 404 导致持续白屏 #3

Merged
kevin merged 1 commits from dsh/go_blog:fix/static-cache-busting into main 2026-08-18 18:25:32 +08:00
1 Commits
Author SHA1 Message Date
dsh c5218f35a1 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.
2026-08-18 06:25:01 -04:00