Skip to content

zalun/serviceworker-cookbook

 
 

Repository files navigation

ServiceWorker Cookbook

It's online. It's offline. It's a Service Worker!

What is a recipe

  • Single contained use case
  • Simple interface for output
  • Documented code
  • Tests

Ideas for cooking sessions

  • Generic fallback
  • Immediate claim
  • Cache on install
  • Cache on network response
  • Fetch from cache, falling back to network
  • Fetch from cache, then network
  • ServiceWorker-side templating
  • Push & Fetch
  • Push & Notification
  • Backgroundsync

Similar projects & prior art

Attributions

MealKeeper Icon by Shlyapnikova, Creative Commons (Attribution 3.0 Unported)

About

It's online. It's offline. It's a Service Worker!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.4%
  • HTML 14.6%
  • CSS 3.0%