[This is preliminary documentation and is subject to change.]

Sets the Cache-Control header and optionally the Expires and Vary headers.

Namespace: Simple.Web.HttpSimple.Web.HttpSimple::Web::Http
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

public static void SetCacheOptions(

this IResponse response,

CacheOptions cacheOptions

)

VB

Public Shared Sub SetCacheOptions( _

response As IResponse, _

cacheOptions As CacheOptions _

)

C++

public:

static void SetCacheOptions(

IResponse^ response,

CacheOptions^ cacheOptions

)

Parameters

See Also

ResponseExtensionsResponseExtensionsResponseExtensions Class
Simple.Web.HttpSimple.Web.HttpSimple::Web::Http Namespace