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
Post a Comment