RE: [squid-users] Problems Using squid 2.6 as a transparent web cache

From: Donoso Gabilondo, Daniel <donoso.d_at_ikusi.es>
Date: Thu, 12 Jun 2008 15:27:33 +0200

Here is the trace of the Firefox request:

GET /test/pepe.mpg HTTP/1.0\r\n
Request Method: GET
Request URI: /test/pepe.mpg
Request Version: HTTP/1.0
Host: 192.168.240.22:8080\r\n
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12)
Gecko/20080208 Fedora/2.0.0.12-1.fc8 Firefox/2.0.0.12\r\n
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,image/png,*/*;q=0.5\r\n
Accept-Language: en-us,en;q=0.5\r\n
Accept-Encoding: gzip,deflate\r\n
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n
Via: 1.1 localhost.localdomain:3128 (squid/2.6.STABLE19)\r\n
X-Forwarded-For: 192.168.240.23\r\n
Cache-Control: max-age=259200\r\n
Connection: keep-alive\r\n
\r\n

The answer of the server:
HTTP/1.1 200 OK\r\n
Request Version: HTTP/1.1
Response Code: 200
Server: Apache-Coyote/1.1\r\n
ETag: W/"6250477-1194446956686"\r\n
Last-Modified: Wed, 07 Nov 2007 14:49:16 GMT\r\n
Content-Type: video/mpeg\r\n
Content-Length: 6250477
Date: Thu, 12 Jun 2008 12:43:11 GMT\r\n
Connection: keep-alive\r\n
\r\n

Here is the trace of linux application request (but I can't set to the
application to use the squid as proxy, I have a problem):

GET /test/pepe.mpg HTTP/1.0\r\n
Request Method: GET
Request URI: /test/pepe.mpg
Request Version: HTTP/1.0
User-Agent: Lavf50.5.0\r\n
Accept: */*\r\n
Host: 192.168.240.22:8080\r\n
Authorization: Basic =\r\n
\r\n

The server answer is the same as the other

> I think that its the requests that app is making, or possibly the
> headers on the files coming out of the server.

> If you can get a trace of the request and response headers before they

> go into squid it would help a lot.

> Amos
> --
> Please use Squid 2.7.STABLE1 or 3.0.STABLE6
-----Mensaje original-----
De: Amos Jeffries [mailto:squid3_at_treenet.co.nz]
Enviado el: jueves, 12 de junio de 2008 14:21
Para: Donoso Gabilondo, Daniel
CC: squid-users_at_squid-cache.org
Asunto: Re: [squid-users] Problems Using squid 2.6 as a transparent web
cache

Donoso Gabilondo, Daniel wrote:
> Hello again,
> Thank you very much for your help.
>
>> I suspect you are trying to do some sort of web mashup involving
Squid?
>> I've found the best ways to do those is to have squid as the public
>> domain gateway and do the app-linking/routing in the squid config.
>
> I want to use squid to cache all the resources needed by the linux
application and only download again if they are modified.
>
> I have made the changes that you have indicated me.
> I am using firefox to make a test, because with the linux application
I can't test at this moment. I put squid as the proxy, but always
download the resource.
>
> I saw that the store.log file is updating with the asked resources.
This is the file content:
>
> 1213266172.237 RELEASE 00 0000000F EAEEC8FE1A6E2D8434959FA6301A18A0
200 1213266
> 171 1194446956 -1 video/mpeg 6250477/386763 GET
http://192.168.240.158:808
> 0/test/video.mpg
> 1213266174.770 RELEASE 00 00000010 197E8B6BA5687EDF00E293B32088D2E7
200 1213266
> 174 1194446956 -1 video/mpeg 6250477/251763 GET
http://192.168.240.158:808
> 0/test/video.mpg
>
> I put maximum_object_size 300000 KB because the video.mpg is higher
than 8 MB (10 MB exactly), but I tried to ask small resources (images)
and the results are the same.
>
> I read squid configuration and for default squid allow all to be
catched.
>
> What am I doing wrong?
>
> Thank you again for your help.
>
> Daniel
>

I think that its the requests that app is making, or possibly the
headers on the files coming out of the server.

If you can get a trace of the request and response headers before they
go into squid it would help a lot.

Amos

-- 
Please use Squid 2.7.STABLE1 or 3.0.STABLE6
Received on Thu Jun 12 2008 - 13:27:39 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 12 2008 - 12:00:04 MDT