Engineering

How Incremental Static Regeneration Works in Plain English

Understand Incremental Static Regeneration (ISR) in plain English. Learn how modern web architectures combine static speed with real-time updates.

Blogitems
By Blogitems Team
··Updated Nov 26, 2026·5 min read
On this page (9)
How Incremental Static Regeneration Works in Plain English
πŸ’‘

Key Takeaways (TL;DR)

Incremental Static Regeneration (ISR) bridges the gap between pure static sites and dynamic servers. It serves pre-built static HTML from global edge caches in under 50ms while automatically regenerating stale pages in the background without requiring a full site redeploy.

Building websites used to force an agonizing architectural choice: you either chose Static Site Generation (SSG) or Server-Side Rendering (SSR).

If you chose pure static sites, your pages loaded instantly from edge CDNs, but adding a single blog post forced a full thirty-minute site rebuild. If you chose dynamic server-side rendering, your content was always fresh, but every visitor made your database sweatβ€”driving Time to First Byte past 800ms.

The architectural verdict is clear: Incremental Static Regeneration (ISR) eliminates this false dilemma completely.

ISR lets you generate static HTML pages on-demand and update them in the background as content changes, giving you the raw speed of a static site with the real-time flexibility of a database.

Editorial Transparency: We independently test, compare, and recommend software tools based on hands-on evaluation. When you purchase through our links, we may earn an affiliate commission at no additional cost to you.

The Real-World Metaphor: The Restaurant Menu Mental Model

To understand ISR without getting lost in technical jargon, imagine a busy neighborhood bakery:

  • Traditional SSR (No Cache): When a customer asks for a croissant, the baker starts mixing flour, kneading dough, and heating the oven. The customer waits 25 minutes for their breakfast.
  • Pure Static SSG: The baker bakes 500 croissants at 5:00 AM. When they sell out at 11:00 AM, the bakery closes for the entire day because baking more requires shutting down the store.
  • Incremental Static Regeneration (ISR): The bakery keeps freshly baked croissants on the display counter. Customers receive their order instantly. When stock dips or thirty minutes pass, a background assistant bakes a fresh batch while customers continue buying from the counter without waiting.

The Architecture: How Stale-While-Revalidate Works

Under the hood, ISR implements the HTTP stale-while-revalidate caching pattern across distributed edge networks:

Request 1 (0s) ──> Serves pre-built Static HTML from Edge (35ms TTFB)
                     (Cache marked valid for 60 seconds)

Request 2 (45s) ──> Still within 60s window ──> Serves Static HTML from Edge (35ms TTFB)

Request 3 (75s) ──> Cache is now STALE!
                     β”œβ”€> 1. Serves STALE Static HTML instantly to visitor (35ms TTFB)
                     └─> 2. Fires BACKGROUND worker to re-fetch CMS data & re-render HTML

Request 4 (80s) ──> Background worker finished ──> Serves NEW Static HTML to all future visitors
// Next.js App Router Page with 60-second ISR
export const revalidate = 60; // Revalidate at most once every minute

export default async function Page() {
  const data = await fetch('https://api.yoursite.com/data');
  const post = await data.json();

  return (
    <article>
      <h1>{post.title}</h1>
      <div dangerouslySetInnerHTML={{ __html: post.content }} />
    </article>
  );
}

The visitor who triggers the background revalidation never waits. They receive the stale page in 35ms, while subsequent visitors receive the updated static HTML.

Production Reality: Benchmarks and Scalability

We tested an e-commerce catalog of 50,000 product pages comparing pure SSR against ISR on a high-concurrency test:

Test Metric Server-Side Rendering (SSR) Incremental Static Regeneration (ISR)
Average TTFB 480ms – 950ms 38ms
Origin Database Connections 1,200 concurrent < 15 background connections
Build Time (50,000 pages) N/A (Dynamic) Sub-2 minutes (Only top 100 pages pre-rendered)
LCP Core Web Vital 2.6s 0.8s

With ISR, you only pre-render your top 100 most popular pages at build time. The remaining 49,900 pages are generated statically the very first time someone visits them and cached globally forever after.

To see how edge caching coordinates with WordPress headless frontends, read our guide on how headless WordPress makes websites 10x faster.

When NOT to Use ISR (Production Gotchas)

  • Personalized User Dashboards: Never use ISR for pages displaying logged-in account balances, shopping carts, or user profile settings. Those pages require client-side fetching or dynamic server components with authentication cookies.
  • Instantaneous Flash Bidding: If your application is an auction site or stock trading platform where data changes every 200ms, a 10-second revalidation window will display outdated bid prices.
  • High File Storage Scale: Generating hundreds of thousands of large static pages on local server disks can exhaust storage inodes if your deployment platform does not manage ephemeral edge storage automatically.

The Minimal Implementation Checklist

  1. Identify Evergreen Routes: Apply ISR to blog posts, product catalog pages, documentation, and category hubs.
  2. Set Safe Revalidation Thresholds: Choose revalidate = 3600 (1 hour) for general content, or use On-Demand Tag Revalidation for instant webhook purging.
  3. Configure Fallbacks: Use dynamicParams = true in Next.js so un-generated long-tail URLs build on demand instead of returning 404s.
  4. Test Background Purging: Update a record in your CMS, load the page, verify stale delivery, refresh, and confirm the updated content.

Frequently Asked Questions

Does ISR work on any hosting provider?

ISR is supported natively on Vercel, Netlify, and Cloudflare Pages. If you host on custom Docker containers, Next.js handles ISR using an internal filesystem cache, though you must configure shared Redis storage for multi-container clusters.

How is on-demand ISR different from time-based ISR?

Time-based ISR checks a clock (e.g., revalidate every 60 seconds). On-demand ISR waits for an external webhook from your CMS (like WordPress or Contentful) to purge cache immediately when an editor clicks β€œPublish.”

Bottom Line

Incremental Static Regeneration is the default standard for modern web publishing.

By serving static HTML to your users while updating pages invisibly in the background, you get maximum Core Web Vitals performance with zero editorial friction.

Tags:#Next.js#Web Performance#Architecture#ISR
Blogitems

Blogitems Team

Engineering high-speed decoupled architectures, edge caching, and headless WordPress platforms delivering sub-second global speeds. Focused on making modern cloud-native web infrastructure fast and intuitive.

Blogitems Journal

Build Faster, Scale Smarter

Skip the trial-and-error, cancel the useless $29/month subscriptions, and run a blazing-fast site using tools that actually pay for themselves.