Hi,

I'm developing a webaccel project and I am trying to use apache to do that. I'm choosing apache because squid does not support natively http/1.1 compression.

The main resources are: security (mod_security), saving bandwidth (mod_deflate) and lowering backend servers load (mod_proxy/mod_disk_cache).

My testing environment is: one backend server, one webaccel server, two windows workstation (1- firefox and 1- MSIE 6.x). All steps were right (proxy, cache and deflate) but apache cached two copies of all objects for every site I access- one for firefox and one for MSIE (I checked this on headers stored in the cache directory)- When using other version of MSIE (7.x) no more copies were done.

Is this a common apache (mod_cache) behaviour ? Does squid has this same content negotiation ?


debian:/cache# grep 'fd.jpg?' * -r
Binary file 3IT/6la/Omd/Jn@/287/BxY4K0g.header.vary/uaR/FRo/84M/RjT/oFp/MOeRbRg.header matches Binary file 3IT/6la/Omd/Jn@/287/BxY4K0g.header.vary/3qK/eDq/v0G/pKc/LmQ/eK1JffA.header matches


debian:/cache# cat 3IT/6la/Omd/Jn@/287/BxY4K0g.header.vary/uaR/FRo/84M/RjT/oFp/MOeRbRg.header
È"¤õ_:Þt:)ÍÀf:
&ÕÀf:http://teste.com.br:80/img/fd.jpg?Date: Tue, 18 Sep 2007 02:48:34 GMT
Server: Apache
Last-Modified: Thu, 21 Jun 2007 16:01:32 GMT
ETag: "dd09a4-1aa-a904ef00"
Accept-Ranges: bytes
Content-Type: image/jpeg
Via: 1.1 teste.com.br
Vary: Accept-Encoding
Content-Encoding: gzip

Host: www.rodadaalimentos.com.br
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5
Accept: image/png,*/*;q=0.5
Accept-Language: pt-br,pt;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Referer: http://www.rodadaalimentos.com.br/estilos.css
Max-Forwards: 10
Via: 1.1 teste.com.br
X-Forwarded-For: 201.81.185.230
X-Forwarded-Host: www.rodadaalimentos.com.br
X-Forwarded-Server: teste.com.br


debian:/cache# cat 3IT/6la/Omd/Jn@/287/BxY4K0g.header.vary/3qK/eDq/v0G/pKc/LmQ/eK1JffA.header È"@Ééð_:@)Át:H²µ¼f:¼¼¼f:http://teste.com.br:80/img/fd.jpg?Date: Tue, 18 Sep 2007 02:47:25 GMT
Server: Apache
Last-Modified: Thu, 21 Jun 2007 16:01:32 GMT
ETag: "dd09a4-1aa-a904ef00"
Accept-Ranges: bytes
Content-Type: image/jpeg
Via: 1.1 teste.com.br
Vary: Accept-Encoding
Content-Encoding: gzip

Accept: */*
Referer: http://www.rodadaalimentos.com.br/inscritos.html
Accept-Language: pt-br
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Host: www.rodadaalimentos.com.br
Max-Forwards: 10
Via: 1.1 teste.com.br
X-Forwarded-For: 201.81.185.230
X-Forwarded-Host: www.rodadaalimentos.com.br
X-Forwarded-Server: teste.com.br

Best Regards,
Fernando

Reply via email to