From 018122648fa76c4d6cedd59c8e7b67b7b17282ca Mon Sep 17 00:00:00 2001 From: Vuong Hoang Date: Tue, 28 Apr 2026 11:20:43 -0700 Subject: [PATCH] news-digest: cache-bust style.css + app.js with generated_at timestamp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Browsers were serving stale frontend assets after rebuilds, which hid the new world/local headline desks: the OLD app.js's refreshCounts() only counted .item children (not .headline), so the new headline desks came up with visibleItems=0 and got the .is-empty class which is display:none. Hard refresh fixed it but only for the user who knew to do that. Append ?v= to both link/script tags in digest.html.j2 and archive.html.j2 so every digest run produces a new asset URL. Works with the existing entrypoint.sh static-asset sync — no other infra needed. --- stacks/news-digest/templates/archive.html.j2 | 2 +- stacks/news-digest/templates/digest.html.j2 | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/stacks/news-digest/templates/archive.html.j2 b/stacks/news-digest/templates/archive.html.j2 index c57fd03..31d876d 100644 --- a/stacks/news-digest/templates/archive.html.j2 +++ b/stacks/news-digest/templates/archive.html.j2 @@ -5,7 +5,7 @@ Daily Digest · Archive - +