Relative Content

Tag Archive for javascriptfirebasegoogle-cloud-firestorebrowser-cache

Firestore documents apparently not cached

I am trying to reduce the reads from Firestore by adding timestamps to my documents and first getting them from the cache and then only those from the database with a newer timestamp.
When I run this code, however, the documents are always retrieved from the database. The cache remains empty even though – from my understanding – the cache snapshot should have the previously retrieved documents, right?