In my project of MVC I am using OutputCache to cache page on both server and client side. Whenever I load page or reload page data is not coming from cache. Is there any explanation for this?
Controller:Main.cs
[OutputCache(Duration=3600)]
public ActionResult Main()
{
//some code
return View("~/Views/main.cshtml",DateTime.Now);
}
View:main.cshtml
@model DateTime
<h2>Hi</h2>
<h2>Hello</h2>
<h2>@Model</h2>