© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
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. …
Cache by device type · Cloudflare Automatic Platform Optimization d...
Request · Cloudflare Workers docs
The Request interface represents an HTTP request and is part of the Fetch API.
Request · Cloudflare Workers docs
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

No user-agent header in OpenNext on CF Workers
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
4mo ago
What AI runtimes does CF workers support?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Parsing .EML using workers
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
11mo ago
Pocketbase on CF Workers
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
11mo ago