Why isn't my custom delivered image caching in the browser?
问题 I have a custom handler that is returning an image to the browser. The images are fetched from a database. For some reason the images are not being cached by the browser, and I was wondering if someone might be able to spot what I am missing from the below code: HttpContext.Current.Response.BinaryWrite(imageBytes); HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Public); Context.Current.Response.Cache.SetAllowResponseInBrowserHistory(true); if(imgRepGetCache.DateCached