Skip to main content
PProfileMatch
← Path

Next.js · Next.js Data Fetching, Caching and Rendering Modes

0 XP
  1. 1 current stop: learning
  2. 2 upcoming
  3. 3 upcoming
  4. 4 upcoming
  5. 5 upcoming

Finish after stop 5

Stop 1 of 5 · Bakery at dawn

Trick to keep in mind+3 XP

If a page must know who is asking, it cannot be baked ahead of time.

A static route is rendered once, at build, and served to everyone. Reading anything that belongs to a specific request, such as cookies, headers or the query string, forces rendering per request. Settings that add a timer, a loading boundary or a list of parameters still produce the same output for every visitor, so they do not make a route dynamic.

Read it once, then a question tests whether the trick stuck.