This is a little tutorial to illustrate the usage of service workers
See main.js
unter /js/main.js
for the registration of the service worker.
The lifecycle events install
and activate
are implemented with some dummy code. Please change it to your needs.
Currently only the functional event fetch
is implemented in order to see that caching is working.