Minimal Viable Service Worker

In "Minimal Viable Service Worker", Jeremy Keith writes that service workers have such clear benefits to users that all websites ought to have one, and offers a minimal script that anyone can copy and paste to add caching and offline capabilities: https://adactio.com/journal/13540