HTTP_CACHE_POLICY_TYPE enumeration (http.h)
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
HttpCachePolicyNocacheDo not cache this value at all. |
HttpCachePolicyUserInvalidatesCache this value until the user provides a different one. |
HttpCachePolicyTimeToLiveCache this value for a specified time and then remove it from the cache. |
HttpCachePolicyMaximumTerminates 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 |