Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP CacheControl Property

ASP CacheControl Property


Response Object Reference Complete Response object reference manual


The CacheControl property sets whether proxy servers can cache output generated by ASP. By default, proxy servers do not keep cached copies.

Syntax

response.CacheControl[=control_header]

Parameters Description
control_header The cache-control header can be set to "Public" or "Private".

Private is the default; only private caches may cache the page. With this setting, proxy servers will not cache the page.

Public indicates a public cache. With this setting, proxy servers will cache the page.

Example

<%response.CacheControl="Public"%>

or:

<%response.CacheControl="Private"%>


Response Object Reference Complete Response object reference manual