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.

Private indicates that only private caches may cache this page. This is the default value. Most proxy servers will not cache pages with this setting.

Public indicates that 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

© 1999 Microsoft Corporation. All rights reserved. Terms of use.