프로그램 사용/squid2019. 2. 12. 11:09

squid.conf에 이런게 있어서 무슨 의미인가 보는 중

refresh_pattern ^ftp:           1440    20%     10080

refresh_pattern ^gopher:        1440    0%      1440

refresh_pattern -i (/cgi-bin/|\?) 0     0%      0

refresh_pattern .               0       20%     4320 


봐도 모르겠다!!!!

usage: refresh_pattern [-i] regex min percent max [options]


By default, regular expressions are CASE-SENSITIVE.  To make

them case-insensitive, use the -i option.


'Min' is the time (in minutes) an object without an explicit

expiry time should be considered fresh. The recommended

value is 0, any higher values may cause dynamic applications

to be erroneously cached unless the application designer

has taken the appropriate actions.


'Percent' is a percentage of the objects age (time since last

modification age) an object without explicit expiry time

will be considered fresh.


'Max' is an upper limit on how long objects without an explicit

expiry time will be considered fresh. The value is also used

to form Cache-Control: max-age header for a request sent from

Squid to origin/parent.


options: override-expire

override-lastmod

reload-into-ims

ignore-reload

ignore-no-store

ignore-private

max-stale=NN

refresh-ims

store-stale

[링크 : http://www.squid-cache.org/Doc/config/refresh_pattern/]


기본적인 걸 캐싱하지 않도록 되어 있는데 이걸 60분으로 바꾸니 먼가 되긴 하는 듯?

#refresh_pattern .              0       20%     4320

refresh_pattern .               60      20%     4320 

[링크 : http://etutorials.org/.../Chapter+7.+Disk+Cache+Basics/7.7+refresh_pattern/]

'프로그램 사용 > squid' 카테고리의 다른 글

squid cache 정책  (0) 2019.02.13
squid log format  (0) 2019.02.13
squid refresh_pattern  (0) 2019.02.12
squid cachemgr  (0) 2019.02.12
howto make squid as https proxy  (0) 2019.02.11
ssl_crtd : The ssl_crtd helpers are crashing too rapidly, need help!  (0) 2019.02.11
Posted by 구차니

댓글을 달아 주세요