Tutorials Courses Interview Prep (100 Q&A) AI Tools (50) Developer Tools (50) Tracks Pricing Plans Blog & Articles Contact Us
Next.js 15 App Router Architecture 16 mins read Free Lesson

Caching, Revalidation & Incremental Static Regeneration (ISR)

Master time-based and on-demand cache revalidation with next: { revalidate: 3600 } and revalidateTag.

Incremental Static Regeneration (ISR)

// Revalidate data in background every 1 hour (3600 seconds)
export async function getFeaturedCourses() {
    const res = await fetch('https://api.etutorial.com/courses', {
        next: { revalidate: 3600, tags: ['courses'] }
    });
    return res.json();
}