What would be a simple way to force my ActionResult
to always fire when I hit this page? On browser back click, for instance, this will not execute.
Disabling cache on the ActionResult
forces the page to refresh each time rather than rendering the cached version.
[OutputCacheAttribute(VaryByParam = "*", Duration = 0, NoStore = true)]
public ActionResult Index()
{
//do something always
return View();
}
Now when you click the browsers back button, this is hit every time.