[squid-users] RE: Squid doesn't cache some objetcs

From: Harvey Dueck <harvey.dueck_at_mobidia.com>
Date: Thu, 16 Apr 2009 15:36:05 -0400

I suspect the culprit is the Range: header issued by the application.

You should be able to configure squid to always download the while file anyway.
Depending on the squid version, setting

quick_abort_min -1 KB

might work

-----Original Message-----
From: Donoso Gabilondo, Daniel [mailto:donoso.d_at_ikusi.es]
Sent: Thursday, April 16, 2009 7:02 AM
To: squid-users_at_squid-cache.org
Subject: [squid-users] Squid doesn't cache some objetcs

I resend this mail because I don't know if it arrived well the first
time. (I have received it in the spam folder) If it was received well
sorry for send it again.

I'm using a linux application that uses squid to cache the objects.
If I ask the objects with wget linux command the objects are cached
well, but with the application it always receives "Partial Content"
I saw that GET headers are different. The application adds to header a
Range attribute (is this the problem?)
 
The application header is this:

GET /Resources/rsc/National/Diapositiva20.JPG HTTP/1.0\r\n
User-Agent: Lavf52.16.0\r\n
Accept: */*\r\n
Range: bytes=0-\r\n
Host: myserver.com:8080\r\n
Authorization: Basic\r\n
Via: 1.1 localhost.localdomain (squid/3.0.STABLE13)\r\n
X-Forwarded-For: 127.0.0.1\r\n
Cache-Control: max-age=0\r\n
Connection: keep-alive\r\n

And the wget header content:

GET /Resources/rsc/National/Diapositiva20.JPG HTTP/1.0\r\n
User-Agent: Wget/1.11.4 (Red Hat modified)\r\n
Accept: */*\r\n
Host: myserver.com:8080\r\n
Via: 1.1 localhost.localdomain (squid/3.0.STABLE13)\r\n
X-Forwarded-For: 127.0.0.1\r\n
Cache-Control: max-age=0\r\n
Connection: keep-alive\r\n

Best regards,
Daniel
Received on Thu Apr 16 2009 - 19:36:32 MDT

This archive was generated by hypermail 2.2.0 : Fri Apr 17 2009 - 12:00:02 MDT