Service Worker Introduction

Step-by-step introduction to the Service Worker API.

Step-by-step

  1. Introduction
  2. Feature detection
  3. Register Service Worker
  4. Unregister Service Worker
  5. Event Driven
  6. Cache on install
  7. Hijack fetch
  8. Serve from cache
  9. Cache on fetch
  10. Clear cache on activate
  11. Offline with fallback
  12. Page to Service Worker
  13. Service Worker to pages
  14. Private messaging

Reset

You can unregister all service workers and clear all caches by using the reset: