/serviceworker

A service worker example

Primary LanguageJavaScript

Service Worker Example

This examples explains the Service Worker life cycle. It will takes you from the registration process to the actvation process of the worker. Note that service workers only works on HTTPS so make sure to test the example using https enabled vhost or domain of yours.

The example will first load a bunhc of users from the users generator api then will replace the response on the second request to a replacement html page.

Happy Testing :)