[claude] Add service worker for true offline capability (#212) #215

Merged
Timmy merged 2 commits from claude/issue-212 into main 2026-03-24 04:36:12 +00:00

2 Commits

Author SHA1 Message Date
Alexander Whitestone
333214ae7c feat: add service worker for offline capability
Some checks failed
CI / validate (pull_request) Failing after 21s
CI / auto-merge (pull_request) Has been skipped
- Create sw.js with cache-first strategy for static assets and CDN
- Network-first strategy for API calls with offline fallback
- Pre-cache core assets on install: index.html, app.js, style.css, Three.js
- Register service worker in index.html

Fixes #212

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 00:32:24 -04:00
Alexander Whitestone
4f96cd9c1d feat: add service worker for offline capability
Some checks failed
CI / validate (pull_request) Failing after 20s
CI / auto-merge (pull_request) Has been skipped
- Create sw.js with cache-first strategy for static assets and CDN files
- Precaches index.html, app.js, style.css, manifest.json, ws-client.js, Three.js module
- Network-first strategy for /api/ routes to keep live data fresh
- Cleans up stale caches on activation
- Register sw.js in index.html via inline script

Fixes #212

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 00:31:11 -04:00