How can we help you?

Using CDN77 with Cloudflare

It is possible to use both Cloudflare and CDN77 simultaneously, however, there are some slight differences. The main difference is that Cloudflare acts as a reverse proxy for your entire website, therefore the CDN pulls data directly from Cloudflare’s servers rather than from your Origin server. The process of integrating Cloudflare with CDN77 requires a few settings that need to be enabled in both the Cloudflare panel and the CDN77 panel.

When the Cloudflare reverse proxy is enabled for a specific DNS record (The Orange Cloud Icon) Cloudflare adds set cookies to each file. The CDN treats each file which has set cookies enabled as dynamic content, therefore the file does not get cached by CDN77. This is due to the fact that set cookies which Cloudflare assigns to each file are unique, therefore each request is unique. CDN77 has a feature which allows you to bypass this by enabling the "Ignore Set Cookies" option under the “Other Settings” tab which you can see when navigating to an existing CDN Resource. After this setting is selected, the CDN will be able to cache and deliver all of the files which it requests from Cloudflare that have set cookies enabled.

In your Cloudflare client panel, there is an option titled "Security Settings". Make sure that this is set to the lowest setting. The reason for this is that Cloudflare's automatic security system will try to prevent bots from crawling your site by serving a Captcha before a file is served. When the CDN77 Edge servers pull data, Cloudflare will serve a Captcha, subsequently preventing a file from being properly delivered.

You can also decide to just use Cloudflare as a DNS provider for your domain, this is as simple as turning off the orange cloud icon next to a specific DNS record which you wish CDN77 to pull data from. This disables the Cloudflare reverse proxy and enables the CDN to directly communicate with your Origin server.