DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Next.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Next.js
Why is tag-based invalidation (cacheTag + updateTag/revalidateTag) generally preferred over path-based (revalidatePath)?
A
revalidatePath doesn't actually work
B
Tag-based invalidation is more precise — it targets exactly the data that changed, avoiding over-invalidating unrelated cached content that happens to share a route
C
Tags are required, paths are optional
D
There's no real difference in precision
Check Answer