CacheProfile CacheProfile CacheProfile CacheProfile Class

Definition

Defines a set of settings which can be used for response caching.

public ref class CacheProfile
public class CacheProfile
type CacheProfile = class
Public Class CacheProfile
Inheritance
CacheProfileCacheProfileCacheProfileCacheProfile

Constructors

CacheProfile() CacheProfile() CacheProfile() CacheProfile()

Properties

Duration Duration Duration Duration

Gets or sets the duration in seconds for which the response is cached. If this property is set to a non null value, the "max-age" in "Cache-control" header is set in the Response.

Location Location Location Location

Gets or sets the location where the data from a particular URL must be cached. If this property is set to a non null value, the "Cache-control" header is set in the Response.

NoStore NoStore NoStore NoStore

Gets or sets the value which determines whether the data should be stored or not. When set to true, it sets "Cache-control" header in Response to "no-store". Ignores the "Location" parameter for values other than "None". Ignores the "Duration" parameter.

VaryByHeader VaryByHeader VaryByHeader VaryByHeader

Gets or sets the value for the Vary header in Response.

VaryByQueryKeys VaryByQueryKeys VaryByQueryKeys VaryByQueryKeys

Gets or sets the query keys to vary by.

Applies to