Next.js Caching Layers
Next.js stacks distinct caches: request memoization within one render, the Data Cache persisting individual fetch results across requests, the Full Route Cache storing whole prerendered routes, and the client-side Router Cache holding RSC payloads for visited segments. Debugging staleness means identifying which layer served the hit, because each has its own scope and invalidation rules.
This Concept is waiting for its first lesson!
Next.js stacks distinct caches: request memoization within one render, the Data Cache persisting individual fetch results across requests, the Full Route Cache storing whole prerendered routes, and the client-side Router Cache holding RSC payloads for visited segments. Debugging staleness means identifying which layer served the hit, because each has its own scope and invalidation rules.
Are you a teacher? Sign in to start contributing.
Sign In