revalidation

Refreshing cached data or pages so they show new content, either after a time limit or on demand.

In more detail

Time-based: export const revalidate = 3600 or next: { revalidate: 3600 } keeps data for an hour, then refreshes it in the background on the next request. On demand: call revalidatePath or revalidateTag after a mutation.

Related terms

Taught in

References