vitorsantana
(usa Ubuntu)
Enviado em 13/11/2008 - 10:24h
Bom dia galera
to com problemas com o cahce no squid
ex:
se eu baixo um arquivo agora e na mesma hora tentar baixar de novo ele deveria pegar do cache.. mais não estou conseguindo.
ele baixa tudo novamente.
afinal assim ele não esta funcionando como cache.
meu squid.conf
http_port 2709 transparent
visible_hostname behrox
cache_mem 256 MB
maximum_object_size_in_memory 128 KB
maximum_object_size 1024 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 6144 16 256
cache_access_log /var/log/squid/access.log
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
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 Safe_ports port 901 # swat
acl Safe_ports port 1025-65535 # portas altas
acl purge method PURGE
acl CONNECT method CONNECT
#ACL CBS
acl msnvitor src 192.168.254.1
acl sitesbanidos url_regex -i "/etc/squid/sitesbanidos"
#acl html rep_mime_type text/html
#reply_body_max_size 0 allow html
#reply_body_max_size 10485760 allow all
acl LoginMSN dst login.live.com by4.omega.contacts.msn.com nexus.passport.com loginnet.passport.com
acl GatewayMSN url_regex http.messenger.*.com messenger gateway.dll
acl NOCACHE urlpath_regex src "/etc/squid/nocache"
acl sitesliberados url_regex -i "/etc/squid/sitesliberados"
acl redelocal src 192.168.254.0/24
acl ipfull src "/etc/squid/ipfull"
#PERMISSÃO DE ACESSO
http_access allow msnvitor
http_access deny sitesbanidos
no_cache allow NOCACHE
http_access allow CONNECT LoginMSN
http_access deny GatewayMSN
http_access allow ipfull
http_access allow sitesliberados
http_access deny redelocal
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all