当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP CacheControl 属性

ASP
ASP 介绍
ASP Install
ASP 语法
ASP 变量
ASP Procedures
ASP Forms
ASP Cookies
ASP Session
ASP Application
ASP #include
ASP Global.asa
ASP Send e-mail
ASP Response
ASP Request
ASP Application
ASP Session
ASP Server
ASP Error
ASP FileSystem
ASP TextStream

ASP CacheControl 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 378 ::
收藏到网摘: n/a

The CacheControl property sets whether a proxy server can cache the output generated by ASP or not. By default, a proxy server will not keep a cache copy.
CacheControl(缓存空间)属性的作用是指定代理服务器是否对ASP产生的结果进行缓存;默认情况下是不执行缓存命令。

Syntax
语法

response.CacheControl[=control_header]

Parameter
参数
Description
描述
control_header A cache control header that can be set to "Public" or "Private".
缓存控件的抬头可以设置为“Public(公用)”或“Private(私用)”;

Private is default and indicates that only private caches may cache this page. Proxy servers will not cache pages with this setting.
Private一般为默认的设置,这使得该页的缓存不为公开的。代理服务器不会获得该页面的缓存

Public indicates public caches. Proxy servers will cache pages with this setting.
Public使得页面缓存是公开的. 在这个设置下,代理服务器可以获得页面的缓存

Examples
举例

<%response.CacheControl="Public"%>

or

<%response.CacheControl="Private"%>

评论 (0) All

登陆 | 还没注册?