CacheConfiguration Class

Definition

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

public class CacheConfiguration : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Cdn.Models.CacheConfiguration>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Cdn.Models.CacheConfiguration>
public class CacheConfiguration
type CacheConfiguration = class
    interface IJsonModel<CacheConfiguration>
    interface IPersistableModel<CacheConfiguration>
type CacheConfiguration = class
Public Class CacheConfiguration
Implements IJsonModel(Of CacheConfiguration), IPersistableModel(Of CacheConfiguration)
Public Class CacheConfiguration
Inheritance
CacheConfiguration
Implements

Constructors

CacheConfiguration()

Initializes a new instance of CacheConfiguration.

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.

Explicit Interface Implementations

IJsonModel<CacheConfiguration>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<CacheConfiguration>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CacheConfiguration>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CacheConfiguration>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<CacheConfiguration>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to