An open API service indexing awesome lists of open source software.

https://github.com/nolanlawson/serviceworker-update-demo

Effort to write a ServiceWorker demo app that properly manages updates
https://github.com/nolanlawson/serviceworker-update-demo

Last synced: 11 days ago
JSON representation

Effort to write a ServiceWorker demo app that properly manages updates

Awesome Lists containing this project

README

        

serviceworker-update-demo
====

Effort to write a ServiceWorker demo app that properly manages updates, defined by a version in `package.json`.

Usage
---

Check out the code, `npm install`, then run

npm run dev

Navigate to [http://localhost:9000](http://localhost:9000). You can update the ServiceWorker version by merely changing the version number in `package.json`; the server will automatically update.

Note that the page prints the version it thinks it's on, and the ServiceWorker `console.log()`s the version it's on as well. You can also see the version in the "Cache Storage" section in the Resources tab.