Beyond Offline
Recipes
Local Download
Allow a user to "download" a file that's been generated on the client side.
Virtual Server
This recipe shows a service worker acting like a remote server.
API Analytics
Perform API usage logging without interfering with the UI layer by adding a service worker to gather the usage and use the sync API to upload gathered data from time to time.
Load balancer
This recipe shows a Service Worker containing network logic to dynamically select the best content provider accordingly to server availability.
Cache from ZIP
This recipe illustrates how to cache contents from a zipfile.
Dependency Injection
This recipe shows how a Service Worker can act as a dependency injector, avoiding hard wiring dependencies for high level components.
Request Deferrer
This recipe shows how to enqueue requests while in offline in an outbox-like buffer to perform the operations once the connection is regained.
Has it been useful?
Tell us what you think of this recipe by leaving a comment!