शब्दकोश · वेब डेवलपमेंट

Incremental Static Regeneration (ISR)

Incremental static regeneration rebuilds individual static pages in the background after deployment, so content updates without a full site rebuild.

अपडेट: अक्टूबर 6, 2026

Incremental static regeneration (ISR) is a rendering strategy, popularized by Next.js, in which pages are generated as static files but can be refreshed after the site is deployed. A page is served from cache, and once a set time has passed the next request triggers a background rebuild of just that page.

Why it matters

Pure static generation is fast but forces a rebuild for every content edit, which becomes slow on sites with thousands of pages. Pure server rendering is always fresh but costs compute on every request. ISR sits between them: visitors get static-speed responses while content stays reasonably current.

Example

// Next.js pages router
export async function getStaticProps() {
  const posts = await fetchPosts();
  return { props: { posts }, revalidate: 60 };
}

With revalidate: 60, the cached page is reused for 60 seconds. The first request after that still receives the old copy while a new version is built, and later visitors get the fresh one. This is the stale-while-revalidate pattern.

Common mistakes

  • Expecting an edit to appear instantly; one more request may still show the stale page.
  • Using it for personalized content, since the cached HTML is shared by everyone.
  • Ignoring CDN caching, which can add a second delay on top of the revalidate time.

Get notified when this term updates

Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.

यह पेज सामान्य जानकारी है, जिसे हमारी संपादकीय टीम ने लिखा है और दस्तावेज़ीकरण बदलने पर अपडेट किया जाता है। सर्वर और प्रदाता अलग-अलग होते हैं, इसलिए बदलाव पहले सुरक्षित तरीके से जाँचें। देखें: संपादकीय नीति और अस्वीकरण.