firefoxrebo / serviceworker

A service worker example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 :)

About

A service worker example


Languages

Language:JavaScript 84.7%Language:HTML 15.3%