• Resolved soufianesabiri

    (@soufianesabiri)


    Hi,

    The problem with Cloudflare is that it caches all the pages visited once, so in this case the users will get the ads because the if(){} in php will no longer work. Also there is an IP issue as Cloudflare plays as a proxy in this case so the User’s IP is not accessed.

    Can you please tell me if there is a workaround or you used some JS in this case?

Viewing 2 replies - 1 through 2 (of 2 total)
  • También uso cloudflare, necesito saber si funcionará

    Plugin Author iSaumya

    (@isaumya)

    Hi @soufianesabiri,
    Cloudflare can be used in two ways. Option 1, you can use it to cache your HTML content of the pages along with your static files (like css, js, images) with cache everything page rule or using a plugin like WP Cloudflare Super Page Cache. If you are using a full page cache like this, then, unfortunately, AICP won’t work.

    But if you use Cloudflare just to serve your static assets (like css, js images etc.) from Cloudflare cdn cache, then the plugin will work fine as CF is not caching the HTML content of the page and PHP needs to be executed to generate the page content.

    Also there is an IP issue as Cloudflare plays as a proxy in this case so the User’s IP is not accessed.

    There is no IP issue. CF Proxies your server IPs not the user IPs. You will still be able to see actual user IPs.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Does this work with Cloudflare enabled websites?’ is closed to new replies.