MVC3 OutputCache VaryByHeader =未设置Cookie

And*_*ock 5 asp.net asp.net-mvc-3

我有以下操作方法:

[HttpGet, Authorize, OutputCache(Duration = 60, VaryByHeader = "Cookie", Location = OutputCacheLocation.Any)]
public ActionResult Index()
Run Code Online (Sandbox Code Playgroud)

但是当我提出请求时,这些是发出的标题:

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
Run Code Online (Sandbox Code Playgroud)

为什么不包括Vary中的Cookie标头?

我尝试了许多OutputCache设置的变化但无济于事:(