CDN Resource - Brotli Compression
This setting is available in small, large and dynamic(aksela) resource types.
Method | URL |
---|---|
PUT | https://cloud.medianova.com/api/v1/cdn/{organization_uuid}/resource/{resource_id} |
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 |
brotli | The values of the gzip_image must be any of the; “true”, “false”. | Boolean | Yes |
Payload
{
"brotli": true,
"resource_uuid": "****-****-****-****"
}
Brotli Compression Custom Types
File format or mime-type information can be sent.
Payload
{
"resource_uuid": "****-****-****-****",
"brotli_types": [
"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",
"text/x-component",
"application/octet-stream",
"application/x-www-form-urlencoded",
"font/woff",
"font/woff2",
"image/svg+xml",
"css"
]
}