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

Delay precaching #1283

Closed
merlinnot opened this issue Feb 7, 2018 · 1 comment
Closed

Delay precaching #1283

merlinnot opened this issue Feb 7, 2018 · 1 comment

Comments

@merlinnot
Copy link

I have an app which loads some data through web channels. I’d like to be able to load an application shell and all relevant data before service worker starts downloading any assets, but I’d like the service worker to cache those files which are a part of the shell/current view.

My desired scenario goes as follows:

  1. User requests the page
  2. index.html is downloaded alongside with service worker (HTTP2 push)
  3. Service worker is installed and activated.
  4. Appliaction shell is downloaded and precached by a service worker.
  5. Relevant data is downloaded via web channels/web sockets/whatever
  6. Some additional modules which should also be cached and are not critical are downloaded
  7. Service worker precaching is programmatically activated so it downloads any other resources in the background.

Hope you will find my use case relevant :)

@jeffposnick
Copy link
Contributor

Thanks! Closing in favor of tracking this in #155

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

2 participants