duimstok.prorail.nl/public
Randy Fischer b005193dbc Request persistent storage after first save
IndexedDB data can be evicted under storage pressure, especially on iOS
Safari. navigator.storage.persist() asks the browser to keep our data. On
Chromium+Firefox it succeeds silently when conditions allow (installed PWA,
engagement heuristics); on Safari it typically grants only for installed
PWAs.

- persistentStorage.js: isPersisted() and requestPersistence() with graceful
  fallback when the Storage API is unavailable.
- persistence.js: request persistence once, after the first successful save —
  a heuristic that works across Firefox (user gesture context) and
  Chromium/Safari (data-stored context).
- sw.js: bump cache version, precache new file.
- index.html: load new script.
2026-04-15 15:54:06 +02:00
..
css Add PWA-ready MVP: split HTML/CSS/JS + DDD layering + service worker 2026-04-15 15:25:38 +02:00
icons Add PWA-ready MVP: split HTML/CSS/JS + DDD layering + service worker 2026-04-15 15:25:38 +02:00
js Persist uploaded order CSVs across app restarts 2026-04-15 15:47:15 +02:00
index.html Request persistent storage after first save 2026-04-15 15:54:06 +02:00
manifest.webmanifest Add PWA-ready MVP: split HTML/CSS/JS + DDD layering + service worker 2026-04-15 15:25:38 +02:00
sw.js Request persistent storage after first save 2026-04-15 15:54:06 +02:00