From 7f997bff84ee778734a60e0dfda1c61c74f3c82e Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 21 Aug 2026 18:35:52 +0200 Subject: [PATCH] Weltkueche-Admin: Cache-Busting der Daten-Fetches (?v=ts + no-store) Verhindert, dass die QA-Uebersicht eine gecachte production-matrix.json/dishes.json zeigt. Loest "Admin zeigt noch alten Stand nach Deploy". Co-Authored-By: Claude Opus 4.8 --- App/admin-weltkueche.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/App/admin-weltkueche.html b/App/admin-weltkueche.html index 574f085..221a965 100644 --- a/App/admin-weltkueche.html +++ b/App/admin-weltkueche.html @@ -197,10 +197,11 @@ fetch(BASE + '/api/admin', {method:'POST', headers:{'Content-Type':'application/ .then(function(r){return r.json();}) .then(function(r){ if (!r.authenticated){ location.href = 'admin.html'; return; } + var _bust = '?v=' + Date.now(); // Cache-Busting: Admin-QA zeigt IMMER die frischen Daten, nie eine gecachte JSON return Promise.all([ - fetch(D+'countries-full.json').then(function(r){return r.json();}), - fetch(D+'production-matrix.json').then(function(r){return r.json();}), - fetch(D+'dishes.json').then(function(r){return r.json();}), + fetch(D+'countries-full.json'+_bust, {cache:'no-store'}).then(function(r){return r.json();}), + fetch(D+'production-matrix.json'+_bust, {cache:'no-store'}).then(function(r){return r.json();}), + fetch(D+'dishes.json'+_bust, {cache:'no-store'}).then(function(r){return r.json();}), ]).then(function(a){ C = a[0]; PM = a[1]; DISHES = Object.keys(a[2]).filter(function(k){return k[0]!=='_';}).map(function(id){ return Object.assign({id:id}, a[2][id]); });