What's the best way to troubleshoot Akamai headers these days?
Asked Answered
J

8

10

Traditionally, I would inspect the Akamai headers by installing a Firefox extension called akamaiheaders.xpi. Unfortunately, I think the last version of Firefox to support this was 3.

As I understand it, this plugin would add special headers to all HTTP requests that Firefox made, which would prompt Akamai to add a bunch of headers to the response (telling me whether the file was cached, where it got it from, etc.). Then, using a tool like HTTPFox or Firebug, I could easily see which assets were cached and which ones were not.

I've searched all over, but I can't find anything as simple and easy to use as that. Does anyone know of anything out there that allows me to track all the Akamai headers for all the assets my browser loads that works in either FF, Chrome, or Safari?

Justifiable answered 10/1, 2012 at 22:54 Comment(0)
J
1

If you can find the akamaiheader.xpi file, you can just open it and change the maxVersion in install.rdf to 9.*

.xpi files are just ZIP files, and on most machines you can just add .zip to the filename and doubleclick on it.

Justifiable answered 19/1, 2012 at 13:53 Comment(0)
C
24

You can use curl and/or wget for this:

curl -H "Pragma: 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" -IXGET http://www.oxfordpress.com/

or

wget -S -O /dev/null --header="Pragma: 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" http://www.oxfordpress.com/

If you want to test staging environment, you need to remember to send Host header, eg:

curl -H "Host: www.oxfordpress.com" -H "Pragma: ..." -IXGET http://oxfordpress.com.edgesuite-staging.net/

This way or another, it's always about sending proper Pragma headers and then reading response headers.

List of Pragma headers as well as explanations for X-Cache response header can be found here: http://webspherehelp.blogspot.com/2009/07/understanding-akamai-headers-to-debug.html.

Commonwealth answered 13/10, 2012 at 14:40 Comment(0)
P
10

I know this question is old, but since I came across it in my search today I thought I'd add an answer for the next person who comes along.

There are a couple of extensions in the Chrome store for this now:

Akamai debug headers is the one I chose and it's working well so far.

Picofarad answered 7/7, 2014 at 18:16 Comment(0)
E
6

You can use a local proxy (e.g. Fiddler or Charles Proxy, my personal favorite) and add the following header to outgoing requests:

Pragma: 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

Enlistee answered 20/1, 2012 at 22:1 Comment(1)
Check this out: Validate if web resource is served from AKAMAI (CDN)??Verbalism
Q
4

If you're using Chrome or Chromium, you can use the extensions Header Hacker or Pragma Header. With either one, you will be have to add Pragmas manually.

Quantity answered 23/6, 2012 at 22:44 Comment(2)
Great tips. I've just installed both. Header Hacker won't allow me to modify the Pragma header. Pragma Header works but, you can't store a set of Pragma headers, so to turn it on you have to dig up and copy/paste all of the Akamai Pragma headers individually each time. Also, you have to restart Chrome each time you turn it on/off. :-(Justifiable
Chrome also has the addon "Modify headers". A little less powerful, but it allows Pragma headersFisc
M
2

To debug akamai headers, for the Chrome browser, try this extension: CDN Headers & Cookies - Chrome Web Store https://chrome.google.com/webstore/detail/cdn-headers-cookies/obldlamadkihjlkdjblncejeblbogmnb

Note: Enable 'Load Akamai Headers' in the settings (click the 'Lego minifig Head' icon, click the gear, and check on 'Load Akamai Headers').

It has been suggested on the Akamai community. https://community.akamai.com/community/web-performance/blog/2015/03/31/using-akamai-pragma-headers-to-investigate-or-troubleshoot-akamai-content-delivery

Miniver answered 23/10, 2015 at 22:33 Comment(0)
J
1

If you can find the akamaiheader.xpi file, you can just open it and change the maxVersion in install.rdf to 9.*

.xpi files are just ZIP files, and on most machines you can just add .zip to the filename and doubleclick on it.

Justifiable answered 19/1, 2012 at 13:53 Comment(0)
B
0

They have a new version of the XPI out which you can download in Luna. There's also another Plugin which adds a 'content source' pane into Firebug for a quick reference of what on the page was Akamaised.

As I say, to download both plugins you need to login to Luna and look under 'Support' > 'More Tools' > 'Browser Extensions'. The XPI isn't publicly accessible.

YMMV but as far as I recall being told by colleagues the Exceda plugin duplicated HTTP requests which can be a bit messy whilst debugging.

For Chrome I find ModHeader + Setting up a profile where the Pragma headers are sent works fine.

Beyer answered 10/11, 2014 at 12:27 Comment(0)
N
0

https://chrome.google.com/webstore/detail/cdn-headers-cookies/obldlamadkihjlkdjblncejeblbogmnb this extension helped me to check akamai response headers enter image description here

Nanny answered 15/6, 2023 at 3:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.