CacheConfiguration Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.CacheConfigurationTypeConverter))]
public class CacheConfiguration : Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.ICacheConfiguration
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.CacheConfigurationTypeConverter))>]
type CacheConfiguration = class
interface ICacheConfiguration
interface IJsonSerializable
Public Class CacheConfiguration
Implements ICacheConfiguration
- Inheritance
-
CacheConfiguration
- Attributes
- Implements
Constructors
CacheConfiguration() |
Creates an new CacheConfiguration instance. |
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. |
QueryParameter |
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. |
Methods
DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of CacheConfiguration. |
DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of CacheConfiguration. |
FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.ICacheConfiguration. |
FromJsonString(String) |
Creates a new instance of CacheConfiguration, deserializing the content from a json string. |
ToJson(JsonObject, SerializationMode) |
Serializes this instance of CacheConfiguration into a JsonNode. |
ToJsonString() |
Serializes this instance to a json string. |
ToString() |