How Three Cloudflare Cache Rules Lifted a Site's Hit Rate from 7% to 90%
After deploying the static site utlkit.com to Cloudflare Pages, users in China experienced severe load times, with LCP metrics reaching up to 26 seconds at the 90th percentile. Cloudflare's cache analytics revealed a hit rate of just 7.62%, meaning nearly all requests were being served directly from origin storage, dramatically increasing latency. The root causes were Cloudflare's default behavior of not caching HTML, browser-only cache headers having limited effect on edge caching, and cookie-carrying requests triggering automatic cache bypasses. The developer resolved this by creating three targeted Cloudflare Cache Rules covering static assets with a 30-day TTL, sitemap and robots files with a 1-day TTL, and all HTML pages with a 14-day edge TTL. After applying these rules — available free within Cloudflare's three-rule limit — the cache hit rate climbed to approximately 90%, significantly improving page load performance.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in