FAQ
Q. How to verify if a cache control policy is effectively applied to a request URL?
Use a Customised Response Header to tag each cache control policy.
For example, assume there are PolicyA
and PolicyB
.
Add distinct response headers in each policy, such as:
match-policy-A: 1
inPolicyA
match-policy-B: 1
inPolicyB
Then use tools like curl or Postman to request the target URL and check the response headers to identify which policy matched.
Can verify the policy priority by adding headers like:
policy-priority: A
inPolicyA
policy-priority: B
inPolicyB
The response headers will show which policy took precedence.
Q. How to verify whether the contents are cached and updated properly?
Use the X-Cache
response header to check caching status:
X-Cache: HIT from da01.xy01.swiftserve.com
— The content is served from the cache on that edge node.- After using the Purge function to remove cached content (usually takes 1–2 minutes), request the URL again.
If
X-Cache: MISS from da01.xy01.swiftserve.com
appears, the cache has been refreshed.