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


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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