System.Web.HttpCachePolicy.SetNoServerCaching Method

Stops all origin-server caching for the current response.

Syntax

public void 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 re-enabled for the current response.

HttpCachePolicy.SetNoServerCaching is introduced in the .NET Framework version 3.5. For more information, see The .NET Framework 3.5 Architecture.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0