I have an ASP.NET web page that dynamically generates a PDF file, which it then sends to the web browser. This PDF is embedded using the <OBJECT> tag. So far, so good. Page is working and users are happy for the most part. However, users at remote locations are complaining of performance issues - a lot more than they should.
After nosing around for a week I finally noticed that IE (both 7 and 8 beta) were requesting the data twice. Okay, some experimentation later and I discovered that entering the full path to the PDF in the address bar makes IE download the data once - but put the PDF url inside an <OBJECT> tag and it downloads it twice for no discernable reason.
I have a sneaking suspicious this has something to do with mime-type sniffing, but no amount of registry fiddling seems to help.
Oddly enough, Firefox also does this double-whammy download but Safari, Opera and Chrome download the data only once.
Anyone know why IE does this with <OBJECT>'s and how I can stop it? It's causing both the web and database server to do twice us much work than it should and ticking both me and the remote users off in the process.
After nosing around for a week I finally noticed that IE (both 7 and 8 beta) were requesting the data twice. Okay, some experimentation later and I discovered that entering the full path to the PDF in the address bar makes IE download the data once - but put the PDF url inside an <OBJECT> tag and it downloads it twice for no discernable reason.
I have a sneaking suspicious this has something to do with mime-type sniffing, but no amount of registry fiddling seems to help.
Oddly enough, Firefox also does this double-whammy download but Safari, Opera and Chrome download the data only once.
Anyone know why IE does this with <OBJECT>'s and how I can stop it? It's causing both the web and database server to do twice us much work than it should and ticking both me and the remote users off in the process.