Skip to content
forked from mdn/sw-test

Service Worker test repository. This is a very simple demo to show basic service worker features in action.

License

Notifications You must be signed in to change notification settings

myfreax/sw-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sw-test

Service Worker test repository. This is a very simple demo to show basic service worker features in action. The demo can be seen on our GitHub pages.

You can find a lot more out about how this works by reading Using Service Workers. In particular, read Why is my service worker failing to register? if you are having problems getting your code to do anything. You need to change the paths relative to where you are serving your files from!

Set up

To start server for this project, you can use a lightweight tool: https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb

Or if you have python on your machine, you can just do as follow:

  1. cd to project
  2. run commands below:

python 2

python -m SimpleHTTPServer 8001

python 3

python3 -m http.server 8001

then you just open: http://127.0.0.1:8001/index.html

About

Service Worker test repository. This is a very simple demo to show basic service worker features in action.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.4%
  • CSS 9.8%
  • HTML 9.8%