CacheControl

The CacheControl property overrides the Private default value. When you set this property to Public, proxy servers can cache the output generated by ASP.

Syntax

Response.CacheControl [= Cache Control Header ]

 

Parameters
Cache Control Header
A cache control header that will be either Public or Private.
Value Description
Private
Only private caches may cache this page. This is the default value. Most proxy servers will not cache pages with this setting.
Public
Public caches, such as proxy servers, will cache pages with this setting.

Remarks

Setting CacheControl to public may improve the perceived performance of your .asp files. If your .asp file generates custom HTML for every request, you will not improve performance by setting CacheControl to public. The values for Private and Public are strings, and must be enclosed in quotation marks (" ").

Applies To

Response Object