mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 13:52:20 +00:00
A same-origin auth gateway that answers an expired session with a 200 sign-in page returns HTML for both the navigation and the /api/version probe, which read as another app. The worker then unregistered and destroyed the Web Push subscription, which nothing re-creates, so reminders stopped without notice. The worker no longer unregisters while the registration holds a push subscription, or when the lookup is unavailable. It deletes its caches and passes requests to the network for the rest of its life instead. The probe now sends same-origin credentials, so a valid gateway cookie reaches HealthLog. Refs #847