mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
A reverse proxy with a response-header allowlist strips X-HealthLog-Page from every real HealthLog page, and the worker then unregistered on each load and dropped Web Push subscriptions. A successful page without the marker now only sends requests to the network while the worker asks /api/version with no-store and a manual redirect. It deletes its caches and unregisters only when the answer positively is not HealthLog: a 404, a non-JSON 2xx, or JSON without the version shape. A failed probe, any other status or the HealthLog shape resumes normal service. buildSha may be null on a self-built image, so only its presence is checked. Refs #847