环境:IIS7、.Net 4.0
在我们的应用程序的web.config中,它包含以下部分:
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="cache-control" value="no-cache" />
</customHeaders>
</httpProtocol>
</system.webServer>我们的大多数应用程序都需要无缓存,但只有一个页面需要缓存控制为Private。是一种方法吗?
感谢您提供的任何意见
发布于 2014-02-14 19:25:17
还可以通过设置@outputcache指令的location属性来更改页面的响应缓存。
<%@ OutputCache Location="Server" %>https://stackoverflow.com/questions/7950720
复制相似问题