ASP.NET MVC OutputCache doesn't work for root URI
问题 I'm learning ASP.NET MVC and bugged by one issue. In the HomeController, the Index action has OutputCache attribute, but it seems doesn't work. [HandleError] public class HomeController : Controller { [OutputCache(Duration=5, VaryByParam="none")] public ActionResult Index() { ViewData["Title"] = "Home Page" + DateTime.Now; ViewData["Message"] = "Welcome to ASP.NET MVC! " + DateTime.Now; return View(); } } After quite a few minutes trying, I found that it is due to the way I access the action.