Baidu AI Cloud
中国站

百度智能云

CDN

Query the Cache Parameter Filter Rules

This interface is used to query the cached parameter filtration rules of the specified accelerated domain name. The domain name shall belong to the user, otherwise it returns 403 failure.

Method Path Description
GET /v2/domain/{domain}/config?cacheFullUrl Query the cached parameter filtration rules of the domain name

domain: Need to query the accelerated domain name of CDN.

Response body

Parameter Type Description
cacheFullUrl Bool true and false, true means supporting full URL cache, and false means ignoring parameter cache (some parameters can be retained).
cacheUrlArgs String list When cacheFullUrl is true, this item does not work; when cacheFullUrl is false, this item represents the list of retained parameters. If it is empty, it means ignoring all parameters.
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

Note: cacheUrlArgs and ignoreUrlArgs cannot be set at the same time. If cacheFullUrl is false and cacheUrlArgs and ignoreUrlArgs are not set, all parameters are ignored 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" 
    ] 
} 
Previous
Set the Cache Parameter Filter Rules
Next
Set the Custom Error Page