我有以下操作方法:MVC3的OutputCache VaryByHeader =餅乾未設置
[HttpGet, Authorize, OutputCache(Duration = 60, VaryByHeader = "Cookie", Location = OutputCacheLocation.Any)]
public ActionResult Index()
但是,當我提出一個要求,這些都發布了標題:
Cache-Control: private, max-age=60, s-maxage=0
Content-Type: text/html; charset=utf-8
Content-Encoding: gzip
Expires: Fri, 22 Jun 2012 09:56:32 GMT
Last-Modified: Fri, 22 Jun 2012 09:55:32 GMT
Vary: Accept-Encoding
爲什麼不是包括Vary中的Cookie標頭?
我試過的OutputCache
設置許多變化,但無濟於事:(