Cache optimization

File compression

We support gzip automatic compression, which only supports specific MIME types (content type headers returned from the source). You can use the parameters in the white list to change the MIME types in the source and compress on demand on the CDN edge server. The white list is as follows:


    text/compressible
    text/html
    text/xml
    text/javascript
    text/css
    application/x-javascript
    text/xml
    application/xml
    application/xml+rss
    application/json
    application/javascript
    image/svg+xml
    image/x-icon
    image/vnd.microsoft.icon
    application/x-font-ttf
    application/vnd.ms-fontobject
    application/x-font-opentype
    application/x-font-truetype
    application/x-font-ttf
    font/eot
    font/opentype
    font/otf

"gzip_min_length" defaults to 1000.

Note that the origin must include "Content-Type" in the response header for the gzip feature to work.

LightCDN all right reserved,powered by Gitbook Updated Time: 2022-11-03

results matching ""

    No results matching ""