{"id":6004,"date":"2021-12-18T18:28:34","date_gmt":"2021-12-18T17:28:34","guid":{"rendered":"https:\/\/joapen.com\/blog\/?p=6004"},"modified":"2021-12-20T10:35:24","modified_gmt":"2021-12-20T09:35:24","slug":"aws-cloudfront-with-w3-total-cache","status":"publish","type":"post","link":"https:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/","title":{"rendered":"AWS CloudFront with W3 Total Cache"},"content":{"rendered":"\n<p>I have been able to configure the CDN using this document: <\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/W3EDGE\/w3-total-cache\/wiki\/FAQ:-CDN#how-do-i-configure-amazon-simple-storage-service-amazon-s3-or-amazon-cloudfront-as-my-cdn\">https:\/\/github.com\/W3EDGE\/w3-total-cache\/wiki\/FAQ:-CDN#how-do-i-configure-amazon-simple-storage-service-amazon-s3-or-amazon-cloudfront-as-my-cdn<\/a><\/p>\n\n\n\n<p>Basically you have to:<\/p>\n\n\n\n<p>1.- Menu: Performance \\ General Settings \\ CDN &#8211;> Activate the CDN in the W3 Total Cache:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"294\" src=\"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-6-1024x294.png\" alt=\"\" class=\"wp-image-6007\" srcset=\"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-6-1024x294.png 1024w, https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-6-300x86.png 300w, https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-6-768x221.png 768w, https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-6.png 1131w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>2.- In AWS go to : <a href=\"https:\/\/console.aws.amazon.com\/iam\/home#\/security_credentials$access_key\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/console.aws.amazon.com\/iam\/home#\/security_credentials$access_key<\/a><\/p>\n\n\n\n<p>Create an &#8220;Access key&#8221;:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"591\" src=\"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-7-1024x591.png\" alt=\"\" class=\"wp-image-6009\" srcset=\"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-7-1024x591.png 1024w, https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-7-300x173.png 300w, https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-7-768x443.png 768w, https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-7.png 1343w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>3.- Menu: Performance \\ CDN &#8212;> enter the credentials, and then &#8220;Create Distribution&#8221;. If there is no error, then &#8220;Save settings &amp; purge cache&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"423\" src=\"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-8-1024x423.png\" alt=\"\" class=\"wp-image-6010\" srcset=\"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-8-1024x423.png 1024w, https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-8-300x124.png 300w, https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-8-768x317.png 768w, https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-8.png 1364w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Note<\/strong>: the recommendation is the creation of a policy. I still need some time to do this.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The result<\/h2>\n\n\n\n<p>I have improved the grade under GTmetrix rules, from &#8220;D&#8221; to &#8220;A&#8221; from Vancouver.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"453\" src=\"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-5-1024x453.png\" alt=\"\" class=\"wp-image-6005\" srcset=\"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-5-1024x453.png 1024w, https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-5-300x133.png 300w, https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-5-768x340.png 768w, https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-5-1536x679.png 1536w, https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-5.png 1565w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I have been able to configure the CDN using this document: https:\/\/github.com\/W3EDGE\/w3-total-cache\/wiki\/FAQ:-CDN#how-do-i-configure-amazon-simple-storage-service-amazon-s3-or-amazon-cloudfront-as-my-cdn Basically you have to: 1.- Menu: Performance \\ General Settings \\ CDN &#8211;> Activate the CDN in the W3 Total Cache: 2.- In AWS go to : https:\/\/console.aws.amazon.com\/iam\/home#\/security_credentials$access_key Create an &#8220;Access key&#8221;: 3.- Menu: Performance \\ CDN &#8212;> enter the credentials, and then &#8230; <a title=\"AWS CloudFront with W3 Total Cache\" class=\"read-more\" href=\"https:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/\" aria-label=\"Read more about AWS CloudFront with W3 Total Cache\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[66],"tags":[],"class_list":["post-6004","post","type-post","status-publish","format-standard","hentry","category-aws"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>AWS CloudFront with W3 Total Cache -<\/title>\n<meta name=\"description\" content=\"I have been able to configure the CDN using this document: - joapen projects\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AWS CloudFront with W3 Total Cache -\" \/>\n<meta property=\"og:description\" content=\"I have been able to configure the CDN using this document: - joapen projects\" \/>\n<meta property=\"og:url\" content=\"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/\" \/>\n<meta property=\"og:site_name\" content=\"joapen projects\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-18T17:28:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-20T09:35:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-6-1024x294.png\" \/>\n<meta name=\"author\" content=\"joapen\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"joapen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/18\\\/aws-cloudfront-with-w3-total-cache\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/18\\\/aws-cloudfront-with-w3-total-cache\\\/\"},\"author\":{\"name\":\"joapen\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\"},\"headline\":\"AWS CloudFront with W3 Total Cache\",\"datePublished\":\"2021-12-18T17:28:34+00:00\",\"dateModified\":\"2021-12-20T09:35:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/18\\\/aws-cloudfront-with-w3-total-cache\\\/\"},\"wordCount\":124,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\"},\"image\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/18\\\/aws-cloudfront-with-w3-total-cache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/image-6-1024x294.png\",\"articleSection\":[\"AWS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/18\\\/aws-cloudfront-with-w3-total-cache\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/18\\\/aws-cloudfront-with-w3-total-cache\\\/\",\"url\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/18\\\/aws-cloudfront-with-w3-total-cache\\\/\",\"name\":\"AWS CloudFront with W3 Total Cache -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/18\\\/aws-cloudfront-with-w3-total-cache\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/18\\\/aws-cloudfront-with-w3-total-cache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/image-6-1024x294.png\",\"datePublished\":\"2021-12-18T17:28:34+00:00\",\"dateModified\":\"2021-12-20T09:35:24+00:00\",\"description\":\"I have been able to configure the CDN using this document: - joapen projects\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/18\\\/aws-cloudfront-with-w3-total-cache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/18\\\/aws-cloudfront-with-w3-total-cache\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/18\\\/aws-cloudfront-with-w3-total-cache\\\/#primaryimage\",\"url\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/image-6.png\",\"contentUrl\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/image-6.png\",\"width\":1131,\"height\":325},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/18\\\/aws-cloudfront-with-w3-total-cache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/joapen.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS CloudFront with W3 Total Cache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/joapen.com\\\/blog\\\/\",\"name\":\"joapen projects\",\"description\":\"Just a place to write\",\"publisher\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/joapen.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\",\"name\":\"joapen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\",\"url\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\",\"contentUrl\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\",\"width\":400,\"height\":400,\"caption\":\"joapen\"},\"logo\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\"},\"sameAs\":[\"http:\\\/\\\/www.joapen.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AWS CloudFront with W3 Total Cache -","description":"I have been able to configure the CDN using this document: - joapen projects","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":"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/","og_locale":"en_US","og_type":"article","og_title":"AWS CloudFront with W3 Total Cache -","og_description":"I have been able to configure the CDN using this document: - joapen projects","og_url":"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/","og_site_name":"joapen projects","article_published_time":"2021-12-18T17:28:34+00:00","article_modified_time":"2021-12-20T09:35:24+00:00","og_image":[{"url":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-6-1024x294.png","type":"","width":"","height":""}],"author":"joapen","twitter_misc":{"Written by":"joapen","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/#article","isPartOf":{"@id":"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/"},"author":{"name":"joapen","@id":"https:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217"},"headline":"AWS CloudFront with W3 Total Cache","datePublished":"2021-12-18T17:28:34+00:00","dateModified":"2021-12-20T09:35:24+00:00","mainEntityOfPage":{"@id":"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/"},"wordCount":124,"commentCount":0,"publisher":{"@id":"https:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217"},"image":{"@id":"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/#primaryimage"},"thumbnailUrl":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-6-1024x294.png","articleSection":["AWS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/","url":"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/","name":"AWS CloudFront with W3 Total Cache -","isPartOf":{"@id":"https:\/\/joapen.com\/blog\/#website"},"primaryImageOfPage":{"@id":"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/#primaryimage"},"image":{"@id":"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/#primaryimage"},"thumbnailUrl":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-6-1024x294.png","datePublished":"2021-12-18T17:28:34+00:00","dateModified":"2021-12-20T09:35:24+00:00","description":"I have been able to configure the CDN using this document: - joapen projects","breadcrumb":{"@id":"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/#primaryimage","url":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-6.png","contentUrl":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/12\/image-6.png","width":1131,"height":325},{"@type":"BreadcrumbList","@id":"http:\/\/joapen.com\/blog\/2021\/12\/18\/aws-cloudfront-with-w3-total-cache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/joapen.com\/blog\/"},{"@type":"ListItem","position":2,"name":"AWS CloudFront with W3 Total Cache"}]},{"@type":"WebSite","@id":"https:\/\/joapen.com\/blog\/#website","url":"https:\/\/joapen.com\/blog\/","name":"joapen projects","description":"Just a place to write","publisher":{"@id":"https:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/joapen.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217","name":"joapen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg","url":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg","contentUrl":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg","width":400,"height":400,"caption":"joapen"},"logo":{"@id":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg"},"sameAs":["http:\/\/www.joapen.com"]}]}},"_links":{"self":[{"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts\/6004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/comments?post=6004"}],"version-history":[{"count":2,"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts\/6004\/revisions"}],"predecessor-version":[{"id":6011,"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts\/6004\/revisions\/6011"}],"wp:attachment":[{"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/media?parent=6004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/categories?post=6004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/tags?post=6004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}