United States United States

How does caching work with Cloudflare?

If you configure a subdomain for Cloudflare in your easyname Controlpanel, a CNAME entry to your DNS configuration will be added. The CNAME entry will look like this example:

sub.domain.com --> CNAME --> sub.domain.com.cdn.cloudflare.net

If there is a request to your website, the requests will go directly to the nearest Cloudflare Server around you. If Cloudlflare has a fresh copy of your website in its cache, the response will be sent directly to the requester. If Cloudflare has a old copy of the website, Cloudflare will make a request to your server at easyname and ask for a fresh copy. This copy is then saved on the Cloudflare servers which in turn will send a fresh copy to the requester.