What’s the cache scope difference between revalidate and revalidatePath in ISR? #81491
Unanswered
ByungyeonKim
asked this question in
Help
Replies: 1 comment 1 reply
-
The main difference is when they trigger:
// Time-based ISR – revalidates on-request after 60s (per-region)
export const revalidate = 60
// On-demand ISR – global revalidation immediately
export async function POST(request) {
const { path } = await request.json()
revalidatePath(path)
return Response.json({ revalidated: true })
} Why the different treatment?
Helpful resources I found: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions