Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
westonruter opened this issue Aug 21, 2019 · 1 comment

Comments

@westonruter
Copy link
Collaborator

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
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant