RefreshObjectCaches

Last Updated: Mar 26, 2018

Description

  • Update the file content on the node.

  • Update the cache node with the specified URL content, URL can be updated in batches.

  • Support post request, and the form is used for parameters.

Restrictions:

  • For a single ID, a daily maximum of cache push and refresh requests which can be submitted are as follows:

    • URLs: 2,000.

    • Directories: 100.

  • Cache refresh and push interfaces include the RefreshObjectCaches and PushObjectCache.

Request parameters

Parameters Type Required Example values Description
Action String Yes RefreshObjectCaches

The name of this interface. Value: RefreshObjectCaches

ObjectPath String Yes abc.com/image/1.png

Input example: abc.com/image/1.png, multiple URLs are required to be separated by line break (\n or \r\n).

ObjectType String No File

Optional, the refresh type. The value can be File.

Return parameters

Parameters Type Example values Description
RefreshTaskId String 704222904

Refresh returned task ID, multiple task IDs are separated by comma (Half angle).

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

The ID of the request.

Example

Request example

  1. https://cdn.aliyuncs.com?&Action=RefreshObjectCaches&ObjectPath=test.test.com/test.txt&ObjectType=File&<Public request parameter>

Normal return example

JSON format

  1. {
  2. "RefreshTaskId":"704222904",
  3. "RequestId":"D61E4801-EAFF-4A63-AAE1-FBF6CE1CFD1C"
  4. }

Exception return example

JSON format

  1. {
  2. "Code":"InternalError",
  3. "HostId":"cdn.aliyuncs.com",
  4. "Message":"The request processing has failed due to some unknown error.",
  5. "RequestId":"16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
  6. }

Error code

For more information, see Error code of this product.

Thank you! We've received your feedback.