Skip to main content

CDN Resource - Gzip Text Compression

This setting is available in small, large and dynamic(aksela) resource types.

Parameters

Description

Type

Required

organization_uuid

The created organization in Medianova Cloud Panel unit ID value. Path parameter.

String

Yes

resource_uuid

The created resource in Medianova Cloud Panel unit ID value. Path parameter.

String

Yes

gzip_text

The values of the gzip_text must be any of the; “true”, “false”.

Boolean

Yes

Payload

CODE
{
    "gzip_text": true,
    "resource_uuid": "****-****-****-****"
}

Gzip Compression Custom Types for Text File

File format or mime-type information can be sent.

Parameters

Description

Type

Required

organization_uuid

The created organization in Medianova Cloud Panel unit ID value. Path parameter.

String

Yes

resource_uuid

The created resource in Medianova Cloud Panel unit ID value. Path parameter.

String

Yes

gzip_text_types

This parameter is used for compressing text files. API users can determine which types of text files will be compressed using this parameter.

This parameter takes 'text/x-component', 'application/octet-stream', 'text/plain', 'text/css', 'application/javascript', 'application/x-javascript', 'application/json', 'text/xml', 'application/xml', 'application/rss+xml', 'text/javascript', 'application/atom+xml', 'application/rdf+xml', 'application/vnd.ms-fontobject', 'application/x-font', 'application/x-font-opentype', 'application/x-font-otf', 'application/x-font-truetype', 'application/x-font-ttf', 'application/xhtml+xml', 'font/opentype', 'font/otf', 'font/ttf', 'image/svg+xml', 'image/x-icon', 'application/x-www-form-urlencoded', 'font/woff', 'font/woff2', 'application/dash+xml', 'application/x-mpegURL', 'html', 'htm', 'shtml', 'css', 'xml', 'js', 'atom', 'rss', 'mml', 'txt', 'jad', 'wml', 'htc', 'tif', 'tiff', 'wbmp', 'ico', 'jng', 'bmp', 'woff', 'woff2', 'jar', 'war', 'ear', 'json', 'hqx', 'doc', 'pdf', 'ps', 'eps', 'ai', 'rtf', 'm3u8', 'kml', 'kmz', 'xls', 'eot', 'ppt', 'odg', 'odp', 'ods', 'odt', 'pptx', 'xlsx', 'docx', 'wmlc', 'wasm', '7z', 'cco', 'jardiff', 'jnlp', 'run', 'pl', 'pm', 'prc', 'pdb', 'rar', 'rpm', 'sea', 'swf', 'sit', 'tcl', 'tk', 'der', 'pem', 'crt', 'xpi', 'xhtml', 'xspf', 'zip', 'bin', 'exe', 'dll', 'deb', 'dmg', 'iso', 'img', 'msi', 'msp', 'msm', 'mid', 'midi', 'kar', 'mp3', 'ogg', 'm4a', 'ra', '3gpp', '3gp', 'ts', 'mp4', 'mpeg', 'mpg', 'mov', 'webm', 'flv', 'm4v', 'mng', 'asx', 'asf', 'wmv', 'avi' values.

Boolean

Yes

Payload

CODE
{
    "resource_uuid": "***-****-****-***",
    "gzip_text_types": [
        "text/x-component",
        "application/octet-stream",
        "text/plain",
        "text/css",
        "application/javascript",
        "application/x-javascript",
        "application/json",
        "text/xml",
        "application/xml",
        "application/rss+xml",
        "text/javascript",
        "application/atom+xml",
        "application/rdf+xml",
        "application/vnd.ms-fontobject",
        "application/x-font",
        "application/x-font-opentype",
        "application/x-font-otf",
        "application/x-font-truetype",
        "application/x-font-ttf",
        "application/xhtml+xml",
        "font/opentype",
        "font/otf",
        "font/ttf",
        "image/svg+xml",
        "image/x-icon",
        "application/x-www-form-urlencoded",
        "font/woff",
        "font/woff2",
        "application/dash+xml",
        "application/x-mpegURL",
        "txt",
        "html"
    ]
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.