JamesGJ
BuildShip16mo ago
7 replies
JamesG

Cache period?

When I first hit my API it checks against an array in Firestore, and takes ~2s to respond. Subsequent calls are much faster, which implies that the node is caching the array it pulls, but only for a few minutes.

Is there some way I can extend this caching to 24h, as the data it pulls is not updated often?
Solution
@JamesG are you in free or starter plans? They have a cold start meaning first request after a while will take little bit longer for service to be warmed up. After that subsequent requests will be faster in that session.
Was this page helpful?