Set the Cache Parameter Filter Rules
Last Updated:2021-10-13
This interface is used to query the cache filtering parameter rules of the specified acceleration domain name. This domain name must belong to this user. Otherwise, it returns “Error 403”.
Method | Path | Description |
---|---|---|
GET | /v2/domain/{domain}/config?cacheFullUrl | Query the cache filter parameter rules for domain names. |
domain: CDN acceleration domain name to be queried.
Response Body
Parameters | Type | Description |
---|---|---|
cacheFullUrl | Bool | True and false. True indicates that the full URL cache is supported, and false indicates that the parameter cache is ignored. Some parameters can be retained. |
cacheUrlArgs | String list | When cacheFullUrl is true, this item does not work. When cacheFullUrl is false, this item indicates the list of retained parameters. If it is empty, it indicates that all parameters are ignored. |
ignoreUrlArgs | String list | When ignoreUrlArgs is true, this item does not work. When cacheFullUrl is false, this item indicates the list of ignored parameters. If it is empty, it indicates that all parameters are retained. |
Request Example:
GET /v2/domain/myself.baidu.com/config?cacheFullUrl HTTP/1.1
Host: cdn.baidubce.com
Response Example:
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
{
"cacheFullUrl":false,
"cacheUrlArgs":[
"a"
]
}