Found 0 result in total

Content is empty
If you don't find the content you expect, please try another search term
Content Delivery Network (CDN)
API Documentation
Content Management Interface
RefreshCaches
Last updated:2021-03-17 11:08:40
You can call this operation to refresh content cached on nodes. You can refresh multiple URLs and directories at a time.
Notes:
GetRefreshOrPreloadQuota operation.RefreshCaches and PreloadCaches operations to refresh and prefetch content.Limits:
The API request contains the specified directory /2016-09-01/content/RefreshCaches, common request headers, and operation-specific request parameters. For more information, see the sample request.
| Parameter | Required | Type | Description |
|---|---|---|---|
| Files | No | Url[] | The URLs of files to be refreshed. |
| Dirs | No | Url[] | The URLs of directories to be refreshed. |
| Parameter | Required | Type | Description |
|---|---|---|---|
| Url | Yes | String | The URL to be refreshed. You can specify only one URL at a time. |
| Parameter | Type | Description |
|---|---|---|
| RefreshTaskId | String | The ID of the refresh task. |
Sample request
POST method:
POST /2016-09-01/content/RefreshCaches 1.1
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: RefreshCaches
x-version: 2016-09-01
Content-Type:application/json
Accept:application/json
{
"Files": [
{
"Url": "http://test.dxz.ksyun.8686c.com/abc.txt"
},
{
"Url": "http://test.dxz.ksyun.8686c.com/test"
}
],
"Dirs": [
{
"Url": "http://test.dxz.ksyun.8686c.com/abc"
},
{
"Url": "http://test.dxz.ksyun.8686c.com/def"
}
]
}
Sample response
{
"RefreshTaskId": "1e16f42c-e9fe-4d71-9dcc-4dd33b523a7c"
}
Pure Mode