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
- Host: GitHub
- URL: https://github.com/nolanlawson/serviceworker-update-demo
- Owner: nolanlawson
- Created: 2016-01-18T20:21:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-18T22:50:57.000Z (over 9 years ago)
- Last Synced: 2025-03-28T22:12:42.914Z (29 days ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 16
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.