Re: [squid-users] Squid doesn't give .pdf even if it is in the cache?

This is a discussion on Re: [squid-users] Squid doesn't give .pdf even if it is in the cache? within the Squid Users forums, part of the Web Server and Related Forums category; On Wed, 14 Apr 2004 Hanno.Wagner@boerse-stuttgart.de wrote: > I checked the logfile and there I found ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-14-2004
Henrik Nordstrom
 
Posts: n/a
Default Re: [squid-users] Squid doesn't give .pdf even if it is in the cache?

On Wed, 14 Apr 2004 Hanno.Wagner@boerse-stuttgart.de wrote:

> I checked the logfile and there I found a (maybe) strange entry - at least
> it was strange for me:
>
> 1081939891.711 16394 192.168.82.17 TCP_MISS/200 3689396 GET
> http://nagios.sourceforge.net/downlo...s_1_0_Docs.pdf
> - DIRECT/66.35.250.209 application/pdf


Here you got the whole file.

> 1081940037.382 48 192.168.82.17 TCP_IMS_HIT/304 229 GET
> http://nagios.sourceforge.net/downlo...s_1_0_Docs.pdf
> - NONE/- application/pdf


Your browser thinks it has the file and only asked if it has changed,
which it had not.

[repeated 3 times]

> So apparently the file gets downloaded from the cache - but (whyever) not
> transported completely to my IE. But squid thinks he has been successfull
> because on the next requests he answers with "not modified", so IE should
> take it out of his cache.


Probably your IE actually got the file but failed to save it, corrupting
the local browser cache on your station.

The best way to inspect whos fault it is here is to look at the traffic
with tcpdump.

tcpdump -w trace.pcap -s 1600 host 192.168.82.17

then clear your browser cache and request the document. When finished stop
tcpdump.

Now look into the file by using

tcpdump -r trace.pcap -n

and

ngrep -I trace.pcap

You should see the traffic flowing of the whole document, and in the end
either a FIN->FIN+ACK->ACK sequence or just ACKs.. (no RESET).

Regards
Henrik

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0