自强学堂
自强学堂:学习、分享、让你更强!
ASP 实例HTMLCSSJAVASCRIPTJQUERYSQLPHPBOOTSTRAPANGULARXML
 

ASP CacheControl 属性

Response 对象参考手册 完整的 Response 对象参考手册

CacheControl 属性设置代理服务器是否可缓存由 ASP 生成的输出。默认地,代理服务器不会保持缓存副本。

语法

response.CacheControl[=control_header]

参数描述
control_header 缓存的 control header ,可被设置为 "Public" 或 "Private"。

Private 是默认的,仅有私人缓存可以缓存此页。如果为此设置,代理服务器就不会缓存页面。

Public 指示公共缓存。如果为此设置,代理服务器会缓存页面。

实例

<%response.CacheControl="Public"%>

或者:

<%response.CacheControl="Private"%>


Response 对象参考手册 完整的 Response 对象参考手册