[object Object]

← back to Games Agentabrams

Arcade hub: cache-bust the games.json fetch so new games show without a hard refresh

5b0bad60e3e8a501b7804b3c7df7d0c47f6397af · 2026-07-23 15:26:30 -0700 · Steve Abrams

Files touched

Diff

commit 5b0bad60e3e8a501b7804b3c7df7d0c47f6397af
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Thu Jul 23 15:26:30 2026 -0700

    Arcade hub: cache-bust the games.json fetch so new games show without a hard refresh
---
 index.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/index.html b/index.html
index b4b6712..717be6b 100644
--- a/index.html
+++ b/index.html
@@ -94,7 +94,8 @@
     if (push !== false) history.replaceState(null, '', '#' + id);
   }
 
-  fetch('games.json').then(function (r) { return r.json(); }).then(function (data) {
+  // cache-bust so a newly-added game shows up without a hard refresh
+  fetch('games.json?cb=' + Date.now(), { cache: 'no-store' }).then(function (r) { return r.json(); }).then(function (data) {
     games = data.games || [];
     games.forEach(function (g) {
       var b = document.createElement('button');

← fd95fec Arcade: focus iframe on game load (keyboard-primary games) +  ·  back to Games Agentabrams  ·  Add Flappy Clone to the arcade 99396ea →