Lesson 3.2

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.

Duration
25m
Level
Intermediate
Students
12k 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

Resources

Next.js documentation

The official reference for the tools used in this lesson.