Fix /set offline cache: save markers and page assets on first visit
Deploy / deploy (push) Successful in 29s
Deploy / deploy (push) Successful in 29s
The worker isn't controlling the page on the first visit, so warm-up fetches bypassed it and no images were cached. The page now writes markers, its own JS/CSS/fonts and /set/ straight into the cache and only then shows 'Works offline'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// Offline cache for /set (screen markers). Crews often have no signal on set:
|
||||
// once the page has loaded once, it and every marker image work offline.
|
||||
// Must match OFFLINE_CACHE in components/set/MarkerPicker.tsx
|
||||
const CACHE = "ttvfx-set-v1";
|
||||
|
||||
self.addEventListener("install", (event) => {
|
||||
|
||||
Reference in New Issue
Block a user