service-worker-offline-first
Installation
SKILL.md
Service Worker Offline-First Patterns
Resilient web applications that work when the network doesn't.
Caching Strategy Selection
| Strategy | Latency | Freshness | Best For |
|---|---|---|---|
| Cache-First | Fastest | Stale risk | Static assets, fonts, icons |
| Network-First | Slower | Always fresh | API calls, dynamic content |
| Stale-While-Revalidate | Fast | Eventually fresh | Semi-static content, user profiles |
| Network-Only | Network-dependent | Always fresh | Authentication, real-time data |
| Cache-Only | Fastest | Frozen | App shell, offline page |