ASP » Response » CacheControl

The CacheControl property determines whether a proxy server can cache the Active Server Page.

The CacheControl property allows a proxy server to cache an Actice Server Page. A proxy server is used to speed up the retrieval of a web page by keeping a local copy of the web page in a cache.

The CacheControl property can only be set equal to "Public" or "Private". The pair of double quotes are required.

If the CacheControl property is set equal to "Public", then caching can occur.

If the CacheControl property is set equal to "Private", then caching cannot occur. By default, a proxy server will not keep a cache copy.

You can use Response.Expires and Response.ExpiresAbsolute to set a time and/or date limit on the existence of the cache.

Examples

Code:
<% Response.CacheControl = "Public" %>
<% Response.CacheControl = "Private" %>