Fix: /update-Endpunkt zum manuellen SW-Cache-Reset + STATIC_ASSETS bereinigt

/update loescht SW + alle Caches via JS und leitet zur App zurueck.
Alter SW hat /update nie gecacht -> immer frisch vom Server.
STATIC_ASSETS ohne ?v= (verhindert fehlerhafte cache.addAll()-Fehler).
This commit is contained in:
rene 2026-04-14 17:33:12 +02:00
parent 619ff559e6
commit 1c6ec6f17e
2 changed files with 48 additions and 5 deletions

View file

@ -9,11 +9,11 @@ const CACHE_STATIC = `${CACHE_VERSION}-static`;
// index.html wird NICHT pre-gecacht (immer Network-First)
const STATIC_ASSETS = [
'/css/design-system.css',
'/css/layout.css?v=32',
'/css/components.css?v=32',
'/js/api.js?v=32',
'/js/ui.js?v=32',
'/js/app.js?v=32',
'/css/layout.css',
'/css/components.css',
'/js/api.js',
'/js/ui.js',
'/js/app.js',
'/manifest.json',
'/icons/icon-192.png',
];