subsitution控件,有什么作用?
书上写着,用在配置为需要缓存的asp.net网页上。
到底是什么意思?
下面代码是何意思?谢谢!!void Page_Load(object sender, EventArgs e)
{
Response.Cache.SetExpires(DateTime.Now.AddSeconds(600));
Response.Cache.SetCacheability(HttpCacheability.Public);
Response.Cache.SetValidUntilExpires(true);
}
书上写着,用在配置为需要缓存的asp.net网页上。
到底是什么意思?
下面代码是何意思?谢谢!!void Page_Load(object sender, EventArgs e)
{
Response.Cache.SetExpires(DateTime.Now.AddSeconds(600));
Response.Cache.SetCacheability(HttpCacheability.Public);
Response.Cache.SetValidUntilExpires(true);
}
Response.Cache.SetCacheability(HttpCacheability.Public); //设置页的可缓存性
Response.Cache.SetValidUntilExpires(true); //缓存忽略 Cache-Control 无效标头