dgrabla / service-worker-cache-demo

Service worker demo + cache API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Service Worker demo

What is this

A small demo that shows:

  • how the fetchs are intercepted by the service worker
  • how the data is delivered from the cache
  • how the website survives a refresh

Run

Launch a simple webserver in this folder with

python -M HTTP.server 8000

or alternatively

nix lite-server

Limitations

IE is not supported.


Created for Das Büro am Draht Frontend Weekly

About

Service worker demo + cache API


Languages

Language:HTML 80.8%Language:JavaScript 19.2%