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

Use serviceworker to cache github responses #30

Open
5 tasks
SleeplessByte opened this issue Oct 21, 2019 · 0 comments
Open
5 tasks

Use serviceworker to cache github responses #30

SleeplessByte opened this issue Oct 21, 2019 · 0 comments

Comments

@SleeplessByte
Copy link
Member

SleeplessByte commented Oct 21, 2019

  • Cache app
  • Cache github content
  • Ensure it releases the cache on a "hard reload" (Cache-control: no-cache)
  • Show a snackbar on new version available, and reload after a delay
  • CACHE_FIRST but still load network and replace. Emit custom event if necessary to reload data on the page. Use a hook, so we don't need to keep track manually.

I recommend workerbox.

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

No branches or pull requests

1 participant