PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Kein Caching durch Squid3 von entfernten Anfragen



chris_h
23.06.09, 14:24
Hi,

habe debian 5.0 mit squid3 installiert.
Teste ich mit:


squidclient http://google.com

wird die Seite beim zweiten Mal ordnungsgemäß aus dem Cache gelanden. Öffne ich den IE von einer anderen Machine, gibt es immer TPC_MISS!?
Mit squidclient:


1245763000.548 78 127.0.0.1 TCP_MEM_HIT/301 623 GET http://google.com - NONE/- text/html
1245763003.718 0 127.0.0.1 TCP_MEM_HIT/301 623 GET http://google.com - NONE/- text/html


Mit IE:


1245763216.615 80 172.31.3.168 TCP_MISS/302 562 GET http://www.google.com/ - DIRECT/74.125.77.104 text/html
1245763216.720 96 172.31.3.168 TCP_MISS/200 3616 GET http://www.google.de/ - DIRECT/74.125.77.147 text/html
1245763216.920 45 172.31.3.168 TCP_MISS/204 357 GET http://www.google.de/csi? - DIRECT/74.125.77.147 text/html
1245763217.028 79 172.31.3.168 TCP_MISS/204 266 GET http://clients1.google.de/generate_204 - DIRECT/74.125.77.138 text/html
1245763221.820 62 172.31.3.168 TCP_MISS/200 3617 GET http://www.google.de/ - DIRECT/74.125.77.147 text/html
1245763221.888 42 172.31.3.168 TCP_MISS/304 267 GET http://www.google.de/intl/de_de/images/logo.gif - DIRECT/74.125.77.147 -
1245763221.952 45 172.31.3.168 TCP_MISS/304 267 GET http://www.google.de/images/nav_logo4.png - DIRECT/74.125.77.147 -
1245763221.956 83 172.31.3.168 TCP_MISS/304 261 GET http://www.google.de/extern_js/f/CgJkZRICZGUrMAo4GywrMA44BSwrMBY4DCwrMBc4AywrMBg4BC wrMCU4yYgBLCswJjgELCswJzgALA/vkQQ1uON6NQ.js - DIRECT/74.125.77.103 text/html
1245763221.987 0 172.31.3.168 TCP_NEGATIVE_HIT/204 273 GET http://clients1.google.de/generate_204 - NONE/- text/html
1245763222.028 43 172.31.3.168 TCP_MISS/204 357 GET http://www.google.de/csi? - DIRECT/74.125.77.103 text/html

1245763227.681 59 172.31.3.168 TCP_MISS/200 3617 GET http://www.google.de/ - DIRECT/74.125.77.103 text/html
1245763227.744 42 172.31.3.168 TCP_MISS/304 267 GET http://www.google.de/intl/de_de/images/logo.gif - DIRECT/74.125.77.103 -
1245763227.772 43 172.31.3.168 TCP_MISS/304 261 GET http://www.google.de/extern_js/f/CgJkZRICZGUrMAo4GywrMA44BSwrMBY4DCwrMBc4AywrMBg4BC wrMCU4yYgBLCswJjgELCswJzgALA/vkQQ1uON6NQ.js - DIRECT/74.125.77.147 text/html
1245763227.799 0 172.31.3.168 TCP_NEGATIVE_HIT/204 274 GET http://clients1.google.de/generate_204 - NONE/- text/html
1245763227.804 40 172.31.3.168 TCP_MISS/304 267 GET http://www.google.de/images/nav_logo4.png - DIRECT/74.125.77.103 -
1245763227.844 45 172.31.3.168 TCP_MISS/204 357 GET http://www.google.de/csi? - DIRECT/74.125.77.147 text/html


Hier meine Konfig:


grep -v ^# squid.conf | grep -v ^$
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 172.31.0.0/16
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
http_access allow localnet
http_access allow localhost
http_access deny all
icp_access deny all
htcp_access deny all
http_port 3128
hierarchy_stoplist cgi-bin ?
cache_dir ufs /var/spool/squid3 500 16 256
access_log /var/log/squid3/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
icp_port 3130
coredump_dir /var/spool/squid3


Woran kann das liegen?

Danke,
Chris

chris_h
23.06.09, 14:32
Update: Hier die store.log mit den nicht gespeicherten google Anfragen


1245763762.455 RELEASE -1 FFFFFFFF AB48AD7C0A238A9C24515D1264DA75E5 302 1245763762 -1 -1 text/html 218/218 GET http://www.google.com/
1245763762.520 RELEASE -1 FFFFFFFF B1D899C689FC9F3514B7AA33D0CDFA31 200 1245763762 -1 1245763762 text/html 3267/3267 GET http://www.google.de/
1245763762.723 RELEASE -1 FFFFFFFF 777212045AAEE226805CED012EE27B54 204 1074714690 -1 180221530 text/html 0/0 GET http://www.google.de/csi?
1245763766.330 RELEASE -1 FFFFFFFF AB3619D40C04B37314A821A7DFEC6019 200 1245763766 -1 1245763766 text/html 3266/3266 GET http://www.google.de/
1245763766.398 RELEASE -1 FFFFFFFF A08F4270380ED79D08212FD972F56EF8 304 1245763766 1149709207 -1 unknown -1/0 GET http://www.google.de/intl/de_de/images/logo.gif
1245763766.423 RELEASE -1 FFFFFFFF D4AFAAC1FC9C08466C1EFE5B284E1934 304 1245763766 -1 -1 text/html -1/0 GET http://www.google.de/extern_js/f/CgJkZRICZGUrMAo4GywrMA44BSwrMBY4DCwrMBc4AywrMBg4BC wrMCU4yYgBLCswJjgELCswJzgALA/vkQQ1uON6NQ.js
1245763766.458 RELEASE -1 FFFFFFFF 94AB9058BCBE243B7962F5F08B176914 304 1245763766 1234323602 -1 unknown -1/0 GET http://www.google.de/images/nav_logo4.png
1245763766.486 RELEASE -1 FFFFFFFF 548D42AC0BFD24DDA70909B9939BB648 204 1074714690 -1 180221530 text/html 0/0 GET http://www.google.de/csi?


Aber weshalb?

chris_h
23.06.09, 14:40
Mistiger IE:
Habe den lokalen Cache auf "Niemals" (Temporäre Internetdateien) gesetzt, und schon werden einige Dateien gespeichert.



1245764085.686 RELEASE -1 FFFFFFFF DBB4CA24767D332C6DD49DA3798BB010 200 1245764085 -1 1245764085 text/html 3266/3266 GET http://www.google.de/
1245764085.826 SWAPOUT 00 0000018E 84D1B43028780A53BF22DCE39AA881DB 200 1245764085 1149709207 1277300085 image/gif 9121/9121 GET http://www.google.de/intl/de_de/images/logo.gif
1245764085.875 RELEASE -1 FFFFFFFF EC8457BA405FB8EC9D9AF03A6306102A 200 1245764085 1214265600 1277164800 text/javascript 5628/5628 GET http://www.google.de/extern_js/f/CgJkZRICZGUrMAo4GywrMA44BSwrMBY4DCwrMBc4AywrMBg4BC wrMCU4yYgBLCswJjgELCswJzgALA/vkQQ1uON6NQ.js
1245764085.943 SWAPOUT 00 0000018F 4A2C05476099133BA0432D1978742076 200 1245764082 1231518902 1277300082 image/x-icon 1150/1150 GET http://www.google.de/favicon.ico
1245764085.975 SWAPOUT 00 00000190 C3A810F8BE07387A808811B84477280B 200 1245764085 1234323602 1277300085 image/png 7121/7121 GET http://www.google.de/images/nav_logo4.png
1245764086.018 RELEASE -1 FFFFFFFF ECEE9DC595DBA33EE94D921738E95580 204 1074714690 -1 180221530 text/html 0/0 GET http://www.google.de/csi?
1245764086.078 RELEASE -1 FFFFFFFF D0122B573A6675CC7032F80153CBD4C6 204 1245763726 -1 -1 text/html 0/0 GET http://clients1.google.de/generate_204


Jetzt würde mich nur interessieren, weshalb die erste Seite (www.google.de) nicht gespeichert wird.
:confused:

Korrektur:
stimmt nicht, hängt nicht mit IE zusammen. Ich hatte mit squidclient die Seite "google.com" geholt, diese wird gespeichert, www.google.com jedoch nicht.
Die Seiten von www.google.com/de werden weiterhin nicht gecacht. Auch nicht durch squidclient.

Unwissenheit bleibt zurück!