incremental static regeneration
Re-rendering a static page in the background after a set time or on demand, without rebuilding the whole site.
In more detail
With export const revalidate = 3600 a page is served from cache and regenerated at most once an hour when a request arrives after that time. Visitors keep getting the old page until the new one is ready, the stale-while-revalidate idea.
Related terms
- revalidation — Refreshing cached data or pages so they show new content, either after a time limit or on demand.
- static rendering — Rendering a page to HTML once, at build time or on a schedule, and serving that same result to every visitor.
- stale-while-revalidate — A caching strategy that answers immediately from the cache, even if out of date, while fetching a fresh copy in the background for next time.
Taught in
- Full Route Cache: Static Rendering & Segment Config — Next.js 15 & Modern App Router Architecture
- Revalidation Strategies: revalidatePath & Cache Life — Next.js 15 & Modern App Router Architecture