我想讓我的標題圓形高速緩存。我在vb.net下面的代碼:什麼是設置no-cache =「設置Cookie」
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"
我怎麼可以切換或關閉?
[這個StackOverflow的職位(http://stackoverflow.com/q/14005279/4072843)看起來相關,和可能有幫助。 – Castaglia