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
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
Requirement | Value |
---|---|
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for