Skip to content
Cloudflare Docs
Search
Product directory
Learning paths
Status
Support
Log in
GitHub
Twitter
YouTube
Select theme
Dark
Light
Auto
Cache / CDN
Overview
Plans
Get started
Concepts
CDN-Cache-Control
Cloudflare cache responses
Customize cache
Default cache behavior
Head Requests and Set-Cookie Headers
Interact with Cache in Workers
Origin Cache Control
Retention vs Freshness (TTL)
Revalidation and request collapsing
Cache configuration
Always Online
Cache by status code
Cache keys
Cache Rules
Overview
Create a rule in the dashboard
Create a rule via API
Terraform example
Available settings
Order and priority
Examples
Overview
Browser Cache TTL
Bypass Cache on Cookie
Cache by Device Type
Cache Deception Armor
Cache Everything while ignoring query strings
Cache Level (Cache Everything)
Cache TTL by status code
Custom Cache Key
Edge Cache TTL
Origin Cache Control
Query String Sort
Respect Strong ETags
Migration from Page Rules
Caching levels
Edge and Browser Cache TTL
Overview
Set Browser Cache TTL
Purge cache
Overview
Purge by single-file
Purge everything
Purge cache by cache-tags
Purge cache by hostname
Purge cache by prefix (URL)
Purge cache key resources
Purge varied images
Tiered Cache
Advanced configuration
Cache Reserve
Crawler Hints
Early Hints
Query String Sort
Vary for images
Performance review
Cache Analytics
Cache performance
Cache security
Avoid web cache poisoning
Cache Deception Armor
Cross-Origin Resource Sharing (CORS)
Reference
CDN Reference Architecture ↗
CSAM Scanning Tool
Development Mode
Using ETag Headers with Cloudflare
Troubleshooting
Always Online
Glossary
Product directory
Learning paths
Status
Support
Log in
GitHub
Twitter
YouTube
Select theme
Dark
Light
Auto
Products
…
Cache / CDN
Cache configuration
Cache Rules
Examples
Examples
In the following sections, you can find common cache rules examples.
Browser Cache TTL
Bypass Cache on Cookie
Cache by Device Type
Cache Deception Armor
Cache Everything while ignoring query strings
Cache Level (Cache Everything)
Cache TTL by status code
Custom Cache Key
Edge Cache TTL
Origin Cache Control
Query String Sort
Respect Strong ETags
Cloudflare Dashboard
Discord
Community
Learning Center
Support Portal