PushObjectCache

Last Updated: Apr 04, 2018

Description

  • Actively push content from the source site to the L2 Cache node. Upon first access, users can directly hit cache so as to relieve pressure on the source site.

  • 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.

    Note: directory-level cache pushing is currently not supported.

  • Cache refresh and push interfaces include the RefreshObjectCachesand PushObjectCache.

Request parameters

Parameters Type Required Example values Description
Action String Yes PushObjectCache

The name of this interface. Value: PushObjectCache

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

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

Return parameters

Parameters Type Example values Description
PushTaskId String 95248880

The ID returned by the pushing task, 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=PushObjectCache&ObjectPath=test.test.com/test.txt&ObjectType=File&<Public Request Parameter>

Normal return example

JSON format

  1. {
  2. "PushTaskId":"95248880",
  3. "RequestId":"E5BD4B50-7A02-493A-AE0B-97B9024B4135"
  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.