Service Workers - New Update Available sample
Switch branches/tags
Nothing to show
Clone or download
Latest commit 975ad2e May 15, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Updated Readme May 30, 2018
dog.jpg Updated read slightly May 14, 2018
index.html Tidied up code a little Jun 10, 2018
service-worker.js Tidied up code a little Jun 10, 2018

README.md

Have you ever been on a website and noticed a popup notification that suggests that there is a new version of the site available? I recently visited Google’s Inbox and noticed a notification a little like the image below.

PWA New version available

If you'd like to learn how to create this for your site and for a step by step guide, please visit my blog at deanhume.com.

This repo contains a basic example that will show you how to add a notification to your site and display it each time that there is a new version of the service worker available. You’ll also learn how to refresh the page, so that the user is up to date and has the latest version of any cached files.