nextjs - ✅(Solved) Fix Docs: Revalidation behavior is instance-local by default, not clearly highlighted for multi-instance/serverless environments [1 pull requests, 3 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#92402Fetched 2026-04-08 02:51:36
View on GitHub
Comments
3
Participants
3
Timeline
8
Reactions
0
Assignees
Timeline (top)
commented ×3assigned ×1closed ×1cross-referenced ×1

Fix Action

Fixed

PR fix notes

PR #92403: docs: clarify instance-local revalidation behavior in multi-instance …

Description (problem / solution / changelog)

What?

Adds a clear warning in the "Multi-Instance Considerations" section to highlight that revalidation is instance-local by default in multi-instance or serverless environments.

Why?

While the behavior is already explained later in the section, it is not immediately obvious to most users—especially those deploying on serverless platforms like Vercel.

This can lead to confusion, as developers may assume that revalidateTag() or revalidatePath() invalidates cache globally across all instances, when in reality it only affects the instance handling the request.

How?

  • Added a short ⚠️ Important note at the beginning of the section
  • Did not modify existing content or behavior explanations
  • Improves visibility of a critical limitation without changing meaning

Fixes #92402

Changed files

  • docs/01-app/02-guides/how-revalidation-works.mdx (modified, +6/-0)
RAW_BUFFERClick to expand / collapse

What is the documentation issue?

The current documentation explains how revalidation works, including the tag system and cache invalidation, but it does not clearly highlight that revalidation is instance-local by default.

In multi-instance or serverless environments (such as Vercel), calling revalidateTag() or revalidatePath() only invalidates the cache on the instance handling the request. Other instances may continue serving stale content until they receive the invalidation signal.

This behavior is mentioned in the "Multi-Instance Considerations" section, but it is not clearly surfaced in higher-level caching or revalidation guides. As a result, developers may assume that revalidation is globally consistent by default, which can lead to confusing production behavior.

It would be helpful to add a more prominent note or warning in the main caching/revalidation documentation to clarify this limitation.

Is there any context that might help us understand?

Most developers deploy Next.js apps on serverless or multi-instance platforms where this limitation is relevant by default.

Without understanding this behavior, developers may expect revalidation to propagate globally, leading to inconsistent UI or stale data across requests.

Highlighting this earlier in the documentation (for example in caching or revalidation guides) would improve clarity and prevent confusion.

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/app/guides/how-revalidation-works

extent analysis

TL;DR

Add a prominent note to the main caching/revalidation documentation to clarify that revalidation is instance-local by default.

Guidance

  • Review the "How Revalidation Works" guide and consider adding a warning or note at the beginning to highlight the instance-local behavior of revalidation.
  • Ensure that the documentation clearly explains the implications of this behavior in multi-instance or serverless environments.
  • Consider linking to the "Multi-Instance Considerations" section from the main caching/revalidation guides to provide additional context.
  • Evaluate the documentation's structure and content to identify opportunities to improve clarity and prevent confusion for developers deploying Next.js apps on serverless or multi-instance platforms.

Notes

The suggested change aims to improve documentation clarity, but it may not address all potential issues related to revalidation in multi-instance environments. Further review and testing may be necessary to ensure that the documentation accurately reflects the behavior of Next.js apps in different deployment scenarios.

Recommendation

Apply workaround: Add a clear note to the documentation to highlight the instance-local behavior of revalidation, as this will improve clarity and prevent confusion for developers, even if it does not fully address the underlying technical limitations.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

nextjs - ✅(Solved) Fix Docs: Revalidation behavior is instance-local by default, not clearly highlighted for multi-instance/serverless environments [1 pull requests, 3 comments, 3 participants]