Like the question says, I wanted to know if it’s possible to turn off caching on all controllers and actions for my entire site. Thanks!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create a Global Action Filter and override
OnResultExecuting():And then register this in your global.asax, like so:
In summation, what this does is create a Global Action Filter so that implicitly this will be applied to all Controllers and all Actions.