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.
| Value | Meaning |
- 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 client | Windows Vista, Windows XP with SP2 |
| Minimum supported server | Windows Server 2003 |
| Header | Http.h |
See Also
- HttpAddFragmentToCache
Send comments about this topic to Microsoft
Build date: 11/19/2009