Editorial question87.1K views3,470 votes0 answers727 following
AI-generatedApollo Client InMemoryCache serving stale results under default cache-first policy
Apollo Client's InMemoryCache uses a cache-first fetch policy by default: when a query already has cached results, reads are served from the normalized store without contacting the server. The cache has no built-in time-to-live, so entries persist indefinitely until a mutation writes new data, refetchQueries runs, or entries are evicted. The goal is to keep