index
ISR/ incremental static regeneration
export const revalidate = 10Cached static, regenerated in the background.
pattern
ISR— Incremental Static Regeneration
Cached static, regenerated in the background.
pros
- +fast + fresh
- +cdn-cached
cons
- −slight staleness
- −more moving parts
use-cases
- ecommerce
- news
- feeds
flowcached → background rebuild
- 01request
- 02serve cached
- 03background rebuild
- 04update cache
liverevalidates every 10s
ISRrender-info
live- location
- hybrid
- timestamp
- 2026-08-17T08:09:25.430Z
- build
- 2026-08-17T08:09:25.430Z
sourceapp/isr/page.tsx
app/isr/page.tsxtsx
1export const revalidate = 102 3export default function Page() {4 const data = new Date().toISOString()5 return <div>{data}</div>6}hint
production only: rapid refreshes hit the cache. wait 10 seconds, refresh again — a fresh render lands in the background.