亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3723 | 回復(fù): 4
打印 上一主題 下一主題

[proxy] 請教:squid對稍大點的文件緩存不住[已解決] [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2008-03-19 10:58 |只看該作者 |倒序瀏覽
windows平臺下的squid。

情況如下:
對圖片、js、css等可以緩存。但對于其他的一些文件如rar(一般大小在400k左右,或者更大一點)就緩存不住了。
請各位高手幫忙指點一下。
同樣的配置文件,在Unix下是沒有問題的。

配置文件如下:

  1. cache_dir coss c:/squid/cache/coss 5000 block-size=4096 max-size=262144 membufs=100
  2. coredump_dir c:/squid/cache/logs

  3. http_port 3189 accel vhost defaultsite=xxx.cache.com
  4. forwarded_for on


  5. cache_peer xxx.source.com parent 80 0 no-query originserver name=xxx
  6. cache_peer_domain xxx xxx.cache.com

  7. cache_mem 512 MB
  8. maximum_object_size_in_memory 2 MB
  9. memory_pools off
  10. #memory_pools_limit 3584 MB
  11. #cache_replacement_policy heap GDSF
  12. #memory_replacement_policy heap GDSF

  13. negative_ttl 30 second

  14. cache_log c:/squid/cache/logs/cache.log
  15. cache_access_log none
  16. cache_store_log none
  17. log_icp_queries off
  18. emulate_httpd_log on
  19. debug_options ALL, 1
  20. half_closed_clients off
  21. client_persistent_connections on
  22. persistent_request_timeout 15 seconds
  23. shutdown_lifetime 10 seconds
  24. visible_hostname cache.xxx.com
  25. client_db off

  26. cache_swap_high 80
  27. cache_swap_low 60
  28. maximum_object_size 10 MB

  29. refresh_pattern -i .html 1440 100% 129600 reload-into-ims
  30. refresh_pattern -i .shtml 1440 100% 129600 reload-into-ims
  31. refresh_pattern -i .hml 1440 100% 129600 reload-into-ims
  32. refresh_pattern -i .gif 99999999 99999999% 99999999 ignore-reload
  33. refresh_pattern -i .jpg 99999999 99999999% 99999999 ignore-reload
  34. refresh_pattern -i .rar 99999999 99999999% 99999999 ignore-reload
  35. refresh_pattern -i .swf 99999999 99999999% 99999999 ignore-reload
  36. refresh_pattern -i .png 99999999 99999999% 99999999 ignore-reload
  37. refresh_pattern -i .bmp 99999999 99999999% 99999999 ignore-reload
  38. refresh_pattern -i .js 1440 100% 129600 reload-into-ims

  39. acl all src 0.0.0.0/0.0.0.0
  40. acl rangeget req_header Range .*
  41. acl localhost src 127.0.0.1/255.255.255.255
  42. acl manager proto cache_object
  43. http_access deny rangeget
  44. http_access allow manager localhost
  45. http_access deny all

  46. acl PURGE method PURGE
  47. http_access allow PURGE localhost
  48. http_access deny PURGE
復(fù)制代碼

[ 本帖最后由 kedy 于 2008-3-21 19:09 編輯 ]

論壇徽章:
0
2 [報告]
發(fā)表于 2008-03-19 13:35 |只看該作者

回復(fù) #1 kedy 的帖子

可以顯式的設(shè)定 maximum_object_size 試試。

Description :
Defines maximum size for objects to be stored in the disk
Build Option :Default
Usage :maximum_object_size size
Default object_size :4096 KB

論壇徽章:
0
3 [報告]
發(fā)表于 2008-03-19 17:57 |只看該作者
原帖由 xufengnju 于 2008-3-19 13:35 發(fā)表
可以顯式的設(shè)定 maximum_object_size 試試。

Description :
Defines maximum size for objects to be stored in the disk
Build Option :Default
Usage :maximum_object_size size
Default object_si ...


maximum_object_size 10 MB

這個已經(jīng)設(shè)置了的,但就是無效。

論壇徽章:
0
4 [報告]
發(fā)表于 2008-03-19 18:15 |只看該作者
maximum_object_size調(diào)小一點看看。

論壇徽章:
0
5 [報告]
發(fā)表于 2008-03-21 19:09 |只看該作者
唉,我的榆木腦袋,沒法說了。
不是緩存不住,是我點擊下載,然后沒下載完就直接停掉了,這樣就緩存不住了。
如果下載完然后再看,就緩存住了。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP