• Resolved TristanQ

    (@tristan29)


    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?

Viewing 1 replies (of 1 total)
  • Plugin Support Kush

    (@kushnamdev)

    Hi @tristan29,

    The guide you used is no longer relevant to the latest version of the plugin, as the feature has been removed. We are now using cache rules instead of page rules, as it is a better approach compared to before.

    To remain up to date with the latest setup, please follow these steps:

    1- Logout your cloudflare account from the plugin.
    2- Reconnect it to the plugin using your email and global API key.
    3- Select the domain of your site.

    Wait for a few seconds and then click on test cache button.

    Please let us know how it goes, thank you!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.