• Hi,

    My site is responsive design, and I am using Astra Pro theme. I want to active mobile cache how to achieve that?

    My home page banner is 1920*700px on a desktop device, I set it to 767*350px on mobile. If I don’t activate the mobile cache, will it load 1920*700px size on mobile?

    If I activate the mobile cache, will it load 767*350px on mobile?

    I already activate Cloudflare “cache by device type”: https://picshack.net/ib/1kHxO97i5a.

    Many thanks,

Viewing 1 replies (of 1 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @luislu,
    If you have already activated “Cache by device type” for the appropriate Cache Rules then Cloudflare will always create separate page cache for desktop and mobile devices. But if you have a responsive website, the smarter approach would be to push these ads using JavaScript instead of running server level check.

    So, instead of checking whether you are on desktop or mobile at the server level if you run the same check using JavScript and then show the ads then you don’t have to use the Cache by Device Type which will increase your cache HIT ratio.

Viewing 1 replies (of 1 total)
  • The topic ‘How to active mobile cache?’ is closed to new replies.