Next.js · Senior · Question 71 of 75

A CDN in front of a self-hosted Next.js keeps serving an old page after revalidateTag(). Why?

Explanation

ISR pages are sent with s-maxage and stale-while-revalidate. Call the CDN purge API for both HTML and RSC variants alongside revalidation.

Further reading

Problem with a question

Next.js · Senior · question 71

Test yourself

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

Take this quiz