Problème de cache squid 3.1.8-TCP_MISS

Bonjour,
je viens sur ce forum pour un problème qui m’a pris une journée sans trouver de solutions.
J’ai configuré squid 3.1.8 sur une Debian 7 et lancé l’essai sur une seule machine en indiquant le proxy dans le navigateur.

Mais, les logs qui indique l’accès au proxy sont pleins de TCP_MISS et TCP_REFRESH_UNMODIFIED quand le réactualise une page déjà visitée. Or, en cherchant la signification de ce mot-clé, j’ai remarqué que cela signifie que l’objet cherché est absent du cache.

voici la sortie après réactualisation d’une page, de ::

[i]Tail -f /var/log/squid3/access.log

ail -f /var/log/squid3/access.log
1430401159.411 182 10.24.1.216 TCP_REFRESH_UNMODIFIED/304 452 GET tags.tiqcdn.com/utag/lenovo/main/prod/utag.2.js? - DIRECT/68.232.35.180 -
1430401159.429 3 10.24.1.216 TCP_MEM_HIT/200 36863 GET d1af033869koo7.cloudfront.net/ps … 1/247px.js - NONE/- application/x-javascript
1430401159.500 322 10.24.1.216 TCP_MISS/200 678 GET lenovo.tt.omtrdc.net/m2/lenovo/sc/standard? - DIRECT/192.243.232.2 text/javascript
1430401159.509 69 10.24.1.216 TCP_REFRESH_UNMODIFIED/304 363 GET cdn.clicktale.net/www06/ptc/b88d … dfa4a89.js - DIRECT/41.206.101.3 -
1430401159.558 34 10.24.1.216 TCP_REFRESH_UNMODIFIED/304 366 GET cdn.clicktale.net/www06/pcc/b88d … dfa4a89.js? - DIRECT/41.206.101.3 -
1430401159.593 69 10.24.1.216 TCP_REFRESH_UNMODIFIED/304 527 GET cdn.clicktale.net/www/tc/WRe21.js - DIRECT/41.206.101.3 -
1430401159.716 263 10.24.1.216 TCP_MISS/200 374 GET lenovocdn.px.247-inc.com/psp/len … lt/cpxt.js? - DIRECT/23.21.183.230 application/javascript
1430401159.806 639 10.24.1.216 TCP_MISS/200 677 GET o.lenovo.com/b/ss/lenovozapub/1/ … 8610128213? - DIRECT/66.235.139.222 image/gif
1430401159.835 663 10.24.1.216 TCP_MISS/200 2319 GET lenovo.demdex.net/event? - DIRECT/54.229.12.104 application/javascript
1430401161.306 389 10.24.1.216 TCP_MISS/200 620 POST col.eum-appdynamics.com/eumcollector/beacons - DIRECT/54.228.181.54 text/html
1430403737.434 797 10.24.1.216 TCP_REFRESH_UNMODIFIED/200 11972 GET dnn506yrbagrg.cloudfront.net/pag … 26/0255.js - DIRECT/54.230.196.126 application/x-javascript
1430403738.456 1736 10.24.1.216 TCP_MISS/200 574 GET ic.tynt.com/b/p? - DIRECT/67.202.66.203 image/gif
1430403739.370 2726 10.24.1.216 TCP_MISS/200 56621 GET cdn.optimizely.com/js/2326530349.js - DIRECT/23.221.63.13 text/javascript
1430403740.185 3554 10.24.1.216 TCP_MISS/200 796 GET bbg.d1.sc.omtrdc.net/b/ss/bbgvoa … 4790289814? - DIRECT/66.235.139.227 image/gif
1430403754.877 279186 10.24.1.216 TCP_MISS/200 115303 GET rpa.bi/images/slides/manifdimanche4.jpg - DIRECT/93.88.240.6 image/jpeg

[/i]

Néanmoins si je regarde la taille du cache, il augmente au fil de la navigation (mais timidement):

du -hs /var/spool/squid3/
28M /var/spool/squid3/

si je cherche les logs contenant TCP_HIT, ils ne sont que très peu et ne concerne apparemment que des images et cela pas pour tous les sites visités:

cat /var/log/squid3/access.log | grep TCP_HIT
1430392174.139 635 10.24.1.216 TCP_HIT/000 0 GET bonesha.bi/ - DIRECT/88.208.248.21 -
1430394344.533 0 10.24.1.216 TCP_HIT/200 4713 GET pagead2.googlesyndication.com/pa … e-logo.png - NONE/- image/png
1430395144.981 0 10.24.1.216 TCP_HIT/200 4713 GET pagead2.googlesyndication.com/pa … e-logo.png - NONE/- image/png
1430396760.117 0 10.24.1.216 TCP_HIT/200 4713 GET pagead2.googlesyndication.com/pa … e-logo.png - NONE/- image/png
1430398942.147 5 10.24.1.216 TCP_HIT/200 34916 GET platform.twitter.com/widgets.js - NONE/- application/javascript
1430399431.995 0 10.24.1.216 TCP_HIT/200 4713 GET pagead2.googlesyndication.com/pa … e-logo.png - NONE/- image/png
1430401479.354 0 10.24.1.216 TCP_HIT/200 5672 GET www03.lenovo.com/k/2/wV8MPPrlo.webp - NONE/- image/webp
1430401482.489 0 10.24.1.216 TCP_HIT/200 5672 GET www03.lenovo.com/k/2/wV8MPPrlo.webp - NONE/- image/webp
1430401483.996 3 10.24.1.216 TCP_HIT/200 36842 GET d1af033869koo7.cloudfront.net/ps … 1/247px.js - NONE/- application/x-javascript
1430401643.892 2 10.24.1.216 TCP_HIT/200 22571 GET jobinburundi.com/images/bann … 785151.jpg - NONE/- image/jpeg

ci-dessous la sortie de la commande ci-dessous pour voir la config de mon squid:

squid3 -k

squid3 -k parse
2015/04/30 16:17:57| Processing Configuration File: /etc/squid3/squid.conf (depth 0)
2015/04/30 16:17:57| Processing: acl manager proto cache_object
2015/04/30 16:17:57| Processing: acl localhost src 127.0.0.1/32 ::1
2015/04/30 16:17:57| Processing: acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
2015/04/30 16:17:57| Processing: acl mynet src 10.24.1.0/24
2015/04/30 16:17:57| Processing: acl SSL_ports port 443
2015/04/30 16:17:57| Processing: acl Safe_ports port 80 # http
2015/04/30 16:17:57| Processing: acl Safe_ports port 21 # ftp
2015/04/30 16:17:57| Processing: acl Safe_ports port 443 # https
2015/04/30 16:17:57| Processing: acl Safe_ports port 70 # gopher
2015/04/30 16:17:57| Processing: acl Safe_ports port 210 # wais
2015/04/30 16:17:57| Processing: acl Safe_ports port 1025-65535 # unregistered ports
2015/04/30 16:17:57| Processing: acl Safe_ports port 280 # http-mgmt
2015/04/30 16:17:57| Processing: acl Safe_ports port 488 # gss-http
2015/04/30 16:17:57| Processing: acl Safe_ports port 591 # filemaker
2015/04/30 16:17:57| Processing: acl Safe_ports port 777 # multiling http
2015/04/30 16:17:57| Processing: acl CONNECT method CONNECT
2015/04/30 16:17:57| Processing: http_access deny to_localhost
2015/04/30 16:17:57| Processing: http_access allow manager localhost
2015/04/30 16:17:57| Processing: http_access allow mynet
2015/04/30 16:17:57| Processing: http_access allow localhost
2015/04/30 16:17:57| Processing: http_access deny manager
2015/04/30 16:17:57| Processing: http_access deny !Safe_ports
2015/04/30 16:17:57| Processing: http_access deny CONNECT !SSL_ports
2015/04/30 16:17:57| Processing: http_access allow localhost
2015/04/30 16:17:57| Processing: http_access deny all
2015/04/30 16:17:57| Processing: http_port 10.24.1.254:3128
2015/04/30 16:17:57| Processing: coredump_dir /var/spool/squid3
2015/04/30 16:17:57| Processing: refresh_pattern ^ftp: 1440 20% 10080
2015/04/30 16:17:57| Processing: refresh_pattern ^gopher: 1440 0% 1440
2015/04/30 16:17:57| Processing: refresh_pattern -i (/cgi-bin/|?) 0 0% 0
2015/04/30 16:17:57| Processing: refresh_pattern . 0 20% 4320
2015/04/30 16:17:57| Processing: cache_mem 256 MB
2015/04/30 16:17:57| Processing: maximum_object_size_in_memory 512 KB
2015/04/30 16:17:57| Processing: minimum_object_size 0 KB
2015/04/30 16:17:57| Processing: maximum_object_size 4096 KB
2015/04/30 16:17:57| Processing: cache_dir ufs /var/spool/squid3 2000 16 256
2015/04/30 16:17:57| Processing: access_log /var/log/squid3/access.log squid
2015/04/30 16:17:57| Processing: cache_log /var/log/squid3/cache.log
2015/04/30 16:17:57| Processing: cache_store_log /var/log/squid3/store.log
2015/04/30 16:17:57| Processing: shutdown_lifetime 5 seconds
2015/04/30 16:17:57| Processing: cache allow mynet
2015/04/30 16:17:57| Processing: dns_v4_first on
2015/04/30 16:17:57| Processing: icp_port 3130
2015/04/30 16:17:57| Processing: http_reply_access allow all

Quelqu’un aurait une idée de pourquoi certains éléments sont seulement cachés?