HTTP_CACHE_POLICY Structure

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

Syntax

C++
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 clientWindows Vista, Windows XP with SP2
Minimum supported serverWindows Server 2003
HeaderHttp.h

See Also

HttpAddFragmentToCache

Send comments about this topic to Microsoft

Build date: 7/23/2009

Tags :


Page view tracker