Next.js Discord

Discord Forum

Caching Behavior with Server Components vs. Client Components

Unanswered
Tonkinese posted this in #help-forum
Open in Discord
TonkineseOP
I'm aware that when fetching data in a server component using fetch (from route handlers), and then fetching the same data in the same request from another server component, the data is retrieved from the cache.
However, if I subsequently fetch the same data from a client component, say after clicking a button, will the request still be served from the cache?

0 Replies