service-worker Basic "stale while revalidate" Service Worker Just add the npm package @frank-mayer/service-worker to your project and register its index.js as your service worker.