Re: [squid-users] Handling pdf

From: Wei Keong <chooweikeong@dont-contact.us>
Date: Thu, 19 Sep 2002 15:30:32 +0800 (Singapore Standard Time)

> Presumably, it is browser related. Perhaps your browser decides
> to look at some pdf 'headers' first, then fetches the whole
> document.

Yup, it's IE again.

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q293792

> In Internet Explorer 4. x and 5, the browser first generates a GET
> request to the server. The server responds with the content-type, and
> the browser looks at the registry to check which application it will
> invoke. Then the browser generates a second GET request, and, after the
> server responds with the same content-type, the browser invokes the
> targeted application inside the browser window. Lastly, the browser
> sends a third GET request, and this time the browser renders the content
> of the server file inside the browser and completes the process.

Rgds,
Wei Keong

On Thu, 19 Sep 2002, Marc Elsen wrote:

>
>
> Wei Keong wrote:
> >
> > Hi all,
> >
> > I notice that when i tried viewing pdf through browser, multiple
> > requests will be logged (see below).
> >
> > Why does Squid break up the request?
>
> My SQUID doesn't, it fetches this particular pdf file
> in one GET request only.
>
> > What is the first 3 requests? handshaking?
> > Why not go straight to multipart/byteranges?
> > Is this web server dependent or pdf client dependent?
>
> Presumably, it is browser related. Perhaps your browser decides
> to look at some pdf 'headers' first, then fetches the whole
> document.
>
> M.
>
> >
> > 1032417365.254 1911 x.x.x.x TCP_MISS/200 4177 GET
> > http://www.ai.mit.edu/conferences/aistats2001/sample.pdf -
> > DIRECT/128.52.32.5 application/pdf
> > 1032417366.216 747 x.x.x.x TCP_MISS/200 4177 GET
> > http://www.ai.mit.edu/conferences/aistats2001/sample.pdf -
> > DIRECT/128.52.32.5 application/pdf
> > 1032417367.046 755 x.x.x.x TCP_MISS/200 4177 GET
> > http://www.ai.mit.edu/conferences/aistats2001/sample.pdf -
> > DIRECT/128.52.32.5 application/pdf
> > 1032417369.414 2241 x.x.x.x TCP_MISS/206 74504 GET
> > http://www.ai.mit.edu/conferences/aistats2001/sample.pdf -
> > DIRECT/128.52.32.5 multipart/byteranges
> >
> > 1032417412.266 1565 x.x.x.x TCP_MISS/200 4177 GET
> > http://www.ai.mit.edu/projects/dynlangs/ll1/shriram-talk.pdf -
> > DIRECT/128.52.32.5 application/pdf
> > 1032417413.154 755 x.x.x.x TCP_MISS/200 4177 GET
> > http://www.ai.mit.edu/projects/dynlangs/ll1/shriram-talk.pdf -
> > DIRECT/128.52.32.5 application/pdf
> > 1032417413.932 751 x.x.x.x TCP_MISS/200 4177 GET
> > http://www.ai.mit.edu/projects/dynlangs/ll1/shriram-talk.pdf -
> > DIRECT/128.52.32.5 application/pdf
> > 1032417428.199 14220 x.x.x.x TCP_MISS/206 848687 GET
> > http://www.ai.mit.edu/projects/dynlangs/ll1/shriram-talk.pdf -
> > DIRECT/128.52.32.5 multipart/byteranges
> >
> > Thanks,
> > Wei Keong
>
> --
>
> 'Time is a consequence of Matter thus
> General Relativity is a direct consequence of QM
> (M.E. Mar 2002)
>
Received on Thu Sep 19 2002 - 01:30:52 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:10:21 MST