Wonderful, thanks for your reply, great to know that diff cache systems can get along!
For the Firestore IndexedDB cache, is there a way to guarantee that it will hold everything required if the app is taken offline? For example, I load a apex document that has many sub-sections in other collections. All these sub-section branches are required in order for the apex doc to work. So when the apex doc is loaded all refs it has to sections in other collections are resolved/fetched as well.
Can I know for certain that all the sub-sections required by the apex doc are locally cached? I understand there is a way to tell if a query is being loaded remotely or by cache on a query-by-query basis. Is there also a way to get a report on the whole local cache to know if it indeed has the right aspects offline?
A little more insight on how this works and also how much data the IndexedDB can hold would be very useful.
On Monday, November 6, 2017 at 11:34:02 AM UTC-6, Michael Lehenbauer wrote:
Greetings,
Firestore uses IndexedDB to store its offline cache and so it's not directly using a service worker. Of course you will likely want to use a service worker yourself to cache your own assets, and you can use workbox or other tools however you like and it won't have any interaction with Firestore.
I agree that a full-blown service worker + Firestore offline app example would be useful, but in the meantime holler if you have any questions / issues.
Hope this helps,
-Michael
There is so much good news now that PWAs and Firestore are here. I'm discovering wonderful things from each perspective, yet Firestore does not say a whole lot about what makes it's offline cache tick.
I'm thinking its got to be (or will be) Workbox handling the service-worker based caching for Firestore, does any know?
Just wondering how to go about implementing Workbox for the PWA app shell side of things, while at the same time caching dynamic Firestore queries, which apparently is automatically handled by Firestore if it is enabled?
Right about now it would be great to see an article providing deeper insight into how Firestore uses the service-worker under the hood and then how that same worker might be used to also manage the usual PWA assets.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.