{"id":915,"date":"2017-01-12T10:24:52","date_gmt":"2017-01-12T10:24:52","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=915"},"modified":"2017-01-12T10:24:52","modified_gmt":"2017-01-12T10:24:52","slug":"troubleshooting-akamai-cdn-using-pragma-headers","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2017\/01\/12\/troubleshooting-akamai-cdn-using-pragma-headers\/","title":{"rendered":"Troubleshooting Akamai CDN using Pragma Headers"},"content":{"rendered":"<p>Rackspace Cloud Files CDN enabled containers and the Rackspace CDN product can occasionally have an issue, in such cases, you can troubleshoot this a lot easier by using the DEBUG headers. To do this add -D and the folowing -H headers for your output<\/p>\n<pre>\r\ncurl -I http:\/\/rackspacecdnurlgoeshereprivatecensored.r17.cf3.rackcdn.com\/common\/test\/generator.png -D - -H \"Pragma: akamai-x-get-client-ip, akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no, akamai-x-feo-trace, akamai-x-get-request-id\" -L\r\n<\/pre>\n<p>Naturally for this to work, you need to make sure you have a test URL. You can get one from Cloud Files in the Rackspace Control panel, or from whatever origin is configured with the CDN. Just login to the origin, and find a file path like httpdocs\/somefolder\/somefile.png and then get the raxcdn.com URL from the Rackspace CDN product page, or the Rackspace Cloud Files &#8216;show all links&#8217; page on the cog icon next to the cloud files container. And add the path behind your documentroot.<\/p>\n<p>So for the CDN URL rackspacecdnurlgoeshereprivatecensored.r17.cf3.rackcdn.com<\/p>\n<p>For the files on the origin in the documentroot of the website configured with the CDN just add the &#8216;local&#8217; document path within httpdocs or your www folder!<\/p>\n<p>i.e. rackspacecdnurlgoeshereprivatecensored.r17.cf3.rackcdn.com becomes rackspacecdnurlgoeshereprivatecensored.r17.cf3.rackcdn.com\/somefolder\/somefile.png<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rackspace Cloud Files CDN enabled containers and the Rackspace CDN product can occasionally have an issue, in such cases, you can troubleshoot this a lot easier by using the DEBUG headers. To do this add -D and the folowing -H &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2017\/01\/12\/troubleshooting-akamai-cdn-using-pragma-headers\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,34,14,28],"tags":[],"class_list":["post-915","post","type-post","status-publish","format-standard","hentry","category-bash","category-cdn","category-cloud-files","category-interweb"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/915","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=915"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/915\/revisions"}],"predecessor-version":[{"id":916,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/915\/revisions\/916"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}