Baidu AI Cloud
中国站

百度智能云

CDN

Query the Page Compression

This interface is used to query whether the page compression feature is enabled for the specified accelerated domain name.

Method Path Description
GET /v2/domain/{domain}/config?compress Check whether the domain name has enabled page compression

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

Request example

GET /v2/domain/myself.baidu.com/config?compress HTTP/1.1 
Host: cdn.baidubce.com 

Response body

Parameter Type Description
compress String Page compression configuration
allow String "On” means enabled, and “off” means disabled.
type String The value is "br" or "gzip" or "all", which represents to support br and gzip respectively and both br and gzip as well

Response example

HTTP/1.1 200 OK 
Server: nginx/1.14.0 
Date: Fri, 21 Sep 2018 03:46:35 GMT 
Content-Type: application/json; charset=utf-8 
Transfer-Encoding: chunkedConnection: keep-alive 
X-Powered-By: PHP/5.6.36 
x-bce-request-id: fb39f52e-203d-5558-6543-15bbaaf6b4a7

{"compress":{"allow":"on","type":"gzip"}} 
Previous
Set the Page Compression
Next
Cache Configuration Interface