CDN (Content Delivery Network) — geographically distributed servers serving static content from the node closest to the user. For a standard site setup takes 30 min: register at Cloudflare (free), switch DNS, enable proxy, set cache rules. For RU — Yandex Cloud CDN (DC in Moscow).
Below: step-by-step, working examples, common pitfalls, FAQ.
Free online tool — HTTP header checker: instant results, no signup.
curl -I https://example.com | grep -i "cf-cache-status" → "HIT"| Scenario | Config |
|---|---|
| Cloudflare Page Rule for cache | URL: example.com/static/* → Cache Everything + Edge Cache TTL: 1 year + Browser Cache TTL: 1 year |
| AWS CloudFront distribution | Origin: your-bucket.s3.amazonaws.com
Alternate Domain Names (CNAMEs): cdn.example.com
Default Cache Behavior: Redirect HTTP to HTTPS + Cache based on Host header |
| Yandex Cloud CDN | Create CDN resource → Primary origin: origin.example.com
Edge locations: Moscow + Saint-Petersburg
SSL: Let's Encrypt or custom cert |
| nginx origin behind CDN | real_ip_header CF-Connecting-IP;
set_real_ip_from 173.245.48.0/20; # Cloudflare IP ranges |
| Cache bust via query param | https://example.com/style.css?v=1776446434 # filemtime hash auto-bust |
To set up a CDN using Cloudflare, AWS, or Yandex in 2026, start by creating an account with your chosen provider. For Cloudflare, simply add your domain, change your DNS settings to point to Cloudflare's nameservers, and configure performance settings. On AWS, use Amazon CloudFront: create a distribution, link it to your S3 bucket or EC2 instance, and adjust caching settings. For Yandex, register your domain, set up a CDN project, and configure your web server to use Yandex’s edge nodes.
Cloudflare is one of the most popular CDN solutions due to its ease of use and robust features. Follow these steps to set it up:
Type: A
Name: www
Content: 192.0.2.1example.com/*.By following these steps, you can effectively set up Cloudflare as your CDN, enhancing your website's speed and reliability.
Amazon CloudFront is a powerful CDN that integrates seamlessly with AWS services. Here’s how to set it up:
example-bucket.s3.amazonaws.com.d12345abcdef8.cloudfront.net).By leveraging AWS CloudFront, you can efficiently distribute content globally while ensuring low latency and high availability.
Cloudflare: global coverage, free, but not every Russian ISP routes optimally. Yandex: tier-1 RU coverage + compliance, paid from 0.5₽/GB.
International client TTFB: 300-800ms → 50-150ms. LCP: 10-40% improvement depending on content.
Cloudflare: Dashboard → Caching → Purge Cache (all or by URL). AWS: Invalidation in CloudFront console. Yandex: Prefetch/Purge API.
Yes. Google uses TTFB + Core Web Vitals. Fast CDN → better CWV → +10-20% visibility.
Free plan — 10 monitors, checks every 5 min, no card required. Upgrade for 1-minute interval and multi-region monitoring.