Disable browser cache in asp mvc

ASP.NET-MVC

Here is a simple trick on how to disable browser cache in asp mvc application with an attribute.
If you have a base controller just add this to your base and all your request would have Pragma No-Cache

Simply add this to your base controller, and you are done 🙂

Taswar Bhatti Avatar

Written by