Peter Zlatev
Peter Zlatev

Reputation: 67

Is there a way to cache some firebase data and not downloading it on every page refresh

I am using angularfire's sync arrays and the javascript SDK of firebase.I need to download about 5MB of data to fill my array so the app could work offline for a short time if it loses connection. I am afraid that the way I do things, the size of this array can easily bring me a high bill at the end of the month.

What if the user refresh's or starts and stops his/her app 100 times a month? What if 100 users do it? Is there some way to cache the array offline and only apply changes to it after I refresh the app?

Upvotes: 4

Views: 1360

Answers (1)

Peter Scott
Peter Scott

Reputation: 1316

I suggest that you take a look at AngularFire Offline which I am using for a similar use case within an Ionic hybrid mobile app and so far it looks to handle things well.

Upvotes: 1

Related Questions