HttpResponse.CacheControl Property
.NET Framework 3.0
Sets the Cache-Control HTTP header to Public or Private.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
'Declaration Public Property CacheControl As String 'Usage Dim instance As HttpResponse Dim value As String value = instance.CacheControl instance.CacheControl = value
/** @property */ public String get_CacheControl () /** @property */ public void set_CacheControl (String value)
public function get CacheControl () : String public function set CacheControl (value : String)
Not applicable.
Property Value
"Public" or "Private".The values for Private and Public are strings and must be enclosed in quotation marks (" ").
The CacheControl, Expires, and ExpiresAbsolute properties have been deprecated in favor of the methods of the HttpCachePolicy class available through the Cache intrinsic object to control the IIS output cache and client caches.
Community Additions
ADD
Show: