Fix: iOS SW-Update — SKIP_WAITING Handler, location.replace() statt reload(), no-store Header (SW by-v762)

This commit is contained in:
rene 2026-05-07 19:22:22 +02:00
parent a8b4fd781f
commit a3c8d77a14
4 changed files with 20 additions and 14 deletions

View file

@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache
============================================================ */
const CACHE_VERSION = 'by-v761';
const CACHE_VERSION = 'by-v762';
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
@ -344,6 +344,10 @@ self.addEventListener('sync', event => {
// MESSAGE — Tile-Vorausladung (Offline-Speicherung) + Queue-Steuerung
// ----------------------------------------------------------
self.addEventListener('message', event => {
if (event.data?.type === 'SKIP_WAITING') {
self.skipWaiting();
return;
}
if (event.data?.type === 'PROCESS_QUEUE') {
event.waitUntil(_processQueue());
return;