Skip to main content

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 in PolicyA
  • match-policy-B: 1 in PolicyB

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 in PolicyA
  • policy-priority: B in PolicyB

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.