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/
3 Replies
how can I access it?
via worker only? like
const device = request.headers.get("CF-Device-Type")
?
will give it a try. thxdo you know how can I debug this? I'm using Astro framework specifically. On production there isn't such a header in logs.
up!