CompressionSettings Class
settings for compression.
- Inheritance
-
azure.mgmt.cdn._serialization.ModelCompressionSettings
Constructor
CompressionSettings(*, content_types_to_compress: List[str] | None = None, is_compression_enabled: bool | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
content_types_to_compress
|
List of content types on which compression applies. The value should be a valid MIME type. |
is_compression_enabled
|
Indicates whether content compression is enabled on AzureFrontDoor. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB. |
Variables
Name | Description |
---|---|
content_types_to_compress
|
List of content types on which compression applies. The value should be a valid MIME type. |
is_compression_enabled
|
Indicates whether content compression is enabled on AzureFrontDoor. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB. |
Azure SDK for Python