pwa-wp icon indicating copy to clipboard operation
pwa-wp copied to clipboard

Notify user when page update is available when served with stale-while-revalidate

Open westonruter opened this issue 6 years ago • 1 comments

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.

westonruter avatar Aug 21 '19 00:08 westonruter

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.

westonruter avatar Oct 27 '20 03:10 westonruter