Fix: Update-Loop — index.html Script-Tags auf APP_VER synchronisiert (SW by-v889)

Root cause: ?v=885 in Script-Tags → Browser cached app.js immutable für 1 Jahr.
Nach force-update (löscht nur SW-Cache, nicht Browser-HTTP-Cache) lädt Browser
alte app.js mit APP_VER=885 → X-App-Version: 889 Mismatch → Endlosschleife.

Ab jetzt: ?v= in index.html IMMER mit APP_VER synchron halten.
This commit is contained in:
rene 2026-05-12 19:40:50 +02:00
parent 7257c9e04f
commit 437901b8e2
4 changed files with 7 additions and 7 deletions

View file

@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache
============================================================ */
const CACHE_VERSION = 'by-v888';
const CACHE_VERSION = 'by-v889';
const CACHE_STATIC = `${CACHE_VERSION}-static`;
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache