Cool, that's works. However the SharedFilesDownload page allows caching. After a bit of tedious research and googling I found that the following code disables caching in IE, Firefox, and Netscape while allowing IE to download files over SSL:
---------------------------------------------------------------------------------------------
// Set expiration to prevent IE from caching page when user hits back button HttpContext.Current.Response.Cache.SetExpires(DateTime.UtcNow.AddYears(-1));
// no-store makes firefox reload page
// no-cache makes firefox reload page only over SSL
// IE will fail when downloading a file over SSL if no-store or no-cache is set
HttpContext.Current.Response.Cache.SetNoStore();
//HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
// private cache allows IE to download over SSL with no-store set. HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Private);
HttpContext.Current.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches); HttpContext.Current.Response.Cache.AppendCacheExtension("post-check=0,pre-check=0");
----------------------------------------------------------------------------------------------
Why browsers don't adhere to RFC's continues to baffle me!
-Jesse