The intelligent compression feature enables Dynamic Route for CDN (DCDN) to compress static files by using Gzip. Gzip compression reduces the size of the transmitted files and accelerates content delivery. This topic describes how to enable the intelligent compression feature.
- If a request from a client includes the
Accept-Encoding: gziprequest header, the client expects the requested content to be Gzip compressed.
- If a response from DCDN includes the
Content-Encoding: gzipresponse header, the returned content is Gzip compressed.
- If files on the origin server have MD5 validation configured, do not enable this feature. After a static file is compressed, the MD5 value of the compressed file is different from that of the file on the origin server. The MD5 validation will fail due to the inconsistency.
- DCDN compresses files on the origin server only when the file size exceeds 1,024 bytes.
- Internet Explorer 6 is not fully compatible with Gzip.If your website has access requests from Internet Explorer 6, we recommend that you disable the intelligent compression feature.
- Log on to the Dynamic Route for CDN console.
- In the left-side navigation pane, click Domain Names.
- On the Domain Names page, find the target domain name and click Configure.
- In the left-side navigation pane of the specified domain, click Optimization.
- In the File Compression section, enable intelligent compression.