Overview - Router cache on client
What is it?
Router cache on client means storing information about pages and navigation in the user's browser memory. This helps the app quickly show pages without asking the server again. It works by saving data about visited pages and links so the app can reuse it. This makes the app feel faster and smoother.
Why it matters
Without router cache on client, every time you click a link, the app would ask the server for the whole page again. This causes delays and a choppy experience. Router cache makes navigation instant or near-instant, improving user happiness and reducing server load. It feels like flipping pages in a book instead of waiting for a new book to arrive.
Where it fits
Before learning router cache, you should understand basic routing and client-server communication in Next.js. After this, you can learn about advanced caching strategies, prefetching, and state management to optimize user experience further.