https://github.com/cvan/serviceworker-example
a working example of using Service Workers
https://github.com/cvan/serviceworker-example
Last synced: 10 months ago
JSON representation
a working example of using Service Workers
- Host: GitHub
- URL: https://github.com/cvan/serviceworker-example
- Owner: cvan
- Created: 2015-02-18T22:27:18.000Z (over 11 years ago)
- Default Branch: gh-pages
- Last Pushed: 2015-02-24T07:13:34.000Z (over 11 years ago)
- Last Synced: 2025-09-01T12:27:36.162Z (10 months ago)
- Language: JavaScript
- Homepage: https://cvan.io/serviceworker-example/
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serviceworker-example
A working example of using [Service Workers](http://www.w3.org/TR/2015/WD-service-workers-20150205/).
## Usage
A server is required for Service Workers, even if it's just a simple server running on `http://localhost` for local developement. Use a server of your choosing. Python's is good:
python -m SimpleHTTPServer
### Advanced
To temporarily disable Service Worker caching (for ease of testing), run this from your browser console:
localStorage.disable_sw = '1'
To resume Service Worker caching, run this from your browser console:
delete localStorage.disable_sw