Suppose i have an controller action that i would like to output cache.
public class HomeController : Controller { [OutputCache(Duration=10, VaryByParam="none")] public ActionResult Index() {
// set file dependency to the cache return View(); } }
I need to dynamically set dependency to an external file inside the code. How can i do that?
View Complete Post