- 论坛徽章:
- 0
|
windows平台下的squid。
情况如下:
对图片、js、css等可以缓存。但对于其他的一些文件如rar(一般大小在400k左右,或者更大一点)就缓存不住了。
请各位高手帮忙指点一下。
同样的配置文件,在Unix下是没有问题的。
配置文件如下:
- cache_dir coss c:/squid/cache/coss 5000 block-size=4096 max-size=262144 membufs=100
- coredump_dir c:/squid/cache/logs
- http_port 3189 accel vhost defaultsite=xxx.cache.com
- forwarded_for on
- cache_peer xxx.source.com parent 80 0 no-query originserver name=xxx
- cache_peer_domain xxx xxx.cache.com
- cache_mem 512 MB
- maximum_object_size_in_memory 2 MB
- memory_pools off
- #memory_pools_limit 3584 MB
- #cache_replacement_policy heap GDSF
- #memory_replacement_policy heap GDSF
- negative_ttl 30 second
- cache_log c:/squid/cache/logs/cache.log
- cache_access_log none
- cache_store_log none
- log_icp_queries off
- emulate_httpd_log on
- debug_options ALL, 1
- half_closed_clients off
- client_persistent_connections on
- persistent_request_timeout 15 seconds
- shutdown_lifetime 10 seconds
- visible_hostname cache.xxx.com
- client_db off
- cache_swap_high 80
- cache_swap_low 60
- maximum_object_size 10 MB
- refresh_pattern -i .html 1440 100% 129600 reload-into-ims
- refresh_pattern -i .shtml 1440 100% 129600 reload-into-ims
- refresh_pattern -i .hml 1440 100% 129600 reload-into-ims
- refresh_pattern -i .gif 99999999 99999999% 99999999 ignore-reload
- refresh_pattern -i .jpg 99999999 99999999% 99999999 ignore-reload
- refresh_pattern -i .rar 99999999 99999999% 99999999 ignore-reload
- refresh_pattern -i .swf 99999999 99999999% 99999999 ignore-reload
- refresh_pattern -i .png 99999999 99999999% 99999999 ignore-reload
- refresh_pattern -i .bmp 99999999 99999999% 99999999 ignore-reload
- refresh_pattern -i .js 1440 100% 129600 reload-into-ims
- acl all src 0.0.0.0/0.0.0.0
- acl rangeget req_header Range .*
- acl localhost src 127.0.0.1/255.255.255.255
- acl manager proto cache_object
- http_access deny rangeget
- http_access allow manager localhost
- http_access deny all
- acl PURGE method PURGE
- http_access allow PURGE localhost
- http_access deny PURGE
复制代码
[ 本帖最后由 kedy 于 2008-3-21 19:09 编辑 ] |
|