Lesson 3.225mIntermediate11.6k students
Caching and revalidation
Caching is the part people get burned by. Know what layer holds your data, how long it holds it, and which lever invalidates it.
This lesson sits in Data Fetching and Caching, part of Next.js App Router in Depth. It assumes what came before it and leads directly into the next lesson in the module.
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.
Resources
Your notes for this lesson will appear here.