1.0.0 • Published 8 years ago

service-worker-precache v1.0.0

Weekly downloads
2
License
ISC
Repository
-
Last release
8 years ago

Service Worker Precache

Why?

We at @gdnmobilelab are experimenting a lot with Service Workers. One interesting area is dynamically generating our pages inside the worker - effectively treating it as if it were a fully fledged server, with routing, templating etc.

Unfortunately it doesn't work on first load, because the user hasn't downloaded the service worker yet. So this is a little script to prebake templates that live inside a Service Worker.

Usage

It is (for now) a CLI tool - after running npm install just execute service-worker-precache to see a list of arguments.