ctrl freak
ctrl freak

Reputation: 12405

Does Firebase Storage cache getData requests when offline?

I understood Firebase Storage not to have offline capability (because of open git requests for the feature and no mention of it in documentation) but I appear to observe it. When the client is offline and I attempt to get data from Storage, the return closure is expectedly not called. However, when the client comes back online, that closure is immediately called (returning the file from Storage), which appears to suggest that the request to get data was cached when the client was offline. Is this indeed the case?

Upvotes: 0

Views: 84

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317968

There is no caching, but the SDK will retry with the hopes that a future request will succeed.

Upvotes: 0

Related Questions