PublishingHttpModule.DontEnableCachingForRequest Method
Prevents the current page output from being cached.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Shared Sub DontEnableCachingForRequest ( _
context As HttpContext _
)
'Usage
Dim context As HttpContextPublishingHttpModule.DontEnableCachingForRequest(context)
public static void DontEnableCachingForRequest(
HttpContext context
)
Parameters
context
Type: System.Web.HttpContextThe current HTTP context.
Remarks
Use this method if you do not want the current page to be output cached.
This method is useful if you create a Web Part or control that displays personal information that you never want to cache. Even if output caching is enabled, the current page is not cached.