IE Bug, Caching and Downloading ??
-
In ASP.NET, we have a download handler. We use this to send files to the users that they should be prompted to either Open or Save, rather than show inline in the browser. Through a combination of a couple sets of code, we ended up doing the equivalent of: /* anti-cache code */ Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetNoStore(); Response.Cache.SetExpires(DateTime.MinValue); /* download prompt code */ Response.AppendHeader("Content-Disposition", "attachment; filename=" + ff.OriginalName); This tells the browser not to cache the results (first set of code), and to give the Open/Save prompt (second set of code). Unfortunately, because of the way IE is architected, it always downloads to its cache, and then when the download is complete, puts the end result file in the right place. Logically speaking, IE put itself into a place architecturally when it would NOT permit the file to be downloaded. how can I handle it in asp.net I want to do these two things..cache clearing for disabling back button and downloading