Prefetch

Posthttps://api.cdn77.com/v3/cdn/{id}/job/prefetch

Request parameters

  • idinteger in pathrequired

Request body≥1 required

  • pathsarray of strings

    List of file paths, that are being processed in the job.

  • upstream_hoststring

    Is required when host header forwarding is active on your CDN Resource.

Example of the request body
{
  "paths": [
    "/sub/img.png"
  ],
  "upstream_host": "your-domain.com"
}

Responses

Job queued.

Response parameters

  • idstring, format UUIDv4

    Job ID.

  • typestring

    There are three types of jobs: purge: instantly removes cached content from all enabled datacenters purge-all: instantly removes all cached content from all enabled datacenters prefetch: prepopulates newly added content to the CDN cache.

    Available values: purge, prefetch, purge-all

  • cdnobject
  • pathsarray of strings

    List of file paths, that are being processed in the job.

  • paths_countinteger
  • ignored_pathsarray of strings
  • upstream_hoststring

    Is required when host header forwarding is active on your CDN Resource.

  • statestring

    State of the request.

    Available values: done, processing, queued

  • queued_atstring, format date-time

    Time of the request at queueing.

  • done_atstring, format date-time

    Time of request at completion.

Example of the response
{
  "id": "9880280c-0507-46d1-88f3-71cfee83fa57",
  "type": "purge",
  "cdn": {
    "id": 1234567890
  },
  "paths": [
    "/sub/img.png"
  ],
  "paths_count": 100,
  "ignored_paths": [
    "/sub/img.png/*"
  ],
  "upstream_host": "your-domain.com",
  "state": "done",
  "queued_at": "2024-10-16T21:57:00.205Z",
  "done_at": "2024-10-16T21:57:00.205Z"
}
Can’t find what you are looking for?