HttpContext.Current.Response.Buffer = False
HttpContext.Current.Response.Expires = 0
HttpContext.Current.Response.ExpiresAbsolute = DateTime.Now.AddDays(-1)
HttpContext.Current.Response.AddHeader("pragma", "no-cache")
HttpContext.Current.Response.AddHeader("cache-control", "private")
HttpContext.Current.Response.CacheControl = "no-cache"
以上6条语句的作用是什么?
尤其是最后一条说详细的,好吗?
HttpContext.Current.Response.Expires = 0
HttpContext.Current.Response.ExpiresAbsolute = DateTime.Now.AddDays(-1)
HttpContext.Current.Response.AddHeader("pragma", "no-cache")
HttpContext.Current.Response.AddHeader("cache-control", "private")
HttpContext.Current.Response.CacheControl = "no-cache"
以上6条语句的作用是什么?
尤其是最后一条说详细的,好吗?
解决方案 »
- 请教关于SQL查询语句的问题
- asp.net 页面 实现 TreeView 接受客户端按Ctrl键 多选?
- 在VS2005和VS2008中都遇到的一个头疼事,高分求解!
- 在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。如果在 IIS 中没有将虚拟目录配置为
- aps.net开发讲访问量在一万人左右的座预约系统
- 代码中如何+超连接????
- 用Frame好还是用母版页好呢?
- |M| 500分第三贴:求做一个Web系统的权限的编程思想和数据库设计和具体实现(大家先不要给我你们的实例,先看看我设计的可行不可行)
- 关于构建电商平台的建议
- 很怪的问题!ASP文件运行无显示,而ASPX文件可以正常运行!有了解速答复!
- 救命呀,急死我了!(没分了)
- datagrid初学者的一个问题!
ExpiresAbsolute:获取或设置将缓存信息从缓存中移除时的绝对日期和时间
CacheControl = "no-cache:"标记被指定为No-Cache,这意味着在浏览器和代理服务器中都不能使用客户端缓冲
AddHeader:将 HTTP 头添加到输出流