buildprogressive / service-workers

Ready-to-use, documented Service Workers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Progressive / Service Workers

Ready-to-use, documented Service Workers. These files try to be both ready-to-use examples & learning opportunities, so all code has a lot of comments.

Contents

Simple Service Worker

A really straight-forward Service Worker that works perfectly fine for small sites and blogs.

It will serve all static assets from cache if they're available (with a fallback to the network). For HTML pages, it will always try to go over the network, but use the cache as a fallback.

About

Ready-to-use, documented Service Workers

License:The Unlicense


Languages

Language:JavaScript 100.0%