Next.js · Middle · Question 48 of 75

How is page data updated after an action if revalidateTag(tag, 'max') is used?

Explanation

The 'max' profile gives stale-while-revalidate semantics: the entry is marked stale, the first request gets the old version and triggers regeneration. If the author of the change should see the result immediately, use updateTag in a Server Action.

Further reading

Problem with a question

Next.js · Middle · question 48

Test yourself

Take the Next.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz