EO-Debug-Headers: all
header in the request, and view whether the resource is cached in the node, the corresponding Cache Key value, and cache time based on the returned response headers.www.example.com
under the current site example.com
has been configured to cache .jpg
suffix files in EdgeOne nodes for 600 seconds; the cache Cache Key is configured to retain the specified parameter a as the cache key. After the configuration is completed, you need to verify whether the current configuration has taken effect, and you can follow the steps below to verify:curl -voa 'http://www.example.com/test.jpg?a=1' -H 'EO-Debug-Headers: all'
。The request result is as follows:Header Name | Configurations | Meaning of the returned value |
EO-Debug-Status | Indicates whether the self-service debugging mode is enabled. | on: activated, and the request client IP is within the allowlist & the request time is within the validity period; off: Off, or activated but the request time is beyond the validity period; forbidden: activated, but the request client IP is not in the allowlist. |
EO-Debug-Cacheable | The Request URL of this request, according to the configured EdgeOne node cache TTL, the final cacheable status of the Request URL resource in EdgeOne nodes. | yes:cacheable content no: non-cacheable content |
EO-Debug-CacheKey | The Request URL of this request, according to the custom Cache key, the final Cache key generated for the Request URL resource in EdgeOne nodes. | For example: www.example.com/test.jpg a=1, indicating the Cache Key generated for the Request URL resource in EdgeOne |
EO-Debug-CacheTTL | The Request URL of this request, according to the configured EdgeOne node cache TTL, the final cache TTL duration of the Request URL resource in EdgeOne nodes. | List values, including numbers and time units. d stands for days, h stands for hours, m stands for minutes, and s stands for seconds, for example: 3d0h0m0s means the cache TTL is 3 days; 0d0h5m0s means the cache is 5 minutes; 0d0h0m5s means the cache is 5 seconds. |
Was this page helpful?