How do I know that my CDN is working?
To verify that your CDN is working properly, run the following curl command by replacing http://your.cdn.domain/uri
with the respective file path on your CDN.
curl -I -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" http://your.cdn.domain/uri
If the output of the curl command is similar to the following example format, the CDN is working as expected:
HTTP/1.1 200 OK
Server: nginx/1.13.0
...
X-Cache: TCP_HIT from a199-117-103-28.deploy.akamaitechnologies.com (AkamaiGHost/9.0.2.1-20488781) (-)
X-Cache-Key: /L/1363/535014/1d/your.cdn.domain/uri
X-True-Cache-Key: /L/your.cdn.domain/uri
...
...
X-Akamai-Session-Info: name=WSD_BEST_PRACTICES_TD_TYPE; value=PATTERNS_BASED_PARENT_MAP
X-Serial: 1363
Connection: keep-alive
X-Check-Cacheable: YES