Skip to content
This is a little tutorial to illustrate the usage of service workers
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
js
lowerdir
.gitignore
LICENSE
README.md
index.html
other.html
package-lock.json
package.json
server.js
service-worker.js

README.md

service-worker-tutorial

Greenkeeper badge

This is a little tutorial to illustrate the usage of service workers

Deployment

Deploy with ZEIT Now

Edit online

Edit remark-codesandbox demo

What is included

Registration of the service worker

See main.js unter /js/main.js for the registration of the service worker.

Lifecycle events

The lifecycle events install and activate are implemented with some dummy code. Please change it to your needs.

Functional events

Currently only the functional event fetch is implemented in order to see that caching is working.

You can’t perform that action at this time.