Cloudflare Cache Hit Rate: 7% to 90%

TL;DR AI
2 min readKey summary
A static site on Cloudflare Pages was extremely slow in China, with LCP around 20–26 seconds and a cache hit rate of just 7.62%.
The issue came from weak HTML caching, browser-only _headers settings, and cookie-triggered cache bypass.
After adding three Cloudflare Cache Rules for static assets, sitemap files, and HTML pages, plus one localization fix, performance improved sharply.
Cache hit rate climbed above 90%, and first paint dropped from about 20 seconds to about 3 seconds.
