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

How to monitor caching progress #649

Closed
kaycebasques opened this issue Jun 23, 2017 · 4 comments
Closed

How to monitor caching progress #649

kaycebasques opened this issue Jun 23, 2017 · 4 comments

Comments

@kaycebasques
Copy link

Library Affected:
workbox-sw

Browser & Platform:
All

Issue or Feature Request Description:
Is there a way to keep track of workbox's progress in caching resources?

@kaycebasques kaycebasques changed the title Monitor caching progress How to monitor caching progress Jun 23, 2017
@gauntface
Copy link

@kaycebasques when you "progress" in caching resources? What sort of "progress" did you have in mind?

@kaycebasques
Copy link
Author

Say I'm downloading an entire site over a flaky cell network. I want to know when every resource has been cached.

I suppose the service worker could loop through the assets manifest array and check the status of each item?

@gauntface
Copy link

Well your service worker wont be active until all the assets have been downloaded, so what is the use case for knowing when it's downloaded?

@kaycebasques
Copy link
Author

So the active event is equivalent to what I'm looking for? Works for me

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