--- 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, http://www.OWAL.co.uk/
DR WHO COMPETITION:
http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104
Get Your XML T-Shirt <t-shirt/> at http://www.inversity.co.uk/
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]