What is the full route cache in the App Router?
The Full Route Cache was the server-side cache of a route's rendered output (HTML plus RSC payload) produced at build time or during revalidation, so static routes could be served without rendering. In Next.js 16 with Cache Components, the same idea is the prerendered static shell, now produced for every route, with dynamic parts streamed into it.
Previous model
- At
next build, static routes were rendered once and stored on disk (or the host's storage). - Requests were served from that cache; ISR (
revalidate) regenerated it in the background. - Any dynamic API (
cookies(),headers(),searchParams, uncachedfetch) opted the whole route out, so it rendered on every request. - Invalidation:
revalidatePath,revalidateTag(via the Data Cache) or a new deployment. - Opt out:
export const dynamic = 'force-dynamic'orrevalidate = 0.
With Cache Components (Partial Prerendering)
- Every route gets a static shell: static content,
"use cache"results and<Suspense>fallbacks, rendered to HTML and an RSC payload. - Request-time parts stream into the shell; they no longer make the whole route dynamic.
- For dynamic params not listed in
generateStaticParams, an App Shell (URL-independent shell) is served first and the concrete page is generated in the background and stored (ISR). - Revalidation follows
cacheLife(revalidate,expire) and on-demandrevalidateTag,updateTagandrevalidatePath.
Where it lives
Self-hosted: on disk in .next plus in-memory caches. On platforms: their durable storage and CDN. All entries are scoped to a deployment.
Interview framing
Explain the old name, then say Next.js 16 moved to per-component prerendering, so the "cache" is the static shell plus cached components rather than an all-or-nothing route cache.
Code example
1// app/blog/[slug]/page.tsx (Cache Components)2import { Suspense } from "react";3import { cacheLife, cacheTag } from "next/cache";4import { Comments } from "./comments"; // reads cookies: streams at request time56async function Article({ slug }: { slug: string }) {7 "use cache"; // part of the prerendered static shell8 cacheLife("days");9 cacheTag(`post:${slug}`);10 const post = await fetch(`https://cms.example.com/posts/${slug}`).then((r) => r.json());11 return <article><h1>{post.title}</h1></article>;12}1314export async function generateStaticParams() {15 return [{ slug: "launch" }]; // prerendered at build; others get the App Shell first16}1718export default async function Page({ params }: PageProps<"/blog/[slug]">) {19 const { slug } = await params;20 return (21 <>22 <Article slug={slug} />23 <Suspense fallback={<p>Loading comments…</p>}>24 <Comments slug={slug} />25 </Suspense>26 </>27 );28}
Practice this question
Open it in the study app to track progress, take notes, listen to the answer and work through the rest of the Next.js set.