Response.Cache.SetCacheability和Response.Cache.SetAllowResponseInBrowserHistory是什么意思? [英] What do Response.Cache.SetCacheability and Response.Cache.SetAllowResponseInBrowserHistory mean?

查看:127
本文介绍了Response.Cache.SetCacheability和Response.Cache.SetAllowResponseInBrowserHistory是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我们在项目中使用这些行?



Response.Cache.SetCacheability(HttpCacheability.NoCache);

Response.Cache .SetExpires(DateTime.Now.AddDays(-1));

Response.Cache.SetNoStore();

Why we use These lines in our project?

Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now.AddDays(-1));
Response.Cache.SetNoStore();

推荐答案

请阅读以下内容链接。



http://msdn.microsoft.com/en-us/library/c4yy9w70%28v=vs.110%29.aspx [ ^ ]



http://www.dotnetfunda.com/forums/show/13050 / what-is-the-use-of-responsecachesetcacheability [ ^ ]



具有示例的Response.Cache.SetCacheability(HttpCacheability.NoCache)的确切用途 [ ^ ]



http: //www.c-sharpcorner.com/forums/thread/165075/response-cache-setnostore-in-asp-net.aspx [ ^ ]
Please read below links.

http://msdn.microsoft.com/en-us/library/c4yy9w70%28v=vs.110%29.aspx[^]

http://www.dotnetfunda.com/forums/show/13050/what-is-the-use-of-responsecachesetcacheability[^]

What is exact use of Response.Cache.SetCacheability(HttpCacheability.NoCache) with example[^]

http://www.c-sharpcorner.com/forums/thread/165075/response-cache-setnostore-in-asp-net.aspx[^]


这篇关于Response.Cache.SetCacheability和Response.Cache.SetAllowResponseInBrowserHistory是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆