service-worker - Implement offline-ready service workers
Provides vanilla JavaScript patterns for offline support, versioned caching, update handling, background sync, and PWA functionality without Workbox.
Tags
Updated: 2026-09-30Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Register service workers
- Precache application assets
- Clean up old caches
- Apply cache-first strategies
- Apply network-first strategies
- Serve offline fallbacks
- Handle service worker updates
- Handle skip-waiting messages
Inputs
- Application asset list
- Caching strategy requirements
- Offline fallback page
- Service worker scope
Outputs
- Service worker files
- Registration script
- Versioned caches
- Offline responses
- Update notifications
Requirements
- Service Worker-capable browser
- HTTPS or localhost
- Read, Write, and Edit access
