mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 06:32:03 +00:00
The worker buffered every allowlisted API read, the 60-second version poll included, and wrote it to CacheStorage before the page got it. No page could ever be opened offline to read those answers back, since every signed-in document is no-store. What the cache did do: keep one account's readings on a shared device, answer a refetch that failed right after a save with the copy from before it, and let a late write recreate the cache after the sign-out wipe. API requests and the hashed /_next/static/ chunks now go to the network untouched; the HTTP cache already holds the immutable chunks. The cache-name pattern keeps `data`, so caches older releases left behind are still deleted on activate and by the session wipe. The TypeScript copy of the allowlist and its test go with it, and the record-switch e2e spec now checks that nothing under /api/ is kept on disk before or after the switch.