Cache by device type not working anymore
-
Hi there !
I recently noticed that Cloudflare is no longer serving pages based on device-specific caching. I had been using the setup described in this GitHub thread, which worked perfectly until now. However, it recently stopped functioning as expected—for instance, the desktop menu is now being served on mobile devices.
My setup includes the library Mobile-Detect-3.74, which relies on headers to determine the device type. Upon investigation, I found that pages served by Cloudflare no longer include the x-cf-device-type header. Additionally, in Cloudflare’s cache rules, the option to serve this header information appears to be disabled (as shown in this screenshot) and is only available with the Enterprise plan.
That said, I noticed that the toggle option for caching by device type is still present in the settings. Could you confirm if the “cache by device type” feature is still functional?
- You must be logged in to reply to this topic.