Alibaba Cloud Content Delivery Network (CDN) allows you to refresh and prefetch resources. You can use the refresh feature to force the CDN nodes to retrieve the latest resources from the origin servers. You can use the prefetch feature to fetch frequently requested resources during off-peak hours. This accelerates content delivery. This topic describes how to configure the refresh and prefetch features and how to query the refresh and prefetch records.
Background information
The refresh and prefetch features can refresh resources from specific URLs and directories and prefetch resources from specific URLs.
Procedure
API operations
API | Description |
---|---|
PushObjectCache | Prefetches resources from origin servers to L2 CDN nodes. This reduces workloads on origin servers because users can hit cache upon their first visits. |
DescribeRefreshQuota | Queries the maximum and remaining numbers of URLs and directories that can be refreshed, the maximum and remaining numbers of URLs that can be prefetched, and the maximum and remaining numbers of URLs and directories that can be blocked. |
DescribeRefreshTasks | Queries the status of refresh or prefetch tasks under an accelerated domain name. |
RefreshObjectCaches | Refreshes files on CDN nodes. After a file is refreshed, it immediately becomes invalid. If a client requests the file, the CDN node redirects the request to the origin server to retrieve the latest version of the file. You can refresh resources based on multiple URLs in each call. |