Switch language한국어
Back to the list

Cloudflare Cache Hit Rate: 7% to 90%

TL;DR AI

Key summary

2 min read
  1. 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%.

  2. The issue came from weak HTML caching, browser-only _headers settings, and cookie-triggered cache bypass.

  3. After adding three Cloudflare Cache Rules for static assets, sitemap files, and HTML pages, plus one localization fix, performance improved sharply.

  4. Cache hit rate climbed above 90%, and first paint dropped from about 20 seconds to about 3 seconds.

Read the original