Offline support cache priority / pre-caching documents #7357
garrett-wombat
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I guess this is a two part question.
1: Is there a way to implement a cache priority within the firebase offline support. The use case is I have a bunch of critical document that i need to store offline. These critical documents may not be used frequently but should be stored and not purged over the more used, less important, documents when the cache reaches its size limit.
2: Is there a best way, to pre-cache documents for storage later. Like how workbox handles its precache. I have a feeling the answer to this one is just read all the documents within a service worker.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions