Course map
Stage 1: App Router Foundations
Stage 2: The Rendering Model
Stage 3: Data, Caching and Mutations
Stage 4: Full-Stack Next.js
Stage 5: Production and Specialization

Part 10 / Topic 1 of 6

Nothing is cached by default

cacheComponents: true does not mean "everything is now cached" — it means the opposite is enforced strictly: anything with real, variable timing needs an explicit decision, either "use cache" (this part) or <Suspense> (Part 7, reused throughout Part 9). A page that reads a fresh value on every request, with no cache directive anywhere, has to look like this:

// harness/app/mandi/live/page.tsx
async function QueueStatus() {
  await new Promise<void>((resolve) => setTimeout(resolve, 150));
  return <p id="checked-at">Packing queue checked at: <span id="timestamp">{new Date().toISOString()}</span></p>;
}

export default function LiveQueuePage() {
  return (
    <main>
      <Suspense fallback={<p id="fallback">Checking the packing queue…</p>}>
        <QueueStatus />
      </Suspense>
    </main>
  );
}

Hitting this three times in a row shows a different timestamp every single time:

$ curl -s http://localhost:PORT/mandi/live | grep -o '<span id="timestamp">[^<]*</span>'
<span id="timestamp">2026-12-01T11:05:54.351Z</span>
<span id="timestamp">2026-12-01T11:05:54.528Z</span>
<span id="timestamp">2026-12-01T11:05:54.704Z</span>

And its real response headers, from a production build, confirm it directly — this is a genuine request-time read, not something quietly baked in:

$ curl -s -D - -o /dev/null http://localhost:PORT/mandi/live
x-nextjs-stale-time: 300
x-nextjs-prerender: 1
x-nextjs-postponed: 1
Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate

x-nextjs-postponed: 1 is Next's own marker for "this part of the response was deferred past the static shell" — the mechanism behind Partial Prerendering. Full file: examples/01-live-queue-page.tsx.

Done here? The practice set for Part 10 — including the solutions — is on the part page.

Search the guide