【发布时间】:2016-08-22 14:00:04
【问题描述】:
我正在尝试获取我的标题圆角缓存。我在 vb.net 中有以下代码:
With HttpContext.Current.Response
.Cache.SetCacheability(HttpCacheability.Public)
.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches)
.Cache.SetLastModified(Now)
.Cache.SetExpires(DateTime.UtcNow.AddSeconds(120))
.Cache.SetMaxAge(TimeSpan.FromSeconds(120))
End With
返回以下标题:
Cache-Control: public, no-cache="Set-Cookie", must-revalidate, max-age=120
Content-Type: application/xml; charset=utf-8
Expires: Mon, 22 Aug 2016 13:54:36 GMT
Last-Modified: Mon, 22 Aug 2016 13:52:36 GMT
但我想弄清楚no-cache="Set-Cookie" 的设置是什么,我该如何打开或关闭它?
【问题讨论】:
-
This StackOverflow post 看起来很相关,可能会有所帮助。