mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 06:40:50 +00:00
chore: correct comments that describe the removed clear push and API cache
The dose tag comment still explained the clear push sent for a logged dose, the session-end wipe comment still named the worker's API cache as a live layer, and the worker's header and foreign-origin note did not match what the worker stores and when it resumes.
This commit is contained in:
1 parent
d15fb27bce
commit
e498a44d70
4 files changed
+14
-23
No files matched your search
+3
-3
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* HealthLog service worker: Web Push, a page cache for public pages, and a
|
||||
* static cache for catalogs and icons. API answers and app chunks are never
|
||||
* stored here.
|
||||
* static cache for catalogs, icons, fonts and images. API answers and app
|
||||
* chunks are never stored here.
|
||||
*/
|
||||
|
||||
// Cache names carry the release, so `activate` drops every older cache. The
|
||||
@@ -28,7 +28,7 @@ const CURRENT_HEALTHLOG_CACHES = new Set([STATIC_CACHE, PAGE_CACHE]);
|
||||
// Set by `src/proxy.ts` on every HealthLog page; same name as there.
|
||||
const HEALTHLOG_PAGE_MARKER_HEADER = "X-HealthLog-Page";
|
||||
// While set, the fetch handler declines every request. Set when a page looks
|
||||
// like another app, cleared when `confirmForeignOrigin` finds HealthLog.
|
||||
// like another app, cleared unless the probe confirms another app.
|
||||
let foreignOrigin = false;
|
||||
// One confirmation at a time, shared by a burst of navigations.
|
||||
let foreignOriginCheck = null;
|
||||
|
||||
Reference in new issue
Block a user