Help Center/ Content Delivery Network/ FAQs/ Cache Settings/ How Do I Check Whether a Cache Is Hit?
Updated on 2024-02-26 GMT+08:00

How Do I Check Whether a Cache Is Hit?

  1. Open Google Chrome and press F12.
  2. Choose Network.
  3. Enter the website to be accessed in the address box and press Enter. View the response headers of the URL of a specific resource and perform the following operations:
    • If the x-hcs-proxy-type header exists, check its value. The value 1 indicates that the cache is hit, and the value 0 indicates that the cache is not hit.
    • If the x-hcs-proxy-type header does not exist, check the value of the X-Cache-Lookup header. Value Hit From MemCache, Hit From Disktank, or Hit From Upstream indicates that the cache is hit, whereas other values indicate that the cache is not hit.
    • If neither the x-hcs-proxy-type nor X-Cache-Lookup header exists, check the value of the age header. Values greater than 0 indicate that the cache is hit, and the value 0 indicates that the cache is not hit.