Fix: Offline-Score Cache-Detection robust, SW by-v1084
Bug: APP_VER war in app.js nur lokale const, nicht window.APP_VER → offline-indicator.js öffnete Cache 'by-v0-static' statt 'by-v1083-static' → fast alle Stufen blieben grau. Fixes: - app.js: window.APP_VER + window.APP_VERSION explizit setzen - offline-indicator.js: _staticCache() Helper findet den aktuellen Static-Cache per Regex /^by-v\d+-static$/ — versions-unabhängig - Step 1 (App-Shell) prüft jetzt korrekt auf design-system.css UND app.js im Static-Cache, nicht mehr caches.match() mit URL
This commit is contained in:
parent
b9fe5b5bc3
commit
95dccd03be
5 changed files with 30 additions and 19 deletions
|
|
@ -3,8 +3,10 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '1083'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '1084'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt
|
||||
window.APP_VER = APP_VER; // global verfügbar für andere Module (z.B. offline-indicator)
|
||||
window.APP_VERSION = APP_VERSION;
|
||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||
// Cache-Bust-Parameter nach Update-Reload sofort entfernen.
|
||||
// Flag MUSS vor replaceState gesetzt werden — index.html liest es danach.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue