Every page is built before anyone asks for it

Server response times fell from up to 380 ms to under 10 ms. Nothing had been prerendered.

Engineering
Release notes
Headless
Performance
NP–87 · Engineering

Next.js can build each page once, at deploy, and serve the finished HTML to every visitor. The front end asked WordPress for the list of pages to build, then read each path from a field the list didn’t have. The list came back empty, so every page was built on its first visit instead.

What changed

The numbers

Measured on a local production build, before any CDN:

One more cache bug

The posts API cached each query without its options. A request for posts without their SEO data and one with it could share a cache entry and get the wrong copy. The cache key now covers every option.

Hosting changes the absolute times. It doesn’t change the shape: a visitor gets a finished page, not one built while they wait.