Skip to content

Commit 485b4a9

Browse files
author
web3blind
committed
Cache-bust app controller
1 parent 7eb90d6 commit 485b4a9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,6 @@
198198
<script src="js/ui/screens/leaderboard.js"></script>
199199

200200
<!-- Main App Controller (must be last) -->
201-
<script src="js/ui/app.js"></script>
201+
<script src="js/ui/app.js?v=20260621d"></script>
202202
</body>
203203
</html>

tests/player-bug-regressions.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const leaderboardJs = read('app/js/ui/screens/leaderboard.js');
3939
const characterJs = read('app/js/ui/screens/character.js');
4040
const stateEngineJs = read('app/js/engine/state-engine.js');
4141
const questsJs = read('app/js/data/quests.js');
42+
const indexHtml = read('app/index.html');
4243
const ruJs = read('app/js/i18n/ru.js');
4344
const enJs = read('app/js/i18n/en.js');
4445

@@ -133,6 +134,7 @@ test('large stale checkpoint catch-up uses archive events instead of replaying e
133134
assert.ok(/HistorySource\.getEventsRange/.test(appJs), 'archive catch-up should query event ranges');
134135
assert.ok(/state\.headBlock = endBlock/.test(appJs), 'archive catch-up should advance checkpoint past empty blocks');
135136
assert.ok(/arena: true/.test(appJs), 'arena should refresh when duel events arrive during catch-up');
137+
assert.ok(/js\/ui\/app\.js\?v=20260621d/.test(indexHtml), 'main app controller must be cache-busted when catch-up code changes');
136138
});
137139

138140
test('guild joining explains and enforces preparation requirements', function () {

0 commit comments

Comments
 (0)