Actually it is the sloppy way IE deals with MIME types.  At the first
hit, IE determines that it can't handle the content type and an external
plugin needs to handle the request.  So it discards the data after reading
the http header and does a second hit passing the entire thing to Acrobat.

We are using FOP to generate some reports that take 15 minutes to build, and
this is the biggest performance hit.


----- Original Message -----
From: "Alex McLintock" <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 4:08 AM
Subject: Re: bit OT but..streaming PDF to browsers

> --- David Frankson <[EMAIL PROTECTED]> wrote:
> > I get pdfs from servlets to work fine in IE, but I never have overcome
> > the 2 hits per pdf.  Is there a solution to this?
> I've noticed the "two hits" issue but always assumed it was due to my
> rubbish proxy configuration.
> It may be that the first request is hust a "head" request to determine
> the datestamp of the response and thus to determine whether or not
> it can retrieve the file from its cache. (It is presumably seeing that
> the datestamp is later than the cached version and thus requesting
> the whole response the second time.)
> So one possibility is to check for a head request and when you get it
> to NOT generate the PDF but just output the headers saying that the
> file would be new if you hadn't just done a head request.
> This is a bit off topic so learning how to do this is left as an exercise
> for the reader.
> Or if you are in London you can pay me to do it for you  :-)
> Alex
> =====
> Alex McLintock        [EMAIL PROTECTED]    Open Source Consultancy in London
> OpenWeb Analysts Ltd,
> Get Your XML T-Shirt <t-shirt/> at
> ____________________________________________________________
> Do You Yahoo!?
> Get your free address at
> or your free address at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to