HTTP_CACHE_POLICY structure (http.h)
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.
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
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 |