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]); });