pwa-wp
pwa-wp copied to clipboard
Notify user when page update is available when served with stale-while-revalidate
If using the Stale-While-Revalidate strategy for navigation requests, an update to a given page will not be visible unless the user reloads after loading the stale page. Workbox provides a mechanism for the service worker to notify pages of cache updates. In the same way that #205 proposes we could re-use the admin bar area to notify of app updates, we could also re-use this area for notifying of content updates.
I think this is out of scope for the PWA plugin. If someone wants to implement the Stale-While-Revalidate strategy, they can do so but it would be up to the developer to implement the appropriate notice in a given theme.