Here's a method I've used before to render in-browser PDFs, via HTTPS, without** caching. Hopefully you can take from it what you need, and developers assuming your question pertains to. NET in your question, but I'm going to provide a related solution. I created a new question to follow through with this issue. Update: I thought it was working, but I guess I spoke too soon. Response.BinaryWrite(mem_stream.ToArray()) Response.AddHeader("content-length", mem_) Response.AddHeader("content-disposition", "attachment filename=whatever.pdf") Response.AddHeader("cache-control", "max-age=1") I updated our code to generate the PDF as follows: Response.ClearContent() By setting the cache-control header to max-age=1 the file would be cached for 1 second, just long enough for Adobe Reader to pick it up from the disk and load it into memory. The key to solving the issue was actually in this PHP question. Internet Explorer 10 Pre-Released Windows 7 is available to all software users as a free download for Windows. This download is licensed as freeware for the Windows (32-bit and 64-bit) operating system on a laptop or desktop PC from web browsers without restrictions. I used fiddler and found that even when I wasn't specifying the cache-control header it seemed that the Framework was automatically specifying no-store for me. Internet Explorer 10 Pre-Released Windows 7 on 32-bit and 64-bit PCs. then with the immediate panic over, I started looking at the code (ASP.NET using VB). I ran into this same problem, and could only get it to work by asking the user to modify their security settings to turn off Do not save encrypted pages to disk in the Advanced tab of the Internet Options dialog:
0 Comments
Leave a Reply. |