ios - MVC 4 Disable Client Image Caching -
i working on mvc 4 app designed run on ios. have encountered problem app crashes when local cache exceeds 5mb (due high number of images on site).
i trying disable local caching, have tried meta tags suggested in other posts , not work. have tried decorating controller actions
[outputcache(duration = 1, location = outputcachelocation.none)]
this doesn't work because use partial views , exception saying location parameter not supported on partial views.
any advice?
have tried defining response headers? more specifically, following header:
cache-control - header must present in response server enable http caching client. value of header may include information max-age (how long cache response), , whether response may cached public or private access, or no-cache (not @ all). see cache-control section of rfc 2616 full details.
Comments
Post a Comment