HTTP_CACHE_POLICY_TYPE enumeration

The HTTP_CACHE_POLICY_TYPE enumeration type defines available cache policies. It is used to restrict the values of the Policy member of the HTTP_CACHE_POLICY structure, which in turn is used in the pCachePolicy parameter of the HttpAddFragmentToCache function to specify how a response fragment is cached.

Syntax


typedef enum _HTTP_CACHE_POLICY_TYPE { 
  HttpCachePolicyNocache,
  HttpCachePolicyUserInvalidates,
  HttpCachePolicyTimeToLive,
  HttpCachePolicyMaximum
} HTTP_CACHE_POLICY_TYPE, *PHTTP_CACHE_POLICY_TYPE;

Constants

HttpCachePolicyNocache

Do not cache this value at all.

HttpCachePolicyUserInvalidates

Cache this value until the user provides a different one.

HttpCachePolicyTimeToLive

Cache this value for a specified time and then remove it from the cache.

HttpCachePolicyMaximum

Terminates the enumeration; not used to determine policy.

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
HTTP_CACHE_POLICY

 

 

Show: