© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
CD
Cloudflare Developers
•
3y ago
•
2 replies
neenhouse (chris)
Does CF provide user agent parsing for device type for Workers?
From these docs
https://developers.cloudflare.com/workers/runtime-apis/request/#incomingrequestcfproperties
it doens
't seem like CF will provide device type info
"mobile
"
"tablet
" or
"desktop
"
. From
https://developers.cloudflare.com/automatic-platform-optimization/reference/cache-device-type/
CF does parse this info when you turn on caching
. Is it possible to get access through the worker
?
Cache by device type · Cloudflare Automatic Platform Optimization d...
APO cache by device type provides all of the same benefits of Cloudflare
’s cache while targeting visitors with content appropriate to their device
.
…
Request · Cloudflare Workers docs
The Request interface represents an HTTP request and is part of the Fetch API
.
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
No user-agent header in OpenNext on CF Workers
CD
Cloudflare Developers / workers-and-pages-help
4mo ago
What AI runtimes does CF workers support?
CD
Cloudflare Developers / workers-and-pages-help
3y ago
Parsing .EML using workers
CD
Cloudflare Developers / workers-and-pages-help
11mo ago
Pocketbase on CF Workers
CD
Cloudflare Developers / workers-and-pages-help
11mo ago