nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

nextjs/Caching

The layered caching system that decides how fresh (or stale) your data actually is.

10 QuestionsExpertHigh Priority ~13 min read

Next.js caches at several distinct layers that are easy to conflate. Request Memoization deduplicates identical fetch calls within a single render pass. The Data Cache persists fetch results across requests and even across deployments, until it's invalidated or a revalidation interval passes. The Full Route Cache stores the rendered HTML and RSC payload for statically rendered routes. And the Router Cache stores route segments on the client for fast back-and-forward navigation.

Each layer has its own invalidation model, which is exactly why 'my data isn't updating' can have several different fixes depending on which layer is actually serving the stale value. Per-fetch cache and next.revalidate options control the Data Cache directly, while revalidatePath and revalidateTag invalidate specific cached data on demand — typically called from a Server Action right after a mutation, so the next request reflects the change instead of serving a cached one.

What you'll walk away knowing

The four distinct caching layers: Request Memoization, Data Cache, Full Route Cache, and Router Cache
What each layer caches, and how long its data persists by default
How revalidatePath and revalidateTag invalidate specific cached data on demand
How to diagnose which caching layer is responsible when data isn't updating as expected
1Discuss Full Route Cache?Advanced2Discuss Client-side Router Cache?Intermediate3Discuss Full Route Cache?Intermediate4Discuss revalidating strategies for data caching?Intermediate5Discuss Data Cache caching mechanism?Intermediate6Discuss Request Memoization caching mechanism?Intermediate7Discuss <Link> in contest of caching?Intermediate8Discuss caching mechanisms available in next js?Intermediate
All Topics
1
Basics
Project Structure
Runtime
Compiler
2
SSG
SSR
CSR
3
Routing
Route Handlers
Route Groups
Dynamic Routes
Parallel Routes
Intercepting Routes
4
Middleware
Server Actions
APIS
Data Fetching
Caching
Clients
5
Optimisation
i18n
Security
Architecture
Deployment
Accessibility
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.