- 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>
- 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>