Skip to content

Cloudflare versus CloudFront

Easily compare Cloudflare and CloudFront for POP locations, products, pricing, features & support. We hope this helps you better understand the similarities and differences between these content delivery networks.

Cloudflare logo CloudFront logo

Company

Company Cloudflare CloudFront
Short profile Cloudflare provides a global CDN with unique performance capabilities and a strong focus on security. The company has a global infrastructure built from the ground up using only next-generation, high-performance equipment—no legacy software or hardware. The result is a CDN that's easy to set up, affordable, and built to continuously adapt and integrate emerging technologies to meet future needs of everyone's Internet properties. CloudFront is the CDN of AWS (Amazon Web Services), the world's largest cloud services provider. CloudFront offers a mature set of content delivery products and has a big network of POPs on many continents. Solid documentation and APIs make CloudFront a developer-friendly CDN.

Products

Product Cloudflare CloudFront
Dynamic content deliveryNon-cacheable content delivery. User login, shopping cart ... Available/supported Available/supported
Small file deliveryStatic object delivery; caching of small files (file size <1 MB) Available/supported Available/supported
Large file deliveryStatic object delivery; caching of large files (file size >1 MB) Available/supported Available/supported
Live videoDelivery of live video. RTMP? Transcoding/transmuxing? Not available/supported Available/supported
Video on demandDelivery of on demand video Partially Available/supported
Image OptimizationAutomatic image compression/optimization Available/supported Not available/supported
DNSAuthoritative DNS for customer domain Available/supported Available/supported
WAFWeb Application Firewall Available/supported Available/supported
Anti-DDoSDDoS attack protection. Specific product(s) for this. Available/supported Available/supported
Private CDNDedicated edge resources & custom configs Not available/supported Not available/supported

Network

Region Cloudflare CloudFront
North America 25 21
Latin America 8 2
Europe 29 17
Russia & CIS 2 0
Asia, excl China 13 11
China 20 0
Oceania 5 2
Middle-East 4 0
Africa 6 0

Pricing

Pricing & contract duration Cloudflare CloudFront
Minimum contract term None None
Minimum monthly costs $0 None
Requests costsCustomers pay for client to CDN requests None $0.0075 - $0.022 per 10k requests
Ingress costsCustomers pay for origin-to-CDN bytes transferred None $0.02 - $0.16 per GB (free is origin is AWS)
NA/EU traffic (low volume) $0 $0.085 per GB
APAC traffic (low volume) $0 $0.14 per GB (India: $0.17)
LATAM traffic (low volume) $0 $0.25 per GB

Features

Web acceleration Cloudflare CloudFront
Instant setupSign up, configure, start testing. Available/supported Available/supported
Change propagation delayHow fast do config changes propagate to all POPs? Available/supported Instant Partially ~10 minutes
Apex/root domain OK Blog: Root domain on CDN and performanceNo performance degradation when using http(s)://domain.com Available/supported Global Anycast network Partially Only if used together with AWS Route53
HTTP/2 Available/supported Available/supported HTTP/s announcement (Sep 2016)
IPv6Do the edge servers have IPv6? Available/supported Available/supported IPv6 support announcement (Oct 2016)
Compression CDN Guide: CompressionReduce file size for faster delivery Resend, or compress on edge Resend, or compress on edge
tooltip CloudFront can compress many content types on the edge
Origin pull - protocolHTTP only or HTTPS possible too? Available/supported HTTP and HTTPS Available/supported HTTP and HTTPS
Origin pull - Host headerUse client > edge value? Set specific value? Available/supported Can be an IP address Partially Can't configure specific other Host header
Origin shieldOne POP pulls from origin, other POPs pull from the shield POP Not available/supported Not available/supported CloudFront does request collapsing though
Push / uploadStore your content directly on CDN, no customer origin Not available/supported Not available/supported
Cache control - CDN caching Available/supported Page rules for overriding caching headers Unknown
Cache control - client caching Available/supported Unknown
Serve stale CDN Guide: Serve staleCDN serves cached but expired content in case origin is in trouble Partially Only 'stale while revalidate' Available/supported No Cache-Control extensions support
Purge CDN Guide: PurgeInvalidate or delete cached objects on CDN Available/supported ~ 5 seconds Available/supported 1 minute or faster
Purge - capabilities Partially Purge per file and purge all Partially Purge all and by directory/file type (wildcards)
Analytics Available/supported Web analytics, threats and more Available/supported Amazon CloudFront Reports & Analytics
Log files Extra costs Only for Enterprise customers Partially Only delivered to S3
tooltip CloudFront delivers access logs for a distribution up to several times an hour
API Available/supported Purge, analytics, configuration Available/supported Purge, analytics, configuration
HTTPS & Content Protection Cloudflare CloudFront
CDN domain HTTPSUse the CDN's domain, like cloudfront.net Available/supported SNI Available/supported Free (not SNI)
Customer domain HTTPSYour domain in the CDN's certificate Extra costs More info Not available/supported
Customer cert HTTPSYour certificate on the CDN Extra costs Available/supported Free (SNI) or $600/m for non-SNI
Token authentication Available/supported More info Available/supported Serving Private Content through CloudFront
Geo blocking Available/supported Access Rules Available/supported Restricting the Geographic Distribution of Your Content
Hotlink protectionThird parties cannot deeplink to your content Available/supported Extra costs Use AWS WAF for Referer Checking
Basic authenticationUser logs in on the CDN to get content Unknown Not available/supported
IP white/blacklisting Available/supported Access Rules Extra costs Use AWS WAF to Block IP Addresses

Support

Customer support Cloudflare CloudFront
Documentation Available/supported Yes, public. Cloudflare Community. Available/supported Yes, public. API docs
Humans Partially Email support for all. Phone only for Enterprise customers Extra costs Community support is free. Email and phone support (AWS Support) available at extra costs