Apollo Client with NextJS; Where is cache stored?

I am new to Apollo and my understanding may be wrong so let me clarify my question.

I am using Apollo Client in Next.js project as a graphql client.
According the official blog post, it does not cache anything on server side.

We updated our client to avoid any caching on the server side; let’s try our request again:

Does that mean cached queries are stored in browser cache? The official docs states that it caches some results of graphql queries so I am wondering where are they stored.

Apollo Client is an in-memory cache, so it will be stored in a JavaScript variable. On the server, that cache is recreated once for each request, in the browser it will live as long as your user stays on the page.

1 Like