百度智能云

All Product Document

          CDN

          Query the Page Optimization

          This interface is used to query the page optimization settings.

          Method Path Description
          GET /v2/domain/{domain}/config?fileTrim Query page optimization settings

          domain: CDN accelerated domain name.

          Response body

          Parameter Type Description
          fileTrim bool Setting of page optimization

          Response code (Http Status Code)

          HTTP Status Code Description
          200 Success

          Request example

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

          Response example

          HTTP/1.1 200 OK 
          Content-Type: application/json; charset=utf-8 
          Transfer-Encoding: chunked 
          
          { 
              "fileTrim":false 
          } 
          Previous
          Set the Page Optimization
          Next
          Set the Page Compression