最近敲公司代码,看到了一句话
Context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
一直不懂什么意思,各位大大给解释一下

解决方案 »

  1.   

    让程序自己来让页面自动下载!这种方法实际上是让页面不保存到Internet临时文件夹中,每次访问页面都会让浏览器下载页面。只要在New.aspx代码的Page_Load事件中加上Context.Response.Cache.SetCacheability(HttpCacheability.NoCache);即可.在不加这句时打开页面,Internet临时文件夹里会有一个页面文件,而加了,就会没有了。不过,像aspx文件中如果有图片文件或js文件,那还是会下载到Internet临时文件夹的。http://blog.csdn.net/xidaoqiong1985/article/details/6611983