Overview - Full route cache
What is it?
Full route cache in Next.js is a way to store the complete output of a page route so that when a user visits that page again, the server can quickly send the saved version without rebuilding it. This means the page loads faster because the server skips repeating the work of generating the page. It works by saving the HTML and data for the entire route after the first request.
Why it matters
Without full route caching, every time someone visits a page, the server must rebuild it from scratch, which can slow down the website and make users wait longer. Full route cache makes websites feel faster and smoother, improving user experience and reducing server load. This is especially important for pages that don’t change often but get many visitors.
Where it fits
Before learning full route cache, you should understand how Next.js routing and server-side rendering work. After mastering full route cache, you can explore incremental static regeneration and edge caching to optimize performance further.