CacheConfiguration Class

Definition

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

public class CacheConfiguration
type CacheConfiguration = class
Public Class CacheConfiguration
Inheritance
CacheConfiguration

Constructors

Name Description
CacheConfiguration()

Initializes a new instance of the CacheConfiguration class.

CacheConfiguration(String, String, String, Nullable<TimeSpan>)

Initializes a new instance of the CacheConfiguration class.

Properties

Name Description
CacheDuration

Gets or sets the duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year

DynamicCompression

Gets or sets whether to use dynamic compression for cached content Possible values include: 'Enabled', 'Disabled'

QueryParameters

Gets or sets query parameters to include or exclude (comma separated).

QueryParameterStripDirective

Gets or sets treatment of URL query terms when forming the cache key. Possible values include: 'StripNone', 'StripAll', 'StripOnly', 'StripAllExcept'

Applies to