Service Worker API Demo
Register a service worker and cache this page for offline use with the Service Worker API. Service workers require a secure context (HTTPS or localhost).
Registration
The page registers service-worker.js on load and caches the page for offline use.
${status}
Try offline
Once the worker is installed, stop the server and reload — the page should still load from the cache.
- Offline support
- Background sync
- Push notifications
- Performance optimization