Partilhar via


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

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.

See Also

Reference

PublishingHttpModule Class

PublishingHttpModule Members

Microsoft.SharePoint.Publishing Namespace

PublishingHttpModule