CDN and Caching
Outline
1. CDN Fundamentals
- How a CDN works
- Cloudflare’s global edge network
- Benefits and when to use a CDN
2. Caching Basics
- Browser cache vs CDN cache
- Cache layers
- Cache strategies
3. Cache Rule Configuration
Page Rules
- Create page rules
- Cache level settings
- URL pattern matching
Cache Rules
- New cache rules system
- More flexible cache control
- Conditions and actions
4. Cache Control
Cache Levels
- Standard caching
- Ignore query string
- Bypass cache
TTL (Time to Live)
- Setting TTL values
- Browser cache TTL
- Edge cache TTL
5. Purging Cache
- Purge a single file
- Purge an entire zone
- Purge specific paths
- Cache pre-warming
6. Cache Optimization Tips
- Static asset strategies
- Dynamic content caching
- API response caching
- Images and media caching
7. Performance Optimizations
- Compression (Gzip, Brotli)
- HTTP/2 and HTTP/3
- Image optimization (Polish)
- Auto minification
8. Advanced Features
Argo Smart Routing
- Smarter routing
- When to use
Railgun
- Dynamic content acceleration
- Setup and usage
9. FAQs
- Cache misses
- Stale content after purge
- Dynamic content cached unexpectedly
- Low cache hit ratio
10. Summary
- Best practices for CDN and cache setup
- Performance tips
