Skip to content

Instantly share code, notes, and snippets.

@jonhiggs
Created June 29, 2015 06:45
Show Gist options
  • Save jonhiggs/0250badb48bed36cfb79 to your computer and use it in GitHub Desktop.
Save jonhiggs/0250badb48bed36cfb79 to your computer and use it in GitHub Desktop.
akamai_cache_headers
#!/usr/bin/env bash
if [[ -z $1 ]]; then
echo "Supply the url you need the cache headers for."
exit 1
fi
address=$1
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 ${address}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment