Fix: Update-Button → /force-update (kein _nocache-Loop), force-update fire-and-forget ohne await (SW by-v802)

This commit is contained in:
rene 2026-05-09 20:41:57 +02:00
parent 626148436a
commit 322a9609b3
3 changed files with 10 additions and 15 deletions

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '801'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VER = '802'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.5.0'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app';
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
@ -1045,7 +1045,7 @@ const App = (() => {
banner.querySelector('#upd-btn-close').addEventListener('click', () => banner.remove());
banner.querySelector('#upd-btn-reload').addEventListener('click', () => {
location.href = '/?_nocache=' + Date.now();
location.href = '/force-update';
});
}

View file

@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache
============================================================ */
const CACHE_VERSION = 'by-v801';
const CACHE_VERSION = 'by-v802';
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