Next.js use cache, cacheLife and cacheTag: How One View Counter Rebuilt Every Page
use cache stores a result, cacheLife decides when it goes stale, cacheTag lets you throw it out on demand. When to use each, and where TanStack Query fits.
8 min read

use cache stores a result, cacheLife decides when it goes stale, cacheTag lets you throw it out on demand. When to use each, and where TanStack Query fits.

What a long list of Next.js <Link>s really costs in prefetch requests, measured on this blog, and how partialPrefetching shares one App Shell per route instead.

Reading a cookie with cookies() in the Next.js root layout opts every route out of static rendering. What it cost this blog, measured, and how to fix a theme flash without it.
How Next.js prefetch works in <Link>, why it makes navigation fast, and when to disable it.
A compressed reference of Next.js caching layers and controls (App Router).