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
oncontentadded event #25
Comments
Currently, the But like the idea of have generic @jeffposnick Any thoughts on the matter considering you've been looking into the best way to synchronize content index entries in a web app? |
(Summarizing some thoughts from https://twitter.com/jeffposnick/status/1207784110732795910) The "source of truth" that made the most sense to me was the Cache Storage API (or IDB, if you use that for your offline data). I'm not sure what the right interval for syncing the Cache Storage API state with the Content Indexing API is, but it's been cheap enough that doing it each time my web app starts up hasn't seemed to be a problem. Listening to I don't actually see a need for a |
Hello. At the moment, if I have a complex service worker that wants to take notice of content being added, I can either
index.add()
index.getAll()
& diff, checking for new contentSince we have this index, & this index already can tell us when content goes away, it would also be nice to know when content is added. This would be a more normalized path than (1) or (2).
The text was updated successfully, but these errors were encountered: