# Research: PWA SW Updates & Offline Write Safety ## Hypothesis With cache versioning and cautious update prompts, we can avoid data loss during app updates and schema bumps while offline. ## Questions - Best timing for SW activation without disrupting writes - Handling schema migrations when a stale SW is cached - Safe rollback strategy ## Method - Simulate offline state; bump schema; observe SW activation and data integrity ## Acceptance - No data loss or corruption across update/migration - Clear UX for update available and post-update state ## Deliverables - SW update policy, cache naming, migration/rollback checklist