Found 0 result in total
Content is empty
If you don't find the content you expect, please try another search term
Last updated:2021-03-17 10:55:32
You can call this operation to configure the parameter filter for a domain name. This feature allows Kingsoft Cloud CDN to ignore the parameters that follow the question mark (?) in a request URL to increase the cache hit rate.
Note:
The parameter filter is enabled by default after a domain name is added.
The API request contains the specified directory /2016-09-01/domain/SetIgnoreQueryStringConfig, common request headers, and operation-specific request parameters. For more information, see the sample request.
Header | Required | Type | Description |
---|---|---|---|
X-Version | Yes | String | The version number. Set the value to 2016-09-01. |
X-Action | Yes | String | The operation that you want to perform. Set the value to SetIgnoreQueryStringConfig. |
Parameter | Required | Type | Description |
---|---|---|---|
DomainId | Yes | String | The ID of the domain name. |
Enable | Yes | String | Specifies whether to enable the parameter filter. Valid values: on and off. Default value: on. |
HashKeyArgs | No | String | The parameters to be retained. Separate multiple parameters with commas (,). |
Sample request
GET method:
GET /2016-09-01/domain/SetIgnoreQueryStringConfig?DomainId=2D08M8V&Enable=on&HashKeyArgs=tklink
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: SetIgnoreQueryStringConfig
x-version: 2016-09-01
POST method:
POST /2016-09-01/domain/SetIgnoreQueryStringConfig
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: SetIgnoreQueryStringConfig
x-version: 2016-09-01
Content-Type: application/x-www-form-urlencoded
{
"DomainId": "2D08M8V",
"Enable": "on",
"HashKeyArgs":"tklink"
}
Sample response
Pure Mode