When using Akamai for caching your static files sometimes you need to validate the custom cache information stored on Akamai, for that you can use Akamai Pragma Header to get the details on what it is the configuration for a particular asset, the output of this gives us additional detail to troubleshoot issues and to help determine how well we are load balancing.
Just add the Pragma header needed and you will get the info.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get Akamai Pragma response | |
curl -sI "https://assets.mydomain.mx/_next/static/chunks/file.js" -H "Pragma: akamai-x-get-cache-key akamai-x-cache-on" | |
# This is a sample response | |
HTTP/1.1 200 OK | |
Content-Type: application/x-javascript | |
ETag: "file" | |
Last-Modified: Tue, 23 Nov 2021 18:26:33 GMT | |
Server: Akamai Resource Optimizer | |
Server-Timing: edge; dur=467 | |
Cache-Control: private, max-age=3600 | |
Expires: Thu, 02 Dec 2021 00:33:49 GMT | |
Date: Wed, 01 Dec 2021 23:33:49 GMT | |
X-Cache: TCP_MEM_HIT from a188-237-210-167.deploy.akamaitechnologies.com (AkamaiGHost/11.5.7-37171458) (-) | |
X-Cache-Key: S/L/5844/1073609/30d/assets.download.akamai.com/450790/mysite/assetsA/_next/static/chunks/file.js cid=///RO_ENCODING=gzip | |
X-Cache-Key-Extended-Internal-Use-Only: S/L/5844/1073609/30d/assets.download.akamai.com/450790/mysite/assetsA/_next/static/chunks/file.js vcd=12592 cid=///RO_ENCODING=gzip | |
Connection: keep-alive | |
Access-Control-Allow-Origin: * |
Comments