Skip to content

CloudFront versus Cloudflare

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

CloudFront logo Cloudflare logo

Company

Company CloudFront Cloudflare
Short profile 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. 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.

Products

Product CloudFront Cloudflare
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? Available/supported Not available/supported
Video on demandDelivery of on demand video Available/supported Partially
Image OptimizationAutomatic image compression/optimization Not available/supported 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 CloudFront Cloudflare
North America 21 25
Latin America 2 8
Europe 17 29
Russia & CIS 0 2
Asia, excl China 11 13
China 0 20
Oceania 2 5
Middle-East 0 4
Africa 0 6

Pricing

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

Features

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

Support

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