Checking caching¶
You can determine whether an object is cached at Myra or not by checking the X-CDN header in the response header.
You can make the following decisions using the X-CDN header:
- X-CDN header missing: the resource was not delivered from Myra's cache.
- X-CDN: 1: the resource was delivered from Myra's cache
- X-CDN: 2: the resource was delivered as a stale object from Myra's cache.
You can check the response header using the developer tools in standard browsers or on the command line with wget or curl.