Click to Rate and Give Feedback
MSDN
MSDN Library
Networking
Network Protocols
HTTP Server API
 HTTP_CACHE_POLICY Structure

  Switch on low bandwidth view
HTTP_CACHE_POLICY Structure

The HTTP_CACHE_POLICY structure is used to define a cache policy associated with a cached response fragment.

Syntax

C++
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.

ValueMeaning
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 clientWindows Vista, Windows XP with SP2
Minimum supported serverWindows Server 2003
HeaderHttp.h

See Also

HttpAddFragmentToCache

Send comments about this topic to Microsoft

Build date: 7/9/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker