| title | IHttpCachePolicy2::SetForceUpdate Method |
|---|---|
| description | Describes the IHttpCachePolicy2::SetForceUpdate method and provides the method's syntax, parameters, remarks, and requirements. |
| ms.date | 10/07/2016 |
| ms.assetid | 21f01a8a-79fb-4fc5-8e53-3f80664c8686 |
Sets a value that indicates that the cache should be updated for a specific request or request variation
virtual VOID SetForceUpdate(
VOID
) = 0; This method takes no parameters.
-
Certain modules need the ability to evaluate requests and update the cache based on variations of the request. The
SetForceUpdatemethod ensures that the cache is updated. A module may keep track of the criteria needed to update the module cache and call this method. Additionally, modules may call IHttpCachePolicy2::IsForceUpdateSet Method to determine if the value has been set. -
CHttpModule derived classes that register for request or response events receive an IHttpContext pointer as a parameter on the corresponding
virtualmethod. To enable caching, call the IHttpContext::GetResponse method, the IHttpResponse::GetCachePolicy method, and finally the IHttpCachePolicy::SetIsCached Method method.
| Type | Description |
|---|---|
| Client | - IIS 7.0 on [!INCLUDEwinvista] - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
| Server | - IIS 7.0 on [!INCLUDEwinsrv2008] - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
| Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 - [!INCLUDEiisexp75], [!INCLUDEiisexp80], [!INCLUDEiisexp100] |
| Header | Httpserv.h |