cdn-caching

Diagnose Vercel CDN cache hit rates, stale content, revalidation behavior, and ISR costs.

Updated Sep 17, 2026
One-click install
npx skills add https://github.com/ridhijain709/AIPORSCHE --skill cdn-caching-ridhijain709
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cdn-caching
Source: https://github.com/ridhijain709/AIPORSCHE/tree/main/.agents/skills/cdn-caching
Command: npx skills add https://github.com/ridhijain709/AIPORSCHE --skill cdn-caching-ridhijain709

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Debugging why pages serve stale content, why requests bypass the cache, or why ISR bills spike is difficult without understanding Vercel's layered caching model. This Skill provides the conceptual model and concrete CLI workflows to pinpoint cache misses, revalidation storms, and cost drivers. ## Core Features & Use Cases - Cache Hit Rate Analysis: Measure cache-served versus origin traffic with vercel metrics grouped by cache_result, then drill into misses by path type and route. - Per-Request Diagnosis: Interpret x-vercel-cache status, cacheReason values (cold, collapsed, draft_mode, stale_tag, etc.), and ppr_state to explain exactly why a single request missed, bypassed, or served stale. - ISR Cost Control: Quantify read/write units, compute write utilization, and identify hot cache tags with large blast radius driving revalidation spend. - Use Case: Your Next.js site's ISR bill doubled after a CMS webhook change. Use this Skill to group write units by cache_tags, discover a broad blogPost tag invalidating thousands of pages, and switch to granular per-ID tags. ## Quick Start Ask the agent to analyze why your Vercel site's cache hit rate dropped and which routes are driving ISR write costs.

Frequently Asked Questions about cdn-caching

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

FAQPage Schema
How do I check my Vercel cache hit rate?

Run vercel metrics vercel.request.count grouped by cache_result, filtered to production. Treat HIT, STALE, and PRERENDER as cache-served and exclude BYPASS and unset values when computing the hit rate over cacheable traffic.

Why is my Vercel page serving stale content?

Stale content usually means stale-while-revalidate is active: a time-based revalidate interval elapsed or a tag was invalidated, so the old copy serves while regeneration runs in the background. Check the cacheReason field for stale_time, stale_tag, or stale_error to identify the trigger.

What does x-vercel-cache BYPASS mean?

BYPASS means caching was skipped for that request, commonly due to no-store or private headers, cookies, Draft Mode, prerender-bypass tokens, or SEO crawler user agents. Draft Mode and crawler bypasses are expected behavior, not misconfiguration.

How do I reduce Vercel ISR costs?

Prefer on-demand tag-based revalidation over short time-based intervals, and scope tags to specific IDs like product-123 instead of broad tags. Group isr_operation.write_units by route and cache_tags to find paths regenerating faster than they are read.

Does PPR avoid function invocations on Vercel?

No. A PPR route has dynamic holes by definition, so even on a cached shell hit the function still runs to render the postponed content. Only a route with no holes serves as a pure prerender HIT without invoking the function.

Why do I see more cache misses after adding feature flags?

Feature-flag and experiment precomputation creates distinct cache-key variants per flag combination, multiplying ISR entries across routes and PPR segments. Each variant misses on first hit per region, so collapsing the variant matrix or retiring finished experiments reduces misses.