{"id":1134068,"date":"2019-04-16T11:00:23","date_gmt":"2019-04-16T09:00:23","guid":{"rendered":"https:\/\/wp-rocket.me\/?p=1134068"},"modified":"2021-07-29T09:42:10","modified_gmt":"2021-07-29T07:42:10","slug":"cloudflare-vs-cloudfront","status":"publish","type":"post","link":"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/","title":{"rendered":"Cloudflare vs CloudFront: How They Work, Plus Which is Best For You"},"content":{"rendered":"<p>This post is about clouds. No &#8211; not the fluffy kind in the sky. Two specific types of clouds &#8211; Cloudflare vs CloudFront.<br><\/p><p>At a basic level, both of these tools aim to speed up your website for global visitors by storing your static content at lots of different servers around the world. If you&#8217;re not familiar, the term for this is &#8220;<a href=\"https:\/\/wp-rocket.me\/blog\/best-content-delivery-networks-wordpress-2017\/\">content delivery network<\/a>&#8221; (or CDN).<br><\/p><p>However, while Cloudflare and CloudFront share the same goal, they go about it in different ways and also have slightly different feature sets.<br><\/p><p>In this post, I&#8217;ll compare Cloudflare vs Amazon CloudFront to help you pick the solution that&#8217;s right for your WordPress site.<br><\/p><p><em>Side note &#8211; you can use WP Rocket with either Cloudflare or CloudFront, so you&#8217;ll be covered no matter which one you pick!<\/em><\/p><h2 class=\"wp-block-heading\">Cloudflare vs CloudFront: The Basic Differences<\/h2><p>Ok, so both Cloudflare and CloudFront are CDNs. However, beyond that, there&#8217;s a big difference in how they function.<\/p><h3 class=\"wp-block-heading\">Cloudflare Explained<\/h3><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"527\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudflare-map.png\" alt=\"Cloudflare Map\" class=\"wp-image-1134070\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudflare-map.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudflare-map-300x198.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudflare-map-768x506.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><p><a href=\"https:\/\/www.cloudflare.com\/\">Cloudflare<\/a> is actually a <strong>reverse proxy<\/strong>. In part, that means that, when you set up your site with Cloudflare, you&#8217;ll actually point your domain&#8217;s nameservers to Cloudflare.<br><\/p><p>Then, <a href=\"https:\/\/wp-rocket.me\/blog\/cloudflare-use-not\/\">Cloudflare will direct all the traffic to your site<\/a>. This gives Cloudflare a lot of control over your site, and this is also what allows Cloudflare to offer extra functionality <em>beyond<\/em> its CDN (<em>more on this in a second<\/em>).<br><\/p><p>Here&#8217;s the process in a little more detail:<\/p><p>When someone visits your site, Cloudflare will take your static content and store your content on Cloudflare&#8217;s network of servers around the world. Then, for future visitors, Cloudflare can serve up that cached static content from the Cloudflare edge server that&#8217;s nearest to each visitor.<br><\/p><p>Because of how this approach works, all of your content will still load from <strong>yoursite.com<\/strong>. This is different from how a lot of other CDNs work, where it&#8217;s common to serve your content from a separate URL like <strong>cdn.yoursite.com<\/strong>.<br><\/p><p>Beyond its CDN functionality, Cloudflare also has a number of other benefits on its <strong>free<\/strong> plan including:<\/p><ul class=\"wp-block-list\"><li>Free shared SSL certificate<\/li><li>DDoS protection<\/li><\/ul><p>If you&#8217;re willing to pay for a premium plan, you can also add on functionality like:<\/p><ul class=\"wp-block-list\"><li>Web application firewall (WAF)<\/li><li>Image and mobile optimization<\/li><li>More control over security and your CDN<\/li><\/ul><h3 class=\"wp-block-heading\">Amazon CloudFront Explained<\/h3><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"543\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudfront-map.png\" alt=\"Cloudfront Map\" class=\"wp-image-1134079\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudfront-map.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudfront-map-300x204.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudfront-map-768x521.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><p><a href=\"https:\/\/aws.amazon.com\/cloudfront\/\">Amazon CloudFront<\/a>, on the other hand, is more of a &#8220;traditional&#8221; CDN. That is, you don&#8217;t need to change your nameservers to CloudFront like you do with Cloudflare&#8217;s reverse proxy approach.<br><\/p><p>Instead, CloudFront will automatically &#8220;pull&#8221; the data from your origin server onto CloudFront&#8217;s network of servers around the world. <em>It&#8217;s also possible to &#8220;push&#8221; your content on to CloudFront &#8211; more on this later<\/em>.<br><\/p><p>However, because CloudFront isn&#8217;t controlling your nameservers like Cloudflare does, CloudFront cannot automatically make your WordPress site serve up content from a different edge server.<br><\/p><p><strong>That&#8217;s where the separate URL comes in<\/strong>.<br><\/p><p>Using something like <strong>cdn.yoursite.com<\/strong>, you&#8217;ll rewrite the URLs of the static content on your site so that they load content from <strong>cdn.yoursite.com (<\/strong><em>the nearest CloudFront edge server<\/em>) instead of <strong>yoursite.com<\/strong> (<em>your origin server<\/em>).<br><\/p><p>This is what the <strong>CDN<\/strong> tab helps you do in WP Rocket &#8211; you can enter the URL of your CDN and choose which files it should apply to (<em>and even manually exclude certain files from being served via the CDN<\/em>):<br><\/p><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"547\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-set-up-with-wp-rocket.png\" alt=\"Setting up a CDN with WP Rocket\" class=\"wp-image-1134092\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-set-up-with-wp-rocket.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-set-up-with-wp-rocket-300x205.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-set-up-with-wp-rocket-768x525.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><p>CloudFront is also part of the whole Amazon Web Services (AWS) ecosystem, which makes it convenient if you&#8217;re using other AWS services (<em>like Amazon S3<\/em>).<br><\/p><p>CloudFront offers 50 GB of free data transfer for one year. After that, you&#8217;ll pay per GB of data transfer.<\/p><h3 class=\"wp-block-heading\">Should You Use Cloudflare or CloudFront on WordPress?<\/h3><p>Most WordPress users will be better suited by <strong>Cloudflare<\/strong> because:<\/p><ul class=\"wp-block-list\"><li>It has a simpler setup process than Amazon CloudFront<\/li><li>The free plan will fit the needs of most WordPress users<\/li><li>WP Rocket offers <a href=\"https:\/\/docs.wp-rocket.me\/article\/18-using-wp-rocket-with-cloudflare\">a dedicated Cloudflare integration<\/a><\/li><li>Cloudflare has a <em>slightly<\/em> larger network of edge servers, though the difference is small<\/li><li>Cloudflare does &#8220;more&#8221; than just content delivery, with lots of beneficial security features as well<\/li><\/ul><p>That&#8217;s certainly not to say that Cloudflare is <em>always<\/em> better than Amazon CloudFront. It&#8217;s just that a lot of CloudFront&#8217;s benefits aren&#8217;t things that most WordPress users will care about. <br><\/p><p>For example, CloudFront gives you more control over nitty-gritty details like HTTP headers and cache invalidation, and CloudFront also works with live streaming content.<br><\/p><p>However, most WordPress users won&#8217;t need that functionality, and will be better served by the simplicity of Cloudflare.<\/p><h2 class=\"wp-block-heading\">How to Set Up Cloudflare and CloudFront<\/h2><p>To finish things out, we&#8217;ll give you a high-level look at what the setup process is like at both Cloudflare and CloudFront.<\/p><h3 class=\"wp-block-heading\">How to Set Up Cloudflare<\/h3><p>As you learned above, Cloudflare has one of the easiest setup processes.<br><\/p><p>When you sign up for your free Cloudflare account and start the &#8220;Add Site&#8221; wizard, Cloudflare will prompt you to change your domain&#8217;s nameservers to point towards Cloudflare. Again, this is required because of Cloudflare&#8217;s reverse proxy approach:<br><\/p><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"436\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-setting-up-cloudflare.png\" alt=\"\" class=\"wp-image-1134097\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-setting-up-cloudflare.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-setting-up-cloudflare-300x164.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-setting-up-cloudflare-768x419.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><p>Once you do that, you&#8217;ll be able to manage your Cloudflare settings from the Cloudflare web dashboard.<br><\/p><p>If you&#8217;re using WP Rocket, you can also connect WP Rocket to your Cloudflare account so that you&#8217;re able to manage some important settings and clear your Cloudflare cache right from your WordPress dashboard:<br><\/p><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"893\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudflare-settings-within-wp-rocket.jpg\" alt=\"Cloudflare vs Cloudfront: Cloudflare settings\" class=\"wp-image-1134103\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudflare-settings-within-wp-rocket.jpg 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudflare-settings-within-wp-rocket-269x300.jpg 269w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudflare-settings-within-wp-rocket-768x857.jpg 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudflare-settings-within-wp-rocket-300x335.jpg 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><p>You can learn more about <a href=\"https:\/\/docs.wp-rocket.me\/article\/18-using-wp-rocket-with-cloudflare\">WP Rocket&#8217;s Cloudflare integration in this help article<\/a>.<\/p><h3 class=\"wp-block-heading\">How to Set Up CloudFront<\/h3><p>There are two ways to use CloudFront with WordPress:<\/p><ul class=\"wp-block-list\"><li><strong>Pull <\/strong>&#8211; you tell CloudFront to &#8220;pull&#8221; the files from your WordPress site&#8217;s server as needed. CloudFront will then cache these files on its servers.<\/li><li><strong>Push <\/strong>&#8211; you &#8220;push&#8221; your site&#8217;s static files to Amazon S3 (<em>Amazon&#8217;s object storage service<\/em>) and then tell CloudFront to use the files in your S3 bucket. If you use this approach, you&#8217;ll need a plugin like <a href=\"https:\/\/wordpress.org\/plugins\/amazon-s3-and-cloudfront\/\">WP Offload Media Lite<\/a> to offload your static WordPress files to Amazon S3.<\/li><\/ul><p>To get started, you&#8217;ll create a new &#8220;Distribution&#8221; and tell CloudFront whether you want it to take files from your WordPress server or from a different location, like an S3 bucket:<br><\/p><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"438\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudfront-setup.png\" alt=\"Cloudflare vs Cloudfront: Cloudfront settings\" class=\"wp-image-1134112\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudfront-setup.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudfront-setup-300x164.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-cloudfront-setup-768x420.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><p><a href=\"https:\/\/docs.aws.amazon.com\/AmazonCloudFront\/latest\/DeveloperGuide\/GettingStarted.html\">This guide from Amazon<\/a> covers the process in more detail.<br><\/p><p>Once you&#8217;ve done that, you can use WP Rocket to serve files from the URL that CloudFront gives you &#8211; e.g. <strong>http:\/\/d111111abcdef8.cloudfront.net<\/strong>. <br><\/p><p>Or, you can also set up CloudFront to work with your own domain name by <a href=\"https:\/\/docs.aws.amazon.com\/AmazonCloudFront\/latest\/DeveloperGuide\/CNAMEs.html\">setting up an alternate domain name (CNAME)<\/a>.<\/p><div id=\"om-ulrdquoprwqcywqbbgci-holder\"><\/div>\n\t<script>(function (d, u, ac) {\n\t\t\tvar s = d.createElement('script')\n\t\t\ts.type = 'text\/javascript'\n\t\t\ts.src = 'https:\/\/a.omappapi.com\/app\/js\/api.min.js'\n\t\t\ts.async = true\n\t\t\ts.dataset.user = u\n\t\t\ts.dataset.campaign = ac\n\t\t\td.getElementsByTagName('head')[0].appendChild(s)\n\t\t})(document, 20440, 'ulrdquoprwqcywqbbgci')<\/script><h2 class=\"wp-block-heading\">Cloudflare vs Amazon CloudFront: A Recap<\/h2><p>To sum up, both Cloudflare and Amazon CloudFront offer content delivery network functionality that can speed up your website&#8217;s global page load times and reduce the load on your server.<br><\/p><p>Cloudflare is a reverse proxy which means, in part, that you&#8217;ll use Cloudflare&#8217;s nameservers and Cloudflare will actually handle directing traffic for your site. This also comes with other benefits, like security and DDoS protection.<br><\/p><p>Amazon CloudFront, on the other hand, is more of a &#8220;traditional&#8221; CDN. You won&#8217;t need to change your nameservers. Instead, you can either have CloudFront automatically &#8220;pull&#8221; files from your WordPress site&#8217;s server onto CloudFront&#8217;s servers, or you can use a plugin like WP Offload Media Lite to &#8220;push&#8221; files into an Amazon S3 bucket and have CloudFront serve them from there.<br><\/p><p>Of the two, Cloudflare has a much simpler setup process and will make the best option for most WordPress users who don&#8217;t need detailed control over how the CDN cache works or have unique situations like live streaming content.<br><\/p><p>Finally, no matter which content delivery network you choose, <a href=\"https:\/\/wp-rocket.me\/\">WP Rocket<\/a> can help you with the setup process, either through <a href=\"https:\/\/docs.wp-rocket.me\/article\/42-using-wp-rocket-with-a-cdn\">its CDN features<\/a> or <a href=\"https:\/\/docs.wp-rocket.me\/article\/18-using-wp-rocket-with-cloudflare\">its dedicated Cloudflare integration<\/a>.<br><\/p>","protected":false},"excerpt":{"rendered":"<p>Struggling to choose between Cloudflare vs CloudFront? In this post we&#8217;ll explain how both of them work and help you choose the best CDN for your WordPress site.<\/p>\n","protected":false},"author":84133,"featured_media":1134118,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"kia_subtitle":"","footnotes":""},"categories":[63],"tags":[],"class_list":["post-1134068","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-cache"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cloudflare vs CloudFront: How They Work, Plus Which is Best For You<\/title>\n<meta name=\"description\" content=\"Struggling to choose between Cloudflare vs CloudFront? Here we&#039;ll explain how both of them work and help you choose the best CDN for your WordPress site.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cloudflare vs CloudFront: How They Work, Plus Which is Best For You\" \/>\n<meta property=\"og:description\" content=\"Struggling to choose between Cloudflare vs CloudFront? Here we&#039;ll explain how both of them work and help you choose the best CDN for your WordPress site.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Rocket\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-16T09:00:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-29T07:42:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-featured.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"460\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Colin Newcomer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:site\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Colin Newcomer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/\"},\"author\":{\"name\":\"Colin Newcomer\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/d591586bde54c0f702d335ee00c9f1ed\"},\"headline\":\"Cloudflare vs CloudFront: How They Work, Plus Which is Best For You\",\"datePublished\":\"2019-04-16T09:00:23+00:00\",\"dateModified\":\"2021-07-29T07:42:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/\"},\"wordCount\":1288,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-featured.png\",\"articleSection\":[\"Page speed and caching\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/\",\"url\":\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/\",\"name\":\"Cloudflare vs CloudFront: How They Work, Plus Which is Best For You\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-featured.png\",\"datePublished\":\"2019-04-16T09:00:23+00:00\",\"dateModified\":\"2021-07-29T07:42:10+00:00\",\"description\":\"Struggling to choose between Cloudflare vs CloudFront? Here we'll explain how both of them work and help you choose the best CDN for your WordPress site.\",\"breadcrumb\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#primaryimage\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-featured.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-featured.png\",\"width\":1100,\"height\":460,\"caption\":\"Cloudflare vs Cloudfront: which one should I choose?\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wp-rocket.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Page speed and caching\",\"item\":\"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cloudflare vs CloudFront: How They Work, Plus Which is Best For You\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wp-rocket.me\/#website\",\"url\":\"https:\/\/wp-rocket.me\/\",\"name\":\"WP Rocket\",\"description\":\"Plugin d&#039;optimisation de sites WordPress\",\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wp-rocket.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wp-rocket.me\/#organization\",\"name\":\"WP Rocket\",\"url\":\"https:\/\/wp-rocket.me\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"width\":150,\"height\":41,\"caption\":\"WP Rocket\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\",\"https:\/\/x.com\/wp_rocket\",\"https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/d591586bde54c0f702d335ee00c9f1ed\",\"name\":\"Colin Newcomer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dbfc60b99dd357e490f84ef7099dc25c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dbfc60b99dd357e490f84ef7099dc25c?s=96&d=mm&r=g\",\"caption\":\"Colin Newcomer\"},\"description\":\"Colin Newcomer is a freelance writer who spends his days inside the WordPress dashboard. He lives a life of danger, riding a scooter through the chaos of Hanoi.\",\"sameAs\":[\"https:\/\/wp-rocket.me\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cloudflare vs CloudFront: How They Work, Plus Which is Best For You","description":"Struggling to choose between Cloudflare vs CloudFront? Here we'll explain how both of them work and help you choose the best CDN for your WordPress site.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/","og_locale":"en_US","og_type":"article","og_title":"Cloudflare vs CloudFront: How They Work, Plus Which is Best For You","og_description":"Struggling to choose between Cloudflare vs CloudFront? Here we'll explain how both of them work and help you choose the best CDN for your WordPress site.","og_url":"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/","og_site_name":"WP Rocket","article_publisher":"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","article_published_time":"2019-04-16T09:00:23+00:00","article_modified_time":"2021-07-29T07:42:10+00:00","og_image":[{"width":1100,"height":460,"url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-featured.png","type":"image\/png"}],"author":"Colin Newcomer","twitter_card":"summary_large_image","twitter_creator":"@wp_rocket","twitter_site":"@wp_rocket","twitter_misc":{"Written by":"Colin Newcomer","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#article","isPartOf":{"@id":"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/"},"author":{"name":"Colin Newcomer","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/d591586bde54c0f702d335ee00c9f1ed"},"headline":"Cloudflare vs CloudFront: How They Work, Plus Which is Best For You","datePublished":"2019-04-16T09:00:23+00:00","dateModified":"2021-07-29T07:42:10+00:00","mainEntityOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/"},"wordCount":1288,"commentCount":5,"publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-featured.png","articleSection":["Page speed and caching"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/","url":"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/","name":"Cloudflare vs CloudFront: How They Work, Plus Which is Best For You","isPartOf":{"@id":"https:\/\/wp-rocket.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#primaryimage"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-featured.png","datePublished":"2019-04-16T09:00:23+00:00","dateModified":"2021-07-29T07:42:10+00:00","description":"Struggling to choose between Cloudflare vs CloudFront? Here we'll explain how both of them work and help you choose the best CDN for your WordPress site.","breadcrumb":{"@id":"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#primaryimage","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-featured.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/cloudflare-vs-cloudfront-featured.png","width":1100,"height":460,"caption":"Cloudflare vs Cloudfront: which one should I choose?"},{"@type":"BreadcrumbList","@id":"https:\/\/wp-rocket.me\/blog\/cloudflare-vs-cloudfront\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wp-rocket.me"},{"@type":"ListItem","position":2,"name":"Page speed and caching","item":"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/"},{"@type":"ListItem","position":3,"name":"Cloudflare vs CloudFront: How They Work, Plus Which is Best For You"}]},{"@type":"WebSite","@id":"https:\/\/wp-rocket.me\/#website","url":"https:\/\/wp-rocket.me\/","name":"WP Rocket","description":"Plugin d&#039;optimisation de sites WordPress","publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-rocket.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wp-rocket.me\/#organization","name":"WP Rocket","url":"https:\/\/wp-rocket.me\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","width":150,"height":41,"caption":"WP Rocket"},"image":{"@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","https:\/\/x.com\/wp_rocket","https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q"]},{"@type":"Person","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/d591586bde54c0f702d335ee00c9f1ed","name":"Colin Newcomer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/dbfc60b99dd357e490f84ef7099dc25c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dbfc60b99dd357e490f84ef7099dc25c?s=96&d=mm&r=g","caption":"Colin Newcomer"},"description":"Colin Newcomer is a freelance writer who spends his days inside the WordPress dashboard. He lives a life of danger, riding a scooter through the chaos of Hanoi.","sameAs":["https:\/\/wp-rocket.me\/"]}]}},"_links":{"self":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/1134068"}],"collection":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/users\/84133"}],"replies":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/comments?post=1134068"}],"version-history":[{"count":0,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/1134068\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media\/1134118"}],"wp:attachment":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media?parent=1134068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/categories?post=1134068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/tags?post=1134068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}