✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more
Andrii Bidochko
  • Updated: December 15, 2025
  • 7 min read

Edge Caching Eliminates Cold Starts for 72M Monthly Page Views – Boosting Page Speed and Web Performance

Mintlify’s edge‑caching solution eliminates cold starts for 72 million monthly page views by moving the cache to Cloudflare’s edge network, using Workers, KV, Durable Objects, Queues and CDN caching to serve content instantly.

Introduction: Why Edge Caching Matters for Modern Docs Platforms

Documentation sites like Mintlify serve tens of thousands of developers and AI agents every day. With 72 million page views per month, even a fraction of slow loads can damage user experience, SEO rankings, and conversion rates. The primary culprit was cold starts—the time it takes for a newly deployed version of a page to be generated and cached at the edge. Mintlify’s engineering team tackled this problem by designing a custom edge caching layer that decouples deployments from cache invalidation, achieving an almost 100 % cache‑hit rate.

Summary of Mintlify’s Edge Caching Solution

At its core, the solution places a Cloudflare Worker in front of every request. The worker decides whether a cached version exists, validates the deployment version, and either serves the cached page instantly or triggers a background revalidation. The architecture combines several Cloudflare services:

  • Workers – request routing and business logic.
  • KV Store – stores the latest deployment IDs per project.
  • Durable Objects – provide a global lock to avoid race conditions during revalidation.
  • Queues – throttle cache‑warming requests to prevent thundering‑herd problems.
  • CDN Cache – edge storage with custom cache keys and a 15‑day TTL.
  • Zones/DNS – route traffic to the worker layer.

Technical Deep‑Dive

1. The Proxy Layer – Cloudflare Workers

The docs‑proxy worker intercepts every request to a Mintlify‑hosted site. Its responsibilities include:

  1. Fetching the deployment configuration from KV.
  2. Generating a unique cache key that incorporates the customer prefix, deployment ID, request path, and content type.
  3. Attempting to serve a cached response with a 15‑day TTL.

The cache key follows the pattern:

${cachePrefix}/${deploymentId}/${path}#${kind}:${contentType}

For example, acme/dpl_abc123/getting-started:html stores the HTML version, while acme/dpl_abc123/getting-started:rsc stores the React Server Component variant.

2. Automatic Version Detection & Revalidation

When a new Next.js build is deployed, Vercel sends a deployment.succeeded webhook. Mintlify’s backend writes the new deployment ID to Cloudflare KV:

KV.put('DEPLOY:{projectId}:id', deploymentId);

During a request, the worker compares the version returned by the origin (x-version header) with the version stored in KV. If they differ, the worker triggers a background revalidation while immediately serving the stale (but still fast) cached page.

3. Coordination with Durable Objects

To avoid multiple concurrent revalidations for the same site, a Durable Object acts as a lock:

  • Check if a revalidation is already in progress.
  • If not, create a lock entry and enqueue a message for the revalidation worker.
  • Release the lock once the worker reports completion.
  • Automatic timeout (30 minutes) clears stale locks.

4. Revalidation Worker & Queues

The dedicated revalidation worker consumes messages from a Cloudflare Queue. Each message contains the cache prefix, deployment ID, and a list of paths (or a sitemap URL). The worker processes pages in batches of six (the maximum concurrent connections per Cloudflare Worker) and warms both HTML and RSC variants.

for (batch of chunks(paths, 6)) {
  await Promise.all(batch.map(path => {
    // Warm HTML
    fetchWithCacheKey(`${origin}/${path}`, 'html');
    // Warm RSC
    fetchWithCacheKey(`${origin}/${path}`, 'rsc');
  }));
}

Once all pages are warmed, the worker updates KV with the new deployment ID and notifies the Durable Object to release the lock.

5. Proactive Pre‑warming on Content Updates

Beyond reactive revalidation, Mintlify also pre‑warms caches when documentation content changes. After a content update, the backend calls the worker’s admin API, which enqueues a pre‑warm request. This ensures that new or updated docs are already cached before any user visits them.

Benefits: Near‑100 % Cache Hit Rate & Performance Gains

The results speak for themselves:

  • Cache hit rate: increased from 76 % to effectively 100 %.
  • Cold‑start elimination: users receive a cached page instantly, even immediately after a deployment.
  • Reduced origin load: edge cache with a 15‑day TTL serves traffic even if the origin is temporarily unavailable.
  • Improved SEO: faster First Contentful Paint (FCP) and Largest Contentful Paint (LCP) metrics boost search rankings.
  • Scalable architecture: the solution works for any number of customers because the heavy lifting happens at the edge.

Relevance to Web Performance and SEO

Page speed is a confirmed ranking factor in Google’s algorithm. By moving the cache to the edge, Mintlify reduces latency to a few milliseconds, dramatically improving Core Web Vitals. The near‑instant delivery also lowers bounce rates, increases dwell time, and improves conversion for SaaS documentation sites.

Moreover, the architecture aligns with modern JIT‑caching patterns recommended for static‑site generators and headless CMS platforms. It demonstrates that edge caching is not just a CDN trick but a full‑stack strategy that integrates deployment pipelines, version control, and background workers.

Generated Image – Architecture Overview

Mintlify edge caching architecture diagram

External Reference

For the original announcement and a full technical walk‑through, see Mintlify’s blog post: How we eliminated cold starts for 72M monthly page views with edge caching.

Internal Insights & Related UBOS Resources

While Mintlify’s solution is tailored to documentation, the underlying principles apply to any high‑traffic web app. UBOS offers a suite of tools that can help you implement similar edge‑first strategies:

Template Marketplace Inspiration

UBOS’s marketplace also hosts ready‑made AI applications that can be combined with edge caching for richer experiences:

Conclusion & Call‑to‑Action

Mintlify’s edge‑caching architecture proves that eliminating cold starts at massive scale is achievable with the right combination of Cloudflare services. By moving cache logic to the edge, you gain:

  1. Instant page loads for end users.
  2. Higher SEO rankings through improved Core Web Vitals.
  3. Reduced load on origin servers, saving bandwidth and cost.
  4. A scalable, self‑healing system that adapts to frequent deployments.

If you’re a web developer or site owner looking to boost page speed and eradicate cold starts, consider adopting an edge‑first strategy today. Explore UBOS’s low‑code platform, leverage our Web app editor, and start building a resilient, high‑performance experience for your users.

Ready to supercharge your site’s performance? Visit the UBOS homepage and launch your edge‑optimized application in minutes.


Andrii Bidochko

CTO UBOS

Andrii Bidochko is an AI entrepreneur and researcher focused on AI agents, reinforcement learning, and autonomous systems. He writes about the technologies shaping the future of machine intelligence, from frontier models and agent architectures to real-world AI applications.

Sign up for our newsletter

Stay up to date with the roadmap progress, announcements and exclusive discounts feel free to sign up with your email.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.