commit 6f593104ba87bf73b30095430a00c09efe7c15a8
parent 1563bb67890aac942a95b10401e607cb18415a1e
Author: Kyle Barlow <kb@kylebarlow.com>
Date: Mon, 17 Aug 2026 21:23:36 -0700
Cache-bust work game scripts so stale game.js can't hide story credits
The site serves no Cache-Control headers, so heuristic caching can keep an
old game.js (which never calls KGamesShowStoryCredit) for days while the
new HTML hides the footer by default — story credits then never appear.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Esj1tf1Rgwe7odu4jqrXdG
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/games/work/index.html b/games/work/index.html
@@ -70,8 +70,8 @@
<script src="https://cdn.jsdelivr.net/npm/phaser@3.80.1/dist/phaser.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/tone@14.7.77/build/Tone.js"></script>
<script src="../../js/shared/game-shared.js"></script>
- <script src="lib.js"></script>
- <script src="game.js"></script>
+ <script src="lib.js?v=2"></script>
+ <script src="game.js?v=2"></script>
<script src="../../js/shared/touch-controls.js"></script>
<script>
// Credit for the story currently being played — shown only in Stories mode,