Auto-refreshISR
Incremental Static Regeneration
This page regenerates every 2 minutes. It combines the speed of static pages with the freshness of dynamic content.
Generated:
2026-03-01T07:38:11.283ZNext update:
2026-03-01T07:40:11.283ZHow ISR Works
1
Initial Build
Page is pre-rendered at build time
2
Serve Cached
Cached version served to users
3
Revalidate
After 2 min, page regenerates
4
Update Cache
New version replaces old cache
Product Catalog
Code Example
// Set revalidation period (in seconds)
export const revalidate = 120; // 2 minutes
export default async function ISRPage() {
// This data will be fetched at build time
// and revalidated every 2 minutes
const products = await fetchProducts();
return <ProductGrid products={products} />;
}
// You can also use revalidatePath() or revalidateTag()
// for on-demand revalidation via API routes