New option “Mobile Content Optimization” causing issues when CloudFlare APO is used

This topic has 2 replies, 2 voices, and was last updated 1 years, 2 months ago ago by Tony Rodriguez

  • Avatar: Krzysztof
    February 28, 2023 at 20:22

    Not sure how to demonstrate it 🙂 but when I turned on the new option “Mobile Content Optimization” in “General / Layout” I started to face issues with CloudFlare cache.
    I’m using CloudFlare APO (Automatic Platform Optimization for WordPress) and symptoms are the following:
    – when I clear/purge CF cache completely and open page from mobile as the first hit after purge, it caches mobile header kind of “permanently” :(.
    – now if I open the same page on desktop browser for the first time, it gets mobile header as well, not normal desktop header as it should.
    – when I reload page (one or two times) it is getting again normal desktop header.
    – now if I do exactly the same but it in the opposite order -> after purging CF cache, i will firstly visit page from desktop, there is a mess on mobile until again I do few refreshes on it.

    It took me a while to find it 🙂 but without “Mobile Content Optimization” all works ok …

    You could also have a look at CF APO option “Cache by device” ( and maybe support it in order to get best performance per platform 🙂

    1 Answer
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    March 1, 2023 at 09:22

    Hello Krzysztof,

    We are grateful for the time and effort you have put into debugging this issue.

    We recommend that you keep the Mobile Content Optimization option disabled if you are using a cache plugin for mobile devices, as both optimization options can conflict with each other.

    Please refer to the screenshot provided at the link below for further information:

    We hope this helps!

    Best Regards,
    8Theme’s Team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.