Skip to content
Back to skills

Incremental Static Rendering

ASecurity

Enforce standards for refreshing static content without a full rebuild. This skill focuses on the ISR model, where static pages are updated in the background after they have been deployed, enabling high-performance sites with massive amounts of dynamic content.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
devopsreactgitapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add iDorgham/Workspace-Factory --skill incremental-static-rendering --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Incremental Static Rendering?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Incremental Static Rendering
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/idorgham-incremental-static-rendering/badge)](https://www.skillsdirectory.com/skills/idorgham-incremental-static-rendering)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
type: Skill
subagents: [core-validator, integrity-bot]
agents: [master-guide, swarm-router]
dependencies: [core-orchestration, global-sync]
version: 1.0.0
---



# ♻️ React Incremental Static Regeneration (ISR)

## Purpose
Enforce standards for refreshing static content without a full rebuild. This skill focuses on the ISR model, where static pages are updated in the background after they have been deployed, enabling high-performance sites with massive amounts of dynamic content.

---

## Technique 1 — Time-Based Revalidation
- **Rule**: Set a revalidation interval (`revalidate`) based on the data's volatility.
- **Protocol**: 
    1. Deliver the stale cached version of the page immediately.
    2. Trigger a background re-generation of the page if the revalidate interval has passed.
    3. Swap the old cache with the new HTML for subsequent requests once ready.

---

## Technique 2 — On-Demand Revalidation (Tag/Path)
- **On-Demand**: Use Webhooks or API calls (e.g., `revalidatePath` or `revalidateTag`) to manually purge the cache when a CMS update occurs. This ensures "Static" content stays fresh within seconds of an update.

---

## 🛡️ Critical Failure Modes (Anti-Patterns)
| Anti-Pattern | Result | Correction |
| :--- | :--- | :--- |
| **Too frequent time-reval** | Cache trashing / DB load | Balance the interval; use On-Demand revalidation for data that changes infrequently but needs instant updates. |
| **Missing Fallback States** | 404 for new paths | Use `fallback: 'blocking'` to generate new routes on-the-fly when they are first visited. |
| **Prop-Drilling Large Objects** | Response bloat | Ensure only the necessary data for the page is passed to the component props; use data-selection at the fetch level. |

---

## Success Criteria (ISR QA)
- [ ] Pages update automatically without a full GitHub Actions / CI build.
- [ ] User receives a fast "Edge" response every time.
- [ ] Background re-generation does not block current user requests.
- [ ] Stale data duration is within acceptable business limits (defined by the revalidate interval).

Files in this skill

  • SKILL.md2 KB
  • core.py392 B
  • manifest.yaml204 B
  • tests/test_core.py332 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.