diff --git a/backend/static/js/app.js b/backend/static/js/app.js index f74e65e..589e18e 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '391'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '392'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const App = (() => { diff --git a/backend/static/sw.js b/backend/static/sw.js index 9d7983e..64a26c8 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v412'; +const CACHE_VERSION = 'by-v413'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten @@ -82,8 +82,9 @@ self.addEventListener('fetch', event => { return; } - // CSS + Seiten-Module: immer Network-First — damit iOS nie veraltete CSS cached - if (url.pathname.startsWith('/css/') || url.pathname.startsWith('/js/pages/')) { + // CSS, app.js + Seiten-Module: immer Network-First — damit iOS nie veraltete Versionen cached + if (url.pathname.startsWith('/css/') || url.pathname.startsWith('/js/pages/') + || url.pathname === '/js/app.js' || url.pathname === '/js/ui.js' || url.pathname === '/js/api.js') { event.respondWith( fetch(event.request) .then(response => {