LINUX.ORG.RU

squid кэширует ли?


0

0

привет всем.
собственно сабж, чота я не уверен что squid отдаёт что-либо из кэша, а кэш растёт, как проверить?
squid.conf:

http_port 192.168.1.2:3128
icp_port 0
#acl QUERY urlpath_regex cgi-bin /?
#no_cache deny QUERY
cache_mem 16 MB
cache_dir ufs /var/spool/squid 200 16 256
maximum_object_size 1024 KB
shutdown_lifetime 5
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
pid_filename /var/run/squid.pid
cache_effective_user proxy
cache_effective_group proxy

acl home src 192.168.1.0/255.255.255.0
acl all src 0.0.0.0/0.0.0.0
#acl prox proxy_auth REQUIRED
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl SMTP port 25
acl Safe_ports port 25
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563
acl Safe_ports port 777
acl CONNECT method CONNECT
acl banners url_regex "/etc/squid/banners.acl"

http_access deny home banners
http_access deny all !home
http_access allow home
http_access deny !Safe_ports
http_access deny all
acl FTP proto FTP
always_direct allow FTP
refresh_pattern -i \.gif$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i \.png$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i \.jpg$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i \.jpeg$ 43200 100% 43200 override-lastmod override-expire

★★★★★

grep -cF HIT /var/log/squid/access.log # количество попаданий в кеш
grep -cFv HIT /var/log/squid/access.log # количество промахов

P.S. По поводу сквида не эксперт, так что могу ошибаться.

Deleted
()
Ответ на: комментарий от sin_a

спасибо, тож нарыл, почитаю

S_Paul ★★★★★
() автор топика
Ответ на: комментарий от S_Paul

>интернеты больше не кешируются?! *..нулся в обморок*

а expires на что? правильно. чтоб страница каждый раз грузилась именно с сервака. тоже самое делается и с картинками.

scaldov ★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.