All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Cache - Inspect Cache Keys with Cloudflare Trace

8mo ago

Source

CloudflareCache - Inspect Cache Keys with Cloudflare Tracecloudflare.com
Snippet from the RSS feed
You can now see the exact cache key generated for any request directly in Cloudflare Trace. This visibility helps you troubleshoot cache hits and misses, and verify that your Custom Cache Keys โ€” configured via Cache Rules or Page Rules โ€” are working as intended. Previously, diagnosing caching behavior required inferring the key from configuration settings. Now, you can confirm that your custom logic for headers, query strings, and device types is correctly applied. Access Trace via the dashboard or API , either manually for ad-hoc debugging or automated as part of your quality-of-service monitoring. Example scenario If you have a Cache Rule that segments content based on a specific cookie (for example, user_region ), run a Trace with that cookie present to confirm the user_region value appears in the resulting cache key. The Trace response includes the cache key in the cache object: { " step_name " : "request" , " type " : "cache" , " matched " : true , " public_name " : "Cache Parameters" , " cache " : { " key " : { " zone_id " : "023e105f4ecef8ad9ca31a8372d0c353" , " scheme " : "https" , " host " : "example.com" , " uri " : "/images/hero.jpg" }, " key_string " : "023e105f4ecef8ad9ca31a8372d0c353:::: } } Get started To learn more, refer to the Trace documentation and our guide on Custom Cache Keys .

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.