CacheConfiguration interface
Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.
Properties
cache |
Caching behavior for the requests |
cache |
The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss |
is |
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. |
query |
query parameters to include or exclude (comma separated). |
query |
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. |
Property Details
cacheBehavior
Caching behavior for the requests
cacheBehavior?: string
Property Value
string
cacheDuration
The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss
cacheDuration?: string
Property Value
string
isCompressionEnabled
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.
isCompressionEnabled?: string
Property Value
string
queryParameters
query parameters to include or exclude (comma separated).
queryParameters?: string
Property Value
string
queryStringCachingBehavior
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.
queryStringCachingBehavior?: string
Property Value
string