asp.net mvc - OutputCache Location = OutputCacheLocation.Client doesnt work -


i attempting use outputcache caching of images (returned db). unfortunately doesnt seem work. if set location = outputcachelocation.serverandclient caches correctly on server, never browser? suggestions why?

[outputcache(duration = 3600,              varybyparam = "serialnumber;activityid",              location = outputcachelocation.client,              nostore = true)] public actionresult getimage(string serialnumber, int activityid) {     var bytearray = this.service.getimage(serialnumber, activityid);     return file(bytearray, "image/jpeg"); // adjust content type appropriately } 

why set nostore true? think should work if remove:

nostore = true 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -