Delen via


CacheConfiguration interface

Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.

Properties

cacheBehavior

Caching behavior for the requests

cacheDuration

The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss

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.

queryParameters

query parameters to include or exclude (comma separated).

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.

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