Re: [squid-users] Cache firefox ok, chrome... not!

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 08 Dec 2010 18:19:47 +1300

On 08/12/10 16:51, Rodolfo Alcazar Portillo wrote:
> Hi. Fedora 14/x86_64
>
> With Firefox, "TCP_MEM_HIT":
>
> # tail -f /var/log/squid/access.log |grep css
>
> 1291778947.206 0 127.0.0.1 TCP_MEM_HIT/200 626 GET http://www.elpais.com/css/i_portadillas.css? - NONE/- text/css
> 1291778947.210 0 127.0.0.1 TCP_MEM_HIT/200 693 GET http://www.elpais.com/css/promos_marketplace.css? - NONE/- text/css
> 1291778947.212 0 127.0.0.1 TCP_MEM_HIT/200 4501 GET http://www.elpais.com/css/ep-portada.css? - NONE/- text/css
> 1291778947.214 0 127.0.0.1 TCP_MEM_HIT/200 3403 GET http://www.elpais.com/css/pie.css? - NONE/- text/css
> 1291778947.217 0 127.0.0.1 TCP_MEM_HIT/200 1926 GET http://www.elpais.com/css/eskup/eskup_ventana_inferior.css? - NONE/- text/css
> 1291778947.222 0 127.0.0.1 TCP_MEM_HIT/200 3641 GET http://www.elpais.com/css/marcadores.css? - NONE/- text/css
> 1291778947.225 0 127.0.0.1 TCP_MEM_HIT/200 3524 GET http://www.elpais.com/css/especiales/pgc/modulos.css? - NONE/- text/css
> 1291778947.557 0 127.0.0.1 TCP_MEM_HIT/200 18220 GET http://www.elpais.com/css/comunes.css? - NONE/- text/css
> 1291778947.558 0 127.0.0.1 TCP_MEM_HIT/200 13822 GET http://www.elpais.com/css/portadillas.css? - NONE/- text/css
> 1291778947.559 0 127.0.0.1 TCP_MEM_HIT/200 2297 GET http://www.elpais.com/css/n_fotos.css? - NONE/- text/css
> 1291778947.562 0 127.0.0.1 TCP_MEM_HIT/200 842 GET http://www.elpais.com/css/estilos_antiguos.css? - NONE/- text/css
> 1291778947.692 0 127.0.0.1 TCP_MEM_HIT/200 1041 GET http://www.elpais.com/css/interstitial/interstitial.css - NONE/- text/css
> 1291778949.238 0 127.0.0.1 TCP_MEM_HIT/200 2599 GET http://eskup.elpais.com/Estilos/v1.x/v1.0/eskup_portada_elpais_superior_escribir.css - NONE/- text/css
>
> The VERY SAME PAGE with Google Chrome, several reloads, always "TCP_MISS":
>
> 1291778941.929 108 127.0.0.1 TCP_MISS/304 340 GET http://www.elpais.com/css/i_portadillas.css? - DIRECT/80.157.169.17 text/css
> 1291778941.947 125 127.0.0.1 TCP_MISS/304 340 GET http://www.elpais.com/css/promos_marketplace.css? - DIRECT/80.157.169.17 text/css
> 1291778941.959 136 127.0.0.1 TCP_MISS/304 340 GET http://www.elpais.com/css/ep-portada.css? - DIRECT/80.157.169.17 text/css
> 1291778941.977 132 127.0.0.1 TCP_MISS/304 340 GET http://www.elpais.com/css/pie.css? - DIRECT/80.157.169.17 text/css
> 1291778941.996 77 127.0.0.1 TCP_MISS/304 340 GET http://www.elpais.com/css/marcadores.css? - DIRECT/80.157.169.17 text/css
> 1291778942.008 84 127.0.0.1 TCP_MISS/304 340 GET http://www.elpais.com/css/especiales/pgc/modulos.css? - DIRECT/80.157.169.17 text/css
> 1291778942.253 93 127.0.0.1 TCP_MISS/304 340 GET http://www.elpais.com/css/comunes.css? - DIRECT/80.157.169.17 text/css
> 1291778942.268 89 127.0.0.1 TCP_MISS/304 340 GET http://www.elpais.com/css/portadillas.css? - DIRECT/80.157.169.17 text/css
> 1291778942.286 93 127.0.0.1 TCP_MISS/304 340 GET http://www.elpais.com/css/n_fotos.css? - DIRECT/80.157.169.17 text/css
> 1291778942.301 88 127.0.0.1 TCP_MISS/304 340 GET http://www.elpais.com/css/estilos_antiguos.css? - DIRECT/80.157.169.17 text/css
> 1291778942.323 59 127.0.0.1 TCP_MISS/304 340 GET http://www.elpais.com/css/interstitial/interstitial.css - DIRECT/80.157.169.17 text/css
> 1291778944.734 378 127.0.0.1 TCP_REFRESH_UNMODIFIED/304 460 GET http://eskup.elpais.com/Estilos/v1.x/v1.0/eskup_portada_elpais_superior_escribir.css - DIRECT/91.216.63.240 -
>
> How can I change this Chrome behaviour? Am I doing something wrong?

You need to look at the headers they are sending Squid. See what is
different between the two.

>
> Both of these works the same (top of my refresh-pattern list):
>
> refresh_pattern ^http: 0 100% 1440
>
> refresh_pattern ^http: 0 100% 1440 override-expire override-lastmod reload-into-ims
> ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate ignore-private
> ignore-auth refresh-ims

Which release version of Squid?

And are you doing this on a reverse proxy for elpais.com? If you have
squid 3.1+ use the "ignore-cc" option on your accel http_port instead of
all that horrid algorithm overriding.

If you are a separate admin do the whole world a favor and contact them
about fixing their website headers so their content caches appropriately.

That the server produces non-compressed objects with the wrong Vary:
header.
http://redbot.org/?uri=http%3A%2F%2Fwww.elpais.com%2Fcss%2Finterstitial%2Finterstitial.css

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.9
   Beta testers wanted for 3.2.0.3
Received on Wed Dec 08 2010 - 05:19:52 MST

This archive was generated by hypermail 2.2.0 : Thu Dec 09 2010 - 12:00:02 MST