Go straight to the answers
Vega SEO Talks

Why does Next.js ISR (Incremental Static Regeneration) sometimes serve stale content to Googlebot while users see updated pages, and how does this affect indexing accuracy?

Answered 3-minute answer rooted in 2 pages

Because time-based ISR serves a stale page by design to the first request after the revalidation window ends. The Next.js documentation describes the sequence with a 60-second example: “After 60 seconds has passed, the next request will still return the cached (now stale) page”, while regeneration starts in the background, and only once it succeeds does the following request get the updated page. If Googlebot happens to be that first request, Google receives the old version, and it keeps that version until it crawls the page again. Users are less affected because later visits get the fresh page. For pages where accuracy matters, such as prices, stock or dates, time-based revalidation alone leaves a gap that on-demand revalidation can close.

Time-based versus on-demand revalidation

Approach When content updates Risk for crawlers
Time-based (<!–INLINECODE0–> interval) First request after expiry still gets the old page A crawl can capture stale content
On-demand (revalidatePath or revalidateTag) Cache invalidated when the content changes Lower; regeneration follows the edit
On-demand plus a warm-up request Regenerated page fetched immediately after invalidation Lowest; the next visitor or crawler gets fresh content
Dynamic rendering per request Every request No staleness, higher server cost

Sources: Next.js documentation on incremental static regeneration and Google’s post on HTTP caching for crawlers.

Reducing stale crawls

  1. Trigger on-demand revalidation from your CMS when content changes, rather than waiting for the interval.
  2. Request the page once after invalidation so regeneration completes before a crawler arrives.
  3. Shorten intervals only for pages that change often; it does not remove the first-request gap.
  4. Send accurate caching headers, such as an ETag that changes with the content; Google’s crawlers support ETag-based conditional requests.
  5. Check what Google has with URL Inspection: compare the indexed version with the live test.

How large is the effect?

It depends on how often the page changes and how often Google crawls it. A page updated once a month and crawled weekly is affected only around updates; a price page changing hourly can stay out of date in Google for a crawl cycle. Measure with URL Inspection on a sample of changed pages.

A worked example

For example, imagine a retailer using a 24-hour revalidate interval on product pages. A price drops in the morning; Googlebot crawls at noon as the first visitor since expiry and receives yesterday’s price, which then appears in a rich result. The retailer adds on-demand revalidation from its pricing system plus an immediate warm-up request, and later live tests show the new price within minutes of each change.

Next.js ISR can serve Googlebot stale content because, with time-based revalidation, the first request after expiry still receives the cached page while regeneration runs, so pages with time-sensitive content should use on-demand revalidation and a warm-up request to keep what Google crawls current.

Answers that share these roots

  1. How do you diagnose SEO issues caused by CDN caching that serves stale content to Googlebot while users see updated pages, and what cache-busting strategies resolve this without degrading performance? shares 1 page

Replies to this answer

Leave a Reply

Your email address will not be published. Required fields are marked *