CodeZettaInterview Hub

Next.js · Caching · Junior · Concept

How does fetch caching work by default in Next.js?

Short Interview Answer

fetch responses can be cached in the Data Cache unless opted into no-store/dynamic behavior (defaults evolved by version — know your version).

Detailed Explanation

Use `cache: 'no-store'` for dynamic, `next.revalidate` for ISR-like data, and tags for invalidation. Always verify against current Next docs for default changes.

Common Mistake

Assuming browser Cache-Control alone explains Next server caching.

Did you know this answer?