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

Set cache strategy for PWA to show up to date content #82

Closed
ttraenkler opened this issue Jan 12, 2020 · 1 comment
Closed

Set cache strategy for PWA to show up to date content #82

ttraenkler opened this issue Jan 12, 2020 · 1 comment
Assignees
Labels
bug Something isn't working work in progress

Comments

@ttraenkler
Copy link
Contributor

Review and set cache strategy used for PWA since by default probably cache first is set and the user will only see new content after opening the webpage twice (cache first strategy). Possibly the strategy could be set for the data/ folder to always pull updated content (network first) but cache first for longer lived assets like images .

@ttraenkler ttraenkler added bug Something isn't working PR welcome labels Jan 12, 2020
@ttraenkler ttraenkler self-assigned this Jan 12, 2020
@ttraenkler
Copy link
Contributor Author

I have verified that the default caching strategy is network first, which should ensure up to date content:
https://github.com/hanford/next-offline/blob/master/packages/next-offline/index.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working work in progress
Projects
None yet
Development

No branches or pull requests

1 participant