nextjs-build-website-caching

Configure Next.js landing page caching with 30-minute ISR and on-demand revalidation.

2|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/sdcorejs/sdcorejs-agent --skill nextjs-build-website-caching
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-build-website-caching
Source: https://github.com/sdcorejs/sdcorejs-agent/tree/main/plugin/skills/nextjs-build-website-caching
Command: npx skills add https://github.com/sdcorejs/sdcorejs-agent --skill nextjs-build-website-caching

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevent landing pages from re-rendering on every request while keeping content updates reasonably fresh without constant redeploys.

Core Features & Use Cases

  • 30-minute default ISR: Applies a consistent revalidation window across all Next.js page.tsx files to balance performance and freshness for marketing content.
  • SSG vs ISR vs SSR decision tree: Chooses the correct rendering mode for pages that are truly static, content-driven, or user-specific.
  • On-demand revalidation: Adds an endpoint-based strategy for CMS publish events and contact form updates so changes appear without waiting for the next revalidation window.

Quick Start

Use the nextjs-build-website-caching skill to configure ISR caching with a 30-minute default for all landing page routes, including on-demand revalidation for CMS updates and contact form submissions.

Frequently Asked Questions about nextjs-build-website-caching

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Next.js ISR caching to keep landing pages fresh without redeploys?

Next.js ISR caching applies a consistent 30-minute revalidation window to landing page routes, serving cached content while regenerating pages in the background to balance performance and content freshness without requiring constant redeploys.

When should I use SSG vs SSR vs ISR for my Next.js website pages?

Use SSG vs SSR vs ISR rendering modes based on page behavior: SSG for truly static pages, ISR for content-driven CMS updates, and SSR for user-specific or highly dynamic interactions to ensure optimal rendering mode selection.

How do I trigger on-demand revalidation in Next.js for CMS content updates?

On-demand revalidation uses a dedicated endpoint triggered by CMS publish events, utilizing a secret header for security verification to immediately update Next.js cache instead of waiting for the next scheduled 30-minute revalidation window.

Can I apply a default Next.js caching strategy across all landing page routes?

Apply a consistent 30-minute ISR default caching strategy across all Next.js page.tsx files, with optional fetch tagging and on-demand revalidation, to standardize marketing content updates and contact form interactions.

Why does my Next.js landing page re-render on every request and how do I fix it?

Landing pages re-render on every request when no caching strategy is applied. Fix this by implementing a 30-minute ISR revalidate window with on-demand revalidation to prevent unnecessary re-renders while maintaining content freshness.

Does Next.js on-demand revalidation require a secret header for cache updates?

Next.js on-demand revalidation requires a secret header for endpoint verification, ensuring only authorized CMS publish events or contact form submissions trigger cache invalidation and immediate page regeneration.