Contains methods for setting cache-specific HTTP headers and for controlling the ASP.NET page output cache.
| C# | Visual Basic | Visual C++ |
public class HttpCachePolicy
Public Class HttpCachePolicy
public ref class HttpCachePolicy
| All Members | Constructors | Methods | |||
| Icon | Member | Description |
|---|---|---|
| HttpCachePolicy()()() | Initializes a new instance of the HttpCachePolicy class | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SetMaxAge(TimeSpan) |
Sets the Cache-Control: max-age HTTP header based on the specified time span.
| |
| SetNoStore()()() |
Sets the Cache-Control: no-store directive.
| |
| ToString()()() | (Inherited from Object.) |
| Object | |
| HttpCachePolicy | |