You can call this operation to refresh the file content on the CDN nodes. Alibaba Cloud CDN supports refreshing content of 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 preload content.
  • You can submit up to 2,000 URLs and 100 directories for content refresh each day by using the same ID.
  • You can specify up to 1,000 URLs for each refresh request.
  • Up to 50 requests can be submitted per second.


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 URL to be refreshed. You can specify multiple URLs and separate them with line breaks (\n or \r\n).

ObjectType String No File

The type of the object to be refreshed. Valid values: File and Directory. Default value: File.

Response parameters

Parameter Type Example Description
RefreshTaskId String 704222904

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

RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For more information about error codes, visit API Error Center.