All Products
Search
Document Center

:How to determine whether the Alibaba Cloud Content Delivery Network cache is successful through the browser's review element

Last Updated:May 19, 2022

Overview

This article focuses on how to use the browser's review element to determine whether the Alibaba Cloud Content Delivery Network cache is successful.

Details

After the Alibaba Cloud Content Delivery Network service is activated and configured, if you need to check whether your content is cached to the Alibaba Cloud Content Delivery Network, please refer to the following steps:

  1. Open the Chrome browser, choose More Tools > Developer Tools, open the developer tool, and access the resource URL.
  2. Click Network, and then click the image to view.
    FAQ1顶顶顶顶.png
  3. In the Response Headers field, you can view detailed information about requests and returned messages.
    Note:
    • The header field returned by the Age: Alibaba Cloud Content Delivery Network indicates the time that the file is cached on the Alibaba Cloud Content Delivery Network node. Unit: seconds. Only the Age field exists on the node. When the file is refreshed or the file is cleared for the first access, the file is not cached before and there is no Age header field. Note that when Age is 0, the node has a cache of existing files. However, because the cache has expired, the cache cannot be used directly this time and needs to be checked back to the source.
    • X-Swift-SaveTime: the time of cache RS(swift) on the Alibaba Cloud Content Delivery Network node, that is, when the file is cached to the Alibaba Cloud Content Delivery Network node.
    • X-Swift-CacheTime: the allowed cache time on the Alibaba Cloud Content Delivery Network node, that is, how long the file can be cached on the Alibaba Cloud Content Delivery Network node, which refers to the total time the file is cached on the Alibaba Cloud Content Delivery Network node. Calculate how long it takes to refresh back to the source= 'X-Swift-CacheTime'-'Age'.
    • HIT: indicates that it has been cached.
    • The error message returned because the file is not cached on the MISS: node.
    {6BC24AA1-3D0B-4AAF-8411-DB871625226B}_20191206164418.png

Applicable scope

  • CDN