rspace-online/backlog/tasks/task-135 - PWA-—-offline-su...

1.1 KiB

id title status assignee created_date labels milestone dependencies priority
TASK-135 PWA — offline support (SW + IndexedDB) Done
2026-03-29 20:52
pwa
offline
m-2
medium

Description

Write sw.js (service worker with 3 cache buckets: shell/guides/mediapipe, cache-first for shell+CDN, network-first for guides, offline fallback) and manifest.json (PWA install metadata).

Acceptance Criteria

  • #1 Three versioned cache buckets
  • #2 Shell pre-cached on install, old caches cleaned on activate
  • #3 CACHE_GUIDE_URL message handler for dynamic guide caching
  • #4 Offline fallback: cached index.html for nav, error JSON for guides
  • #5 PWA manifest with standalone display and portrait orientation

Final Summary

sw.js (210 lines): 3 cache buckets, pre-cache on install, clients.claim(), offline fallback. manifest.json with simulator shortcut.