Click or drag to resize
AdvancedGetFileServiceSetCacheabilityAndRevalidation Method
Sets the cacheability restriction based on the options provided as arguments and AllowCache property. Revalidation is set based on the RevalidateClientCache property.

Namespace: CMS.Routing.Web
Assembly: CMS.Routing.Web (in CMS.Routing.Web.dll) Version: 13.0.131
Syntax
C#
protected void SetCacheabilityAndRevalidation(
	CMSActionResult result,
	DateTime lastModified,
	bool useClientCache,
	bool publicCache = true
)

Parameters

result
Type: CMS.Base.RoutingCMSActionResult
The CMSActionResult object to update.
lastModified
Type: SystemDateTime
Last modified date.
useClientCache
Type: SystemBoolean
True if client caching is enabled.
publicCache (Optional)
Type: SystemBoolean
True if object can be cached by clients and proxies, false if only by clients.
See Also