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

  • Yes = Yes
  • Sortof/partially = Sort of/partially
  • No = No
  • Extra costs = Extra costs
  • Unknown = Unknown
Product CloudFront Cloudflare
Dynamic content deliveryNon-cacheable content delivery. User login, shopping cart ... Yes Dynamic Content Delivery Yes
Small file deliveryStatic object delivery; caching of small files (file size <1 MB) Yes Yes
Large file deliveryStatic object delivery; caching of large files (file size >1 MB) Yes Yes
Live videoDelivery of live video. RTMP? Transcoding/transmuxing? Yes Streaming Media No
Video on demandDelivery of on demand video Yes Yes Stream
Image OptimizationAutomatic image compression/optimization No Yes Mirage
DNSAuthoritative DNS for customer domain Yes AWS Route53 Yes DNS
WAFWeb Application Firewall Yes AWS WAF Yes Cloud Web Application Firewall
Anti-DDoSDDoS attack protection. Specific product(s) for this. Yes AWS Shield Yes DDoS Protection
Private CDNDedicated edge resources & custom configs No No
Edge ComputeRun your code on CDN edge servers Yes Lambda@Edge Yes Workers

Network

Region CloudFront Cloudflare
North America 24 43
Latin America 5 11
Europe 26 37
Russia & CIS 0 5
Asia excl. China 14 16
China 4 21
Oceania 3 5
Middle-East 4 10
Africa 3 9

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

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

Support

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