Refreshes files on Alibaba Cloud CDN edge nodes. After files are refreshed, the original file content immediately becomes invalid. If clients request the original file content, Alibaba Cloud CDN redirects the requests to the origin server of the content. Then, Alibaba Cloud CDN caches the latest content to CDN edge nodes and returns it to the clients. Alibaba Cloud CDN allows you to refresh content from multiple URLs at a time.

  • Alibaba Cloud CDN supports POST requests in which parameters are sent as a form.
  • You can call the RefreshObjectCaches operation to refresh content and call the PushObjectCache operation to prefecth content.
  • You can refresh content from a maximum of 2,000 URLs and 100 directories per day by using each Alibaba Cloud account. Subdirectories are included. If the daily peak bandwidth value exceeds 200 Mbit/s, you can submit a ticket to request a quota increase. Alibaba Cloud CDN evaluates your application based on your workloads.
  • You can specify at most 1,000 URLs or directories that you want to refresh in each call.
  • You can refresh a maximum of 1,000 URLs per minute for each domain name.
  • The maximum number of times that each user can call this operation per second is 50.
  • For more information about how to automate refresh or prefetch tasks, see Prefetch and refresh task scripts.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes RefreshObjectCaches

The operation that you want to perform. Set the value to RefreshObjectCaches.

ObjectPath String Yes\

The URLs from which content is refreshed. Format: accelerated domain name/paths or directories of files to be refreshed.

Separate multiple URLs with line feed characters (\n) or a pair of carriage return and line feed characters (\r\n).

ObjectType String No File

The type of content to be refreshed. Valid values:

  • File: files.
  • Directory: files under specified directories.

Default value: File.

Response parameters

Parameter Type Example Description
RefreshTaskId String 704222904

The ID of the refresh task. If multiple tasks are returned, the IDs are separated by commas (,).

RequestId String D61E4801-EAFF-4A63-AAE1-FBF6CE1CFD1C

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.