You can use the refresh feature to delete resources that are cached on points of presence (POPs) and retrieve the most recent resources from the origin server. This feature is applicable to resource updates and releases on the origin server, illicit resource removal, and domain name configuration modifications. You can use the prefetch feature to cache frequently requested resources to POPs during off-peak hours. This feature reduces loads on origin servers and improves user experience. This topic describes how to use the refresh and prefetch features.
Features
Purge: marks resources that are cached on all POPs as expired. When a POP receives a request, the POP redirects the request to the origin server to retrieve the requested resource. Then, the resource is returned to the client and cached on the POP. The purge feature reduces the cache hit ratio.
Prefetch: prefetches resources from the origin server and caches the resources on POPs. When a POP receives a request, the POP directly returns the requested resource to the client because the resource is already cached on the POP. The prefetch feature increases the cache hit ratio.
Scenarios
Feature | Scenario |
Refresh |
|
Prefetch |
|
Procedure
Log on to the ApsaraVideo VOD console.
In the left-side navigation pane, choose Configuration Management > CDN Configuration> Refresh and Prefetch.
On the Refresh Cache tab, configure the refresh or prefetch operation based on your business requirements.
The following table describes the parameters.
Parameter
Description
Operation
Supported operations:
Refresh
After resources are updated on the origin server, the URLs of the resources are refreshed. Then, the system clears the resources that are cached on POPs. When you access the refreshed URLs, the latest resources from the origin server are retrieved. The retrieved resources are also cached on POPs.
Prefetch
You can prefetch frequently requested resources or less frequently visited resources during off-peak hours to improve the cache hit ratio.
Object
The type of the object that you want to refresh or prefetch. Supported options:
Folder
This option is available only when you set Operation to Refresh.
URL
This option is available when you set Operation to Refresh or Prefetch.
URL
If you need to refresh or prefetch multiple URLs, enter one URL in each line. By default, the following limits apply to each Alibaba Cloud account. To increase the limits, contact your account manager or submit a ticket.
Refresh resources based on directories
Each URL must start with
http://
orhttps://
, and end with a forward slash (/
).You can refresh up to 100 directories within each Alibaba Cloud account per day. You can submit up to 100 directories at a time.
Refresh resources based on URLs
Each URL must start with
http://
orhttps://
.You can refresh up to 2,000 URLs within each Alibaba Cloud account per day. You can submit up to 1,000 URLs at a time.
Prefetch resources based on URLs
Each URL must start with
http://
orhttps://
.You can prefetch up to 500 URLs within each Alibaba Cloud account per day. You can submit up to 100 URLs at a time.
Click Submit.
Click the Records tab.
You can view the details of refresh and prefetch records, including the object, type, time, status, and progress of each operation.