QuickDevGuide

Home › Cloudflare

CDN & Caching — Cloudflare

How Cloudflare CDN Works When Proxied (☁️) is enabled, Cloudflare caches static assets at edge locations closest to your users. Cache Rules (Dashboard) Dashboard: Caching → Cache Rules → Create Rule Rule TTL Description Cache static assets 1 month .js, .css, .png, .woff2 files Cache API responses 5 minutes Frequently-read, rarely-changing data Bypass cache for API Bypass Dynamic POST/PUT/DELETE requests Cache HTML pages 2 hours Static pages with Cache-Control Default Cache Behavior Cloudflare caches these by default: HTML pages are NOT cached by default — create a Cache Rule to enable. Page Rules (Legacy) / Cache Rules (New) Performance Settings Purge Cache

Key Takeaways