outofplace lab

use cache and the static shell

Both boxes show when the server rendered them. Reload the page: the first time stays the same, the second one is new on every request.

Cached with use cache

in the static shell

Rendered once, while the page was prerendered at build time. Every visitor gets this copy until the cache revalidates or the app is deployed again.

Rendered per request

streamed in

Rendering at request time…

connection() waits for a real request. The static shell carries the fallback; this time streams in after it.