System.Web Namespace HttpCachePolicy Class
Stops all origin-server caching for the current response.
[ VB ]
Public Sub SetNoServerCaching ( )
[ C# ]
public void SetNoServerCaching ( );
[ C++ ]
public: void SetNoServerCaching ( );
[ JScript ]
public function SetNoServerCaching ( );
Explicitly denies caching of the document on the origin-server. Once set, all requests for the document are fully processed. When this method is invoked, caching cannot be reenabled for the current response.
The following example disables output caching for the remainder of the response.
[ VB ]
Response.Cache.SetNoServerCaching ( )
[ C# ]
Response.Cache.SetNoServerCaching ( );
[ JScript ]
Response.Cache.SetNoServerCaching ( )
HttpCachePolicy Members Caching ASP.NET Pages