Friday, 23 August 2013

MVC 4 Disable Client Image Caching

MVC 4 Disable Client Image Caching

I am working on an MVC 4 app designed to run on iOS. I have encountered a
problem where the app crashes when the local cache exceeds 5MB (due to a
very high number of images on the site).
I am trying to disable local caching, I have tried meta tags suggested in
other posts and this does not work. I have also tried decorating
controller actions with
[OutputCache(Duration = 1, Location = OutputCacheLocation.None)]
This doesn't work because we use partial views and I get an exception
saying that the location parameter is not supported on partial views.
Any advice?

No comments:

Post a Comment