Configures the intelligent compression feature for an accelerated domain name.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SetPageCompressConfig

The operation that you want to perform. Set the value to SetPageCompressConfig.

DomainName String Yes

The accelerated domain name for which you want to configure the intelligent compression feature. You can configure the intelligent compression feature for only one domain name in each call.

Enable String Yes On

Specifies whether to enable the intelligent compression feature. Valid values:

  • On: yes
  • Off: no

Response parameters

Parameter Type Example Description
RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"

Error codes

HttpCode Error code Error message Description
400 InvalidEnable.ValueNotSupported The specified value of parameter Enable is not supported. The error message returned because the Enable parameter is set to an invalid value. Valid values are On and Off.

For a list of error codes, visit the API Error Center.