Demo repo for a minimal service worker to implement the stale-while-revalidate caching pattern, with a user notification if the origin response is different from the cache.
-
Updated
Feb 5, 2023 - HTML
Demo repo for a minimal service worker to implement the stale-while-revalidate caching pattern, with a user notification if the origin response is different from the cache.
skipWaiting() with StaleWhileRevalidate the right way
Add a description, image, and links to the stale-while-revalidate topic page so that developers can more easily learn about it.
To associate your repository with the stale-while-revalidate topic, visit your repo's landing page and select "manage topics."