{"id":15999,"date":"2020-02-05T11:27:08","date_gmt":"2020-02-05T11:27:08","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=15999"},"modified":"2020-02-05T12:43:34","modified_gmt":"2020-02-05T12:43:34","slug":"troubleshoot-purge-amp-cdn-clear-cache-errors","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/troubleshoot-purge-amp-cdn-clear-cache-errors\/","title":{"rendered":"Troubleshoot Purge AMP CDN clear Cache errors"},"content":{"rendered":"\n<p>Once you download and install <strong><a href=\"https:\/\/ampforwp.com\/addons\/purge-amp-cdn-cache\/\">Purge AMP CDN Cache<\/a><\/strong> extension it will create this file in the main directory like below the screenshot.<\/p>\n\n\n\n<h5><strong>1.<\/strong> First, you should check a .<strong>well-known<\/strong> folder is available or not in your main domain directory.<\/h5>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"719\" height=\"540\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/6-1.png\" alt=\"\" class=\"wp-image-16025\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/6-1.png 719w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/6-1-300x225.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/6-1-50x38.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/6-1-60x45.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/6-1-100x75.png 100w\" sizes=\"(max-width: 719px) 100vw, 719px\" \/><\/figure>\n\n\n\n<p>If it is not available on your main domain directory then you can download and place it in your main domain directory you can download this zip file <a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/well-known.zip\">Click Here<\/a>.<\/p>\n\n\n\n<h5><strong>2. <\/strong>Need to check the below code is present in your main domain directory .htaccess file or not.<\/h5>\n\n\n\n<pre class=\"wp-block-preformatted\"># BEGIN PurgeCDN\n<files \"apikey.pub\"=\"\">\nAddType text\/plain .pub\nHeader add Cache-Control \"max-age=300, public\"\nSetEnvIfNoCase User-Agent .*google.* search_robot\nSetEnvIfNoCase User-Agent .*yahoo.* search_robot\nSetEnvIfNoCase User-Agent .*bot.* search_robot\nSetEnvIfNoCase User-Agent .*ask.* search_robot\nAllow from env=search_robot\n<\/files>\n# END PurgeCDN\n<\/pre>\n\n\n\n<p>If not present then place the above code at the end of the .htaccess file. <\/p>\n\n\n\n<p>In  .well-known folder there will be public key named &#8220;<strong>apikey.pub<\/strong>&#8221; followed by amphtml folder.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/Untitled_-Feb-5-2020-4_45-PM-1.webm\"><\/video><\/figure>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.<\/p>\n<div id=\"div-1\" class=\"hkb-feedback\">\n\t\t\t<strong class=\"ht-mobile-exit__title\">Ask your Questions Directly!<\/strong><br>\n\t\t\t<div class=\"hkb_widget_exit__content\" style=\"font-size: 14px;\">If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!<\/div>\n\t\t\t<a href=\"https:\/\/ampforwp.com\/support\/#contact\" id=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"><button>Yes, I have a Question<\/button><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Once you download and install Purge AMP CDN Cache extension it will create this file in the main directory like below the screenshot. 1. First, you should check a .well-known folder is available or not in your main domain directory. If it is not available on your main domain directory&#8230;<\/p>\n","protected":false},"author":18,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[168],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/15999"}],"collection":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=15999"}],"version-history":[{"count":19,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/15999\/revisions"}],"predecessor-version":[{"id":16026,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/15999\/revisions\/16026"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=15999"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=15999"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=15999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}