asp.net.ph

HttpCachePolicy Class

System.Web Namespace


Provides properties and methods for setting cache-specific HTTP headers and for controlling the ASP.NET page output cache.

HttpCachePolicy Class Members

Collapse   Properties

Visibility Name Value Type Accessibility
public UtcTimestampCreated DateTime [ Get , Set ]
public VaryByContentEncodings HttpCacheVaryByContentEncodings [ Get ]
public VaryByHeaders HttpCacheVaryByHeaders [ Get ]
public VaryByParams HttpCacheVaryByParams [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public AddValidationCallback ( HttpCacheValidateHandler handler , Object data ) Void
public AppendCacheExtension ( String extension ) Void
public GetCacheability ( ) HttpCacheability
public GetCacheExtensions ( ) String
public GetETag ( ) String
public GetETagFromFileDependencies ( ) Boolean
public GetExpires ( ) DateTime
public GetIgnoreRangeRequests ( ) Boolean
public GetLastModifiedFromFileDependencies ( ) Boolean
public GetMaxAge ( ) TimeSpan
public GetNoServerCaching ( ) Boolean
public GetNoStore ( ) Boolean
public GetNoTransforms ( ) Boolean
public GetOmitVaryStar ( ) Int32
public GetProxyMaxAge ( ) TimeSpan
public GetRevalidation ( ) HttpCacheRevalidation
public GetUtcLastModified ( ) DateTime
public GetVaryByCustom ( ) String
public HasSlidingExpiration ( ) Boolean
public IsModified ( ) Boolean
public IsValidUntilExpires ( ) Boolean
public SetAllowResponseInBrowserHistory ( Boolean allow ) Void
public SetCacheability ( HttpCacheability cacheability , String field ) Void
public SetCacheability ( HttpCacheability cacheability ) Void
public SetETag ( String etag ) Void
public SetETagFromFileDependencies ( ) Void
public SetExpires ( DateTime date ) Void
public SetLastModified ( DateTime date ) Void
public SetLastModifiedFromFileDependencies ( ) Void
public SetMaxAge ( TimeSpan delta ) Void
public SetNoServerCaching ( ) Void
public SetNoStore ( ) Void
public SetNoTransforms ( ) Void
public SetOmitVaryStar ( Boolean omit ) Void
public SetProxyMaxAge ( TimeSpan delta ) Void
public SetRevalidation ( HttpCacheRevalidation revalidation ) Void
public SetSlidingExpiration ( Boolean slide ) Void
public SetValidUntilExpires ( Boolean validUntilExpires ) Void
public SetVaryByCustom ( String custom ) Void

Remarks

The properties and methods of the HttpCachePolicy class are exposed via the Cache property of the intrinsic Response object.

For background information on HTTP caching and cache-control headers, see Section 13 Caching in HTTP and Section 14.9 Cache-Control in the Hypertext Transfer Protocol ( HTTP/1.1 ) documentation, available from the World Wide Web Consortium.

Syntax


To call a method:

Response.Cache.methodName ( arguments );
  C# VB

To return the value of a property:

Type var = Response.Cache.propertyName  [ arguments ];
  C# VB

See Also

Caching ASP.NET Pages Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph