Export (0) Print
Expand All

HTTP_CACHE_POLICY structure

The HTTP_CACHE_POLICY structure is used to define a cache policy associated with a cached response fragment.

Syntax


typedef struct _HTTP_CACHE_POLICY {
  HTTP_CACHE_POLICY_TYPE Policy;
  ULONG                  SecondsToLive;
} HTTP_CACHE_POLICY, *PHTTP_CACHE_POLICY;

Members

Policy

This parameter is one of the following values from the HTTP_CACHE_POLICY_TYPE to control how an associated response or response fragment is cached.

ValueMeaning
HttpCachePolicyNocache

Do not cache the data at all.

HttpCachePolicyUserInvalidates

Cache the data until the application explicitly releases it.

HttpCachePolicyTimeToLive

Cache the data for a number of seconds specified by the SecondsToLive member.

 

SecondsToLive

When the Policy member is equal to HttpCachePolicyTimeToLive, data is cached for SecondsToLive seconds before it is released. For other values of Policy, SecondsToLive is ignored.

Requirements

Minimum supported client

Windows Vista, Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Http.h

See also

HttpAddFragmentToCache

 

 

Community Additions

ADD
Show:
© 2014 Microsoft