Verifying information related to cache
You can use the ModHeader extension for Google Chrome to include debug headers in your requests and these headers will return different cache indicators.
To verify indicators such as page or object cache time and time left for the next expiration, follow the steps:
- Install the ModHeader extension by clicking the Add to Chrome button.
- Click the Extensions button on your Google Chrome and select the Modheader extension — the Profile page will appear.
- Select the Request headers item and fill the fields according to the following information:
- Name: Pragma
- Value: azion-debug-cache
- Click the Pause Modheader icon and restart the extension by clicking the Start Modheader icon.
Next, follow these steps to enable Developer Tools on Google Chrome to access the information:
- Open Google Chrome and click the Customize and Control Google Chrome button on the tools bar.
- Select More Tools > Developer Tools.
- Select the Network tab.
- Access the page in which the information is being cached.
- Select the cached content among the requests.
- Select the Headers tab.
The cache information will appear according to the following fields:
|X-Cache||Status of request, either HIT, MISS, EXPIRED, UPDATING or STALE.|
|X-Cache-Key||Cache key of the object, normally consists of the combination of host + URI + arguments.|
|X-Cache-File||Cache file of the object, consisting of the md5 of the cache key.|
|X-Cache-Since||Unix Time Stamp* of when the object enters the cache.|
|X-Cache-Expire||Unix Time Stamp* of when the object leaves the cache.|
|X-Cache-Expire-In||Remaining time that the object will be in the cache, in seconds.|
|X-Cache-Valid||Time set for the object to be in the cache. This time can be set unconditionally on the webserver or can come from the origin, using Cache-Control headers.|
|X-Cache-Config||ID of the configuration of the virtual host on the webserver. This value is generated by the RTM.|
|X-Cache-ID||Unique ID of the request.|
*The Unix Time Stamp can be converted into standard format on the site: https://www.unixtimestamp.com/
Didn’t find what you were looking for? Open a support ticket.