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
CacheProfile

Constructors

CacheProfile()

Properties

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

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

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

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

VaryByQueryKeys

Gets or sets the query keys to vary by.

Applies to