Menu ▼

Posted By :
Total Views : 641

Disable local page caching in mvc

This example shows you how to disable the page local caching in mvc To disable page local caching we can write the below code by overriding OnActionExecuting method in controller instead of writing in each view in controller (or you can write in a common controller and each controller will be inherited from that common controller).

protected override void OnActionExecuting(ActionExecutingContext filterContext)