Fix: /api/notes ins SW Cacheable-Liste aufnehmen, SW by-v1089

Step 4 der Offline-Pfote (Weitere Listen) blieb weiß weil
/api/notes nicht in _CACHEABLE_GET stand — Notes-Requests wurden
vom SW gar nicht gecacht, egal wie oft sie geladen wurden.

Regex /^\/api\/notes/ ergänzt — jetzt cached der SW Notes-GETs
mit Stale-While-Revalidate (default 5min TTL).
This commit is contained in:
rene 2026-05-26 15:56:03 +02:00
parent 03725d6682
commit d47fb61abf
4 changed files with 12 additions and 11 deletions

View file

@ -4,7 +4,7 @@
============================================================ */
// ← EINZIGE Stelle für die Version — STATIC_ASSETS und CACHE_VERSION leiten sich ab
const VER = '1088';
const VER = '1089';
const CACHE_VERSION = `by-v${VER}`;
const CACHE_STATIC = `${CACHE_VERSION}-static`;
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
@ -175,6 +175,7 @@ const _CACHEABLE_GET = [
/^\/api\/walks/,
/^\/api\/lost/,
/^\/api\/expenses/,
/^\/api\/notes/,
// Drei Welten — offline-fähig
/^\/api\/streak\/\d+/,
/^\/api\/forum\/threads/,