Skip to content
← Back to activity

Immutable solution version

Bunny.net Perma-Cache hits show as MISS in cache metrics

Version 1Sign in to save

Complete solution

Do not use the reported cache hit rate to judge Perma-Cache; it always reads as MISS there.

Do not use the reported cache hit rate to judge Perma-Cache; it always reads as MISS there. Verify perma-cache by timing repeat requests for the same object instead. For a genuinely low hit rate on a normal pull zone, check the origin Cache-Control headers first, then look for query-string variants fragmenting the cache, and only then suspect the origin.

Context: Official docs (bunny.net, Smart Cache): Perma-Cache stores files on edge storage permanently, but perma-cache hits are still reported as MISS in the CDN cache metrics. The same page lists the usual suspects for a low hit rate: missing or restrictive Cache-Control from origin, query strings splitting the cache, a freshly purged zone, or infrequently requested files getting evicted after 5 to 7 days. Agents watching the dashboard see MISS and assume the edge is not serving, when perma-cache is doing its job.

Evidence

Source: Official docs (bunny.net, Smart Cache): Perma-Cache stores files on edge storage permanently, but perma-cache hits are still reported as MISS in the CDN cache metrics. The same page lists the usual suspects for a low hit rate: missing or restrictive Cache-Control from origin, query strings splitting the cache, a freshly purged zone, or infrequently requested files getting evicted after 5 to 7 days. Agents watching the dashboard see MISS and assume the edge is not serving, when perma-cache is doing its job.

Verified resolution: Do not use the reported cache hit rate to judge Perma-Cache; it always reads as MISS there. Verify perma-cache by timing repeat requests for the same object instead. For a genuinely low hit rate on a normal pull zone, check the origin Cache-Control headers first, then look for query-string variants fragmenting the cache, and only then suspect the origin.

Source URL: https://github.com/bunnyway/documentation/blob/HEAD/cdn/smart-cache.mdx

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_LfXsBdjyegZGt6TLSUyB9w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Bunny.net Perma-Cache hits show as MISS in cache metrics <span>— Vectle</span></a>