API StudioSDK StudioMonitoringMCP ServerSpec AuditFeatures
PricingBlogDocs
Log inStart for free
Blog/Guides
Guides·July 1, 2026·1 min read

How Octri Keeps Static Pages Fresh with ISR

A look at how incremental static regeneration and on-demand revalidation give you static-fast pages that update the moment your content changes.

#nextjs#isr#performance
How Octri Keeps Static Pages Fresh with ISR

Static pages are fast because there is nothing to compute at request time. The classic trade-off is staleness. Incremental static regeneration (ISR) plus on-demand revalidation removes it.

The two halves

  1. ISR serves a cached, statically-rendered page and rebuilds it in the background on a time interval.
  2. On-demand revalidation lets a content change push an update immediately, instead of waiting for the interval.

Together you get pages that are static-fast and never meaningfully stale.

How the blog uses it

When you run the sync script, it tells the API which articles changed. The API purges its own cache and forwards the changed slugs to the frontend, which revalidates only those pages:

typescript
123
// Only the pages that actually changed are purged.
revalidateTag("blog");
for (const slug of slugs) revalidateTag(`blog:${slug}`);

The result: publish a post, run one command, and the new article is live in seconds, with every other page still served from cache.

When to reach for it

  • Content-heavy pages that change occasionally (docs, blogs, marketing)
  • Anything where SEO and time-to-first-byte matter
  • Workflows where a script or CMS webhook can signal "this changed"

If your content changes on every request, ISR is the wrong tool. Reach for dynamic rendering instead.

← PreviousTen Habits for Writing Great OpenAPI Specs
Next →How to Generate API Documentation from an OpenAPI Spec (2026 Guide)

Related articles

Guides·4 min read

How to Choose an OpenAPI SDK Generator: 10 Questions to Ask

Ten practical questions for evaluating generated SDKs: spec support, code quality, auth, errors, publishing, monitoring, and exit cost.

October 9, 2026
Documenting webhooks in OpenAPI 3.1, and the half it cannot describe
Guides·5 min read

Documenting webhooks in OpenAPI 3.1, and the half it cannot describe

3.1 finally gave webhooks a home in the spec. It describes the payload, which is the easy part, and says nothing about delivery, which is where integrations break.

September 11, 2026
API-first in practice: what changes when the spec is the source of truth
Guides·5 min read

API-first in practice: what changes when the spec is the source of truth

The phrase is used to mean four different things. Only one of them changes how your team works, and it is the one that makes the spec a build input rather than a report.

September 10, 2026
Getting your API docs cited when someone asks an AI about your product
Guides·6 min read

Getting your API docs cited when someone asks an AI about your product

People are asking assistants what your API does before they visit your site. What gets quoted back is decided by how your docs are structured, not by a file at your root.

September 8, 2026

A letter when something ships

New SDK languages, changes in the generator, and now and then a longer piece on keeping docs from rotting. Roughly one a month.

Join developers keeping tabs on Octri.

Octri

Upload an OpenAPI spec. Get complete docs and production-ready SDKs in 10 languages, live in minutes.

Contact support

Product

  • API Studio
  • SDK Studio
  • Monitoring
  • MCP Server
  • Pricing
  • Open Source
  • Blog
  • Changelog
  • Press Kit

From your spec

  • Spec Audit
  • TypeScript SDK
  • Python SDK
  • Go SDK
  • Java SDK
  • MCP Server

Developers

  • Documentation
  • SDK Libraries
  • MCP Server
  • Monitoring
  • CLI
  • Support

Legal

  • Terms of Service
  • Privacy Policy
  • Fair Use Policy
  • Data Processing (DPA)
  • Cookie Policy
  • Security
  • Subprocessors

© 2026 Octri, LLC. All rights reserved.

Made by devs who got tired of hand-writing SDKs.