Test an Explicit Cloudflare Cache Bypass Exception
A broad cache rule can match the same request as a protected path. Verify the exception with a small staging matrix so an intended bypass is confirmed by actual responses.
Pick three controlled routes
Use a cacheable public fixture, a synthetic private-path fixture and a similarly named public path just outside the exception. Keep all fixtures anonymous and free of personalized data. Record each exact hostname and path and whether it should be eligible for cache.
Check matching and order
Review the rule expressions, their sequence and the setting each applies. Cloudflare documents Bypass cache as a cache eligibility setting. Where overlapping rules set the same property, inspect the effective settings and use Cloudflare Trace if available for the staging zone. Build the intended path boundary into the expression so a sibling route remains unaffected.
Verify responses and repeat
Request each fixture twice using the same browser context or HTTP client. Compare origin behavior, response body and Cloudflare cache status. A bypassed route can show DYNAMIC rather than an explicit bypass label. A cacheable route can miss for reasons unrelated to the rule, so verify content and response headers alongside status.
Confirm isolation
The intended exception remains outside cache while the public control behaves as expected. If a previous response exists under a different policy, use a scoped purge under the approved change plan and rerun the matrix.
Related guides
- How to Read CF-Cache-Status During a Cache Incident
- Test CDN Cache Behavior When a Response Sets a Cookie
Official references
Ferkesh Hosting. Last reviewed .
Zpětná vazba byla odeslána!