LESSON 3.2
Caching and revalidation
Learn key techniques and workflows in Next.js App Router in Depth.
25m
intermediate
11,643 students
Overview
Caching is the part people get burned by. Know what layer holds your data, how long it holds it, and which lever invalidates it.
In this lesson you will:
- Distinguish request-level caching from the full route cache
- Revalidate on a timer or on demand by tag
- Opt out deliberately when data must always be fresh
Pro Tip
Tag your reads by content type; then one webhook can invalidate exactly the pages that changed.