Cache by Device Type (Cache Rules)

I created a custom Cache Rule to pass a custom cache key for the device type, but I don't see it in the response headers (CF-Device-Type). Am I doing something wrong? It seems to be available for all Plans now. https://developers.cloudflare.com/cache/how-to/cache-rules/examples/cache-device-type/
Cloudflare Docs
Cache by Device Type
Cache by Device Type
3 Replies
predaytor
predaytorOP5mo ago
how can I access it? via worker only? like const device = request.headers.get("CF-Device-Type")? will give it a try. thx
predaytor
predaytorOP4mo ago
do you know how can I debug this? I'm using Astro framework specifically. On production there isn't such a header in logs.
predaytor
predaytorOP4mo ago
up!

Did you find this page helpful?