CacheConfiguration Class
Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.
- Inheritance
-
azure.mgmt.cdn._serialization.ModelCacheConfiguration
Constructor
CacheConfiguration(*, query_string_caching_behavior: str | _models.RuleQueryStringCachingBehavior | None = None, query_parameters: str | None = None, is_compression_enabled: str | _models.RuleIsCompressionEnabled | None = None, cache_behavior: str | _models.RuleCacheBehavior | None = None, cache_duration: str | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
query_string_caching_behavior
|
Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings. Known values are: "IgnoreQueryString", "UseQueryString", "IgnoreSpecifiedQueryStrings", and "IncludeSpecifiedQueryStrings". |
query_parameters
|
query parameters to include or exclude (comma separated). |
is_compression_enabled
|
Indicates whether content compression is enabled. 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. Known values are: "Enabled" and "Disabled". |
cache_behavior
|
Caching behavior for the requests. Known values are: "HonorOrigin", "OverrideAlways", and "OverrideIfOriginMissing". |
cache_duration
|
The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss. |
Variables
Name | Description |
---|---|
query_string_caching_behavior
|
Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings. Known values are: "IgnoreQueryString", "UseQueryString", "IgnoreSpecifiedQueryStrings", and "IncludeSpecifiedQueryStrings". |
query_parameters
|
query parameters to include or exclude (comma separated). |
is_compression_enabled
|
Indicates whether content compression is enabled. 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. Known values are: "Enabled" and "Disabled". |
cache_behavior
|
Caching behavior for the requests. Known values are: "HonorOrigin", "OverrideAlways", and "OverrideIfOriginMissing". |
cache_duration
|
The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss. |
Azure SDK for Python