samuelpratt / ServiceWorker

Basic Service Worker Demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Service Worker Demo

This is a very basic Service Worker Demo based on https://developers.google.com/web/fundamentals/primers/service-workers/

  • To run up the http server run the following command docker build -t sw . && docker run -p 80:80 -i sw
  • To see that the service work is registered go to: chrome://inspect/#service-workers

If you run up the Docker container and navigate to http://localhost you should be able to ctrl-c the Docker container and the links will still work.

About

Basic Service Worker Demo

License:MIT License


Languages

Language:HTML 60.8%Language:JavaScript 39.2%