Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 HttpContext
PublishingHttpModule.DontEnableCachingForRequest(context)
public static void DontEnableCachingForRequest(
HttpContext context
)
Parameters
- context
Type: System.Web.HttpContext
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.