asp.net.ph

HttpCachePolicy.SetNoServerCaching Method

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 ( );

Remarks

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.

Example

The following example disables output caching for the remainder of the response.

[ VB ]
Response.Cache.SetNoServerCaching ( )

[ C# ]
Response.Cache.SetNoServerCaching ( );

[ JScript ] 
Response.Cache.SetNoServerCaching ( )
See Also

HttpCachePolicy Members   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