Harvey Dueck wrote:
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
You want:
range_offset_limit -1
Amos
might work
-----Original Message-----
From: Donoso Gabilondo, Daniel [mailto:donoso.d@xxxxxxxx]
Sent: Thursday, April 16, 2009 7:02 AM
To: squid-users@xxxxxxxxxxxxxxx
Subject: 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
--
Please be using
Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
Current Beta Squid 3.1.0.7