Follow us on...
Follow us on G+ Follow us on Twitter Follow us on Facebook Watch us on YouTube
Register
Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    Status
    Offline
    zchellpy's Avatar
    Calon Member
    Join Date
    Jul 2009
    Location
    Makassar
    Posts
    85
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0

    berbagi refresh pattern

    refresh pattern adalah salah satu fitur di squid yang bisa kita gunakan untuk memaksa sebuah content tetap dianggap HIT dalam kurun waktu tertentu, kalo salah mohon diluruskan Click here to enlarge

    ane cuman mau berbagi sesama ini juga bukan murni buatan saya tp hasil modif sana-sini dan saya anggap sangat ringan dalam memaksa content tetap dianggap HIT (fresh)

    Spek mesin ane PIII RAM 512 MB Click here to enlarge
    oh ya menurut saya semakin tinggi dan banyak kriteria refresh pattern ini maka harus setara dengan hardware makanya jangan langsung di copas punya nya om2 disini klo spek pc na jauh berbeda, ntar malah makin lelet....

    CMIIW

    Zchellpy

    Code:
    # 1 week = 10080 mins, 1 month = 43200 mins, 3 months = 129600 mins
    
    # pictures & images
    refresh_pattern -i \.(gif|png|jpeg|jpg|bmp|tif|tiff|ico)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private
    refresh_pattern -i \.(xml|html|htm|js|txt|css|php)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
    
    #sound, video & multimedia
    refresh_pattern -i \.(flv|x-flv|mov|avi|qt|mpg|mpeg|swf)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
    refresh_pattern -i \.(wav|mp3|mp4|au|mid)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private
    
    # files
    refresh_pattern -i \.(iso|deb|rpm|zip|tar|tgz|ram|rar|bin|ppt|doc)$ 10080 90% 43200 ignore-no-cache ignore-auth
    refresh_pattern -i \.(zip|gz|arj|lha|lzh)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
    refresh_pattern -i \.(rar|tgz|tar|exe|bin)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
    refresh_pattern -i \.(hqx|pdf|rtf|doc|swf)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
    refresh_pattern -i \.(inc|cab|ad|txt|dll)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
    
    # dynamic content
    refresh_pattern ^http://(.*?)/get_video\? 10080 90% 999999 override-expire ignore-no-cache ignore-private
    refresh_pattern ^http://(.*?)/videoplayback\? 10080 90% 999999 override-expire ignore-no-cache ignore-private
    refresh_pattern -i (get_video\?|videoplayback\?id|videoplayback.*id) 161280 50000% 525948 override-expire ignore-reload
    
    # -- refresh pattern for specific sites -- #
    refresh_pattern ^http://*.jobstreet.com.*/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache
    refresh_pattern ^http://*.indowebster.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
    refresh_pattern ^http://*.21cineplex.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
    refresh_pattern ^http://*.kompas.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.theinquirer.*/.* 720 100% 10080 override-expire ignore-no-cache ignore-auth
    refresh_pattern ^http://*.blogspot.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache
    refresh_pattern ^http://*.photobucket.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.tinypic.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.imageshack.us/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.kaskus.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://www.kaskus.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.detik.*/.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.detiknews.*/*.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://video.liputan6.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://static.liputan6.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.friendster.com/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache ignore-auth
    refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 ignore-reload override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
    refresh_pattern ^http://*.apps.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    #refresh_pattern ^http://creative.ak.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    #refresh_pattern ^http://facebook.poker.zynga.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    #refresh_pattern ^http://facebook2.poker.zynga.com/.* 720 100% 10080 override-expire ignore-reload reload-into-ims ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
    refresh_pattern ^http://*.texas_holdem.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://static-facebook.farmville.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://static.farmville.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    
    refresh_pattern ^http:\/\/\videoxl\.l[0-9]\.facebook.com\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
    refresh_pattern ^http:\/\/\*.channel\.facebook\.com\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
    refresh_pattern ^http:\/\/video\.ak\.facebook.com*\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
    refresh_pattern ^http:\/\/photos-[a-z]\.ak\.fbcdn\.net\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
    refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
    refresh_pattern ^http:\/\/static\.ak\.fbcdn.net*\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
    refresh_pattern ^http:\/\/creative\.ak\.fbcdn.net*\/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
    refresh_pattern ^http:\/\/facebook\.poker\.zynga.com\.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
    refresh_pattern ^http:\/\/\statics\.poker\.static\.zynga\.com\.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
    refresh_pattern ^http:\/\/\*.crowdstar.com*\.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth ignore-must-revalidate store-stale
    refresh_pattern ^http://static.playspoon.com/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://cooking.game.playspoon.com/.* 720 90% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern -i http://[^a-z\.]*onemanga\.com/? 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://media?.onemanga.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.yahoo.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.google.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.forummikrotik.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.l.yimg\.com.*\.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://*.yahoofs.com\.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 129600 100% 129600 ignore-no-cache ignore-no-store reload-into-ims override-expire ignore-must-revalidate store-stale
    refresh_pattern \.(ico|video-stats) 129600 100% 129600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
    refresh_pattern \.etology\? 129600 100% 129600 override-expire ignore-reload ignore-no-cache store-stale
    refresh_pattern galleries\.video(\?|sz) 129600 100% 129600 override-expire ignore-reload ignore-no-cache store-stale
    refresh_pattern \.adtology\? 129600 100% 129600 override-expire ignore-reload ignore-no-cache store-stale
    refresh_pattern ^.*safebrowsing.*google 43200 50% 129600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale
    refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.id) 43200 50% 129600 override-expire ignore-reload store-stale ignore-private negative-ttl=10080
    refresh_pattern ^http://*.ytimg\.com.*\.* 43200 50% 129600 override-expire ignore-reload store-stale
    refresh_pattern kaspersky.*\.(avc|xml|dif|klz|kdc)$ 43200 100% 43200 ignore-reload store-stale
    refresh_pattern kaspersky 1440 50% 43200 ignore-no-cache store-stale
    refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 129600 100% 129600 ignore-no-cache override-expire override-lastmod store-stale
    refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 129600 100% 129600 ignore-no-cache ignore-no-store ignore-reload override-expire store-stale
    refresh_pattern -i \*.speedtest.*com\.* 0 50% 180 override-expire store-stale negative-ttl=0
    
    #default option
    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

  2. The Following 7 Users Say Thank You to zchellpy For This Useful Post:


  3. #2
    Status
    Offline
    unlockmodem's Avatar
    Member
    Join Date
    Dec 2009
    Posts
    114
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    bagi donk sekalian pattern untuk patch game gan, ane punya masalah sama yg ini

  4. #3
    Status
    Offline
    zchellpy's Avatar
    Calon Member
    Join Date
    Jul 2009
    Location
    Makassar
    Posts
    85
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by unlockmodem Click here to enlarge
    bagi donk sekalian pattern untuk patch game gan, ane punya masalah sama yg ini
    klo buat PB dah bisa gan, soal ne kan dah ada :

    Code:
    refresh_pattern -i \.(iso|deb|rpm|zip|tar|tgz|ram|rar|bin|ppt|doc)$ 10080 90% 43200 ignore-no-cache ignore-auth
    refresh_pattern -i \.(rar|tgz|tar|exe|bin)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
    sebenarnya di #General sudah mewakili sebagian besar kebutuhan kita gan, selebih nya hanya spesifik aja buat makin hemat bw...... he he he

    PB ane nga butuh patch lagi gan, tinggal klik 2x dan start udah langsung main dia gan, coba aja...... kalo ada masalah kita bedah sama2 gan....Click here to enlarge

    CMIIW

    Zchellpy
    Last edited by zchellpy; 22-12-2010 at 15:48.

  5. #4
    Status
    Offline
    Joenhid's Avatar
    Member
    Join Date
    Aug 2009
    Posts
    115
    Reviews
    Read 0 Reviews
    Downloads
    2
    Uploads
    0
    Feedback Score
    0
    betul gan.... untuk PB pake settingan squid standard juga sudah cukup, update 1 komputer saja (klo ada update-an baru) yg lain lsg nyedot dari proxy cuma beberapa detik aja update, PB langsung main Click here to enlarge

  6. #5
    Status
    Offline
    kambeeng's Avatar
    Member Senior
    Join Date
    Jan 2008
    Posts
    483
    Reviews
    Read 0 Reviews
    Downloads
    2
    Uploads
    0
    Feedback Score
    0
    Kebanyakan Refresh Pattern Cumi mabok ntar Click here to enlarge

  7. The Following 2 Users Say Thank You to kambeeng For This Useful Post:


  8. #6
    Status
    Offline
    unlockmodem's Avatar
    Member
    Join Date
    Dec 2009
    Posts
    114
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by zchellpy Click here to enlarge
    klo buat PB dah bisa gan, soal ne kan dah ada :

    Code:
    refresh_pattern -i \.(iso|deb|rpm|zip|tar|tgz|ram|rar|bin|ppt|doc)$ 10080 90% 43200 ignore-no-cache ignore-auth
    refresh_pattern -i \.(rar|tgz|tar|exe|bin)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
    sebenarnya di #General sudah mewakili sebagian besar kebutuhan kita gan, selebih nya hanya spesifik aja buat makin hemat bw...... he he he

    PB ane nga butuh patch lagi gan, tinggal klik 2x dan start udah langsung main dia gan, coba aja...... kalo ada masalah kita bedah sama2 gan....Click here to enlarge

    CMIIW

    Zchellpy
    ane bermasalah sama patch game2 megaxus Click here to enlarge, klo pb sih da oh

  9. #7
    Status
    Offline
    zchellpy's Avatar
    Calon Member
    Join Date
    Jul 2009
    Location
    Makassar
    Posts
    85
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by unlockmodem Click here to enlarge
    ane bermasalah sama patch game2 megaxus Click here to enlarge, klo pb sih da oh
    semangat gan Click here to enlarge coba yang general dulu bru spesik kan....

  10. #8
    Status
    Offline
    hr10f's Avatar
    Member
    Join Date
    Mar 2010
    Posts
    119
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Gan, bisa gak untuk Update Hackshield PB juga kena cance.

    soalnya boros banget setiap restart download ulang.

  11. #9
    Status
    Offline
    canon's Avatar
    Calon Member
    Join Date
    Dec 2010
    Location
    Sumut
    Posts
    92
    Reviews
    Read 0 Reviews
    Downloads
    4
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by hr10f Click here to enlarge
    Gan, bisa gak untuk Update Hackshield PB juga kena cance.

    soalnya boros banget setiap restart download ulang.
    kwkwkkwkwk sini biar saya yg setting kan Click here to enlarge

  12. The Following User Says Thank You to canon For This Useful Post:


  13. #10
    Status
    Offline
    zdienos's Avatar
    Forum Guru
    Join Date
    Feb 2010
    Location
    ~/makasar
    Posts
    1,252
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    kalo bisa, dijelasin juga maksud dari option nya, seperti ignore-no-cache, ignore-no-store, ignore-reload, override-expire, store-stale, dan option2 lainnya...

    biar kami2 ini, gak asal copy paste, dan juga sbg pembelajaran untuk ngoprek sendiri...

  14. The Following 3 Users Say Thank You to zdienos For This Useful Post:


  15. #11
    Status
    Offline
    hr10f's Avatar
    Member
    Join Date
    Mar 2010
    Posts
    119
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by canon Click here to enlarge
    kwkwkkwkwk sini biar saya yg setting kan Click here to enlarge
    Wah Keren kl bisa kk, share donk disini, biar semua juga bisa. Forum ini kan tempat berbagi. Dan Segala amal baik pasti ada imbalan dari Nya. Click here to enlarge

  16. #12
    Status
    Offline
    fadhli's Avatar
    Member
    Join Date
    Nov 2008
    Location
    Jakarta, Indonesia
    Posts
    277
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by zdienos Click here to enlarge
    kalo bisa, dijelasin juga maksud dari option nya, seperti ignore-no-cache, ignore-no-store, ignore-reload, override-expire, store-stale, dan option2 lainnya...

    biar kami2 ini, gak asal copy paste, dan juga sbg pembelajaran untuk ngoprek sendiri...
    setuju gan...

    bisa di jelasin ga maksudnya apa gitu yang ignore no cache dan segala macem

  17. #13
    Status
    Offline
    hr10f's Avatar
    Member
    Join Date
    Mar 2010
    Posts
    119
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by jaringanwarnet.com Click here to enlarge
    coba tambahkan ini

    Code:
    refresh_pattern ^http://file.pb.gemscool.com/hackshield/.* 720 100% 4320 override-expire override-lastmod reload-into-ims store-stale
    itu dia tuts untuk cache hackshield PB. maknyos. thank banyak untuk agan @jaringanwarnet.com

    ada yang bisa jelaskan ini gak gan

    720 100% 4320 ????

    biar kita tidak hanya asal copas, tapi juga memahami Click here to enlarge

  18. #14
    Status
    Offline
    a3m-nix's Avatar
    Newbie
    Join Date
    Dec 2009
    Posts
    38
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Bantu2 ah, ini dapet dari forum tetangga, penjelasannya menurut ane mudah dipahami Click here to enlarge
    Mekanisme umum akses internet via web browser utk menguji validitas ('freshness') obyek yg tersimpan adl dg 'menjenguk' obyek tsb ke server asal/sumber dan membandingkannya dg obyek yg sama yg sudah tersimpan di lokal. Jadi memang 'boros' walaupun belum tentu setiap saat obyek tersebut diambil lho, jadi hanya sekedar di'tanyai' saja 'tgl lahirnya' (dan ada beberapa info yg lain yg penting juga, tapi kita fokus di 'umur'nya saja). Dg demikian saran utk teman-teman yg mengelola warnet adl dg memperbesar cache lokal web browser (internet temporary files-nya utk IE dan tidak salah default-nya 10% dari ukuran partisinya ya?). Kenapa kok 'umur' obyek (atau halaman web) diuji? Ya kira2 jawabannya supaya informasinya selalu yg terbaru dan tidak salah (kalau tidak mau yg terbaru dan selalu hanya mengakses yg sudah tersimpan di lokal cache web browser ya di-set saja mode 'offline, dijamin akses akan sangat lebih cepat dan sangat hemat bandwidth, tapi dg konsekuensi ekstrim spt halaman tsb di server sudah dihapus, di sisi klien bakalan tidak tahu lho). Kepingin mjd 'super boros' dg asumsi tanpa Squid atau cache server (bukan lokal cache lho)? ya cache di web browser dimatikan saja shg setiap saat akses internet akan selalu mengambil obyek/halaman langsung dari server asal/sumbernya (tapi irit tempat di hardisk lokal, hanya ini keuntungannya). Jelas dari sisi latensi akan naik drastis. Kira2 sudah bisa dibayangkan ya? hi hi hi ... (makanya beberapa ISP secara diam2 akan men'transparan'kan cache server dg maksud mau membantu ekstrimis yg 'super boros' ini tadi, he he he ... apa hanya sekedar alasan buat mereka menghemat bw ya?)

    Baik skrg masuk peran Squid yg pada dasarnya bersifat 'shared' obyek lokal dalam konteks 1 domain. Secara garis besar mekanisme kerjanya mirip dg 'temporary cache' lokal web browser itu tadi cuma bedanya dipakai bersama dg user yg lain. Yg membedakan dalam kaitannya dg refresh_pattern adl Squid tidak tidak akan 'bertanya' validitas obyek jika ternyata 'umur'nya masih dalam durasi refresh_pattern-nya (default minimum Squid 120 menit atau 2 jam, kalau tidak salah). Jadi jika 'umur' obyek sejak di'lahir'kan belum mencapai 2 jam (utk contoh) maka Squid tidak akan mengakses server asal/sumber utk mengambil info 'umur'nya, dg kata lain obyek akan dianggap masih valid selama durasi waktu tadi (2 jam, misalnya), alias penghematan bw dan peningkatan responsivitas akses.

    Kerugian jika refresh_pattern minimum (min) terlalu lama, misalnya kita set 1 hari, jelas jika ternyata dalam waktu kurang dari 1 hari obyek di ujung server asal berubah, di sisi klien dan Squid-nya masih akan tetap dianggap valid, atau dg kata lain, informasinya salah/tidak akurat, lha halaman web-nya memang tidak sama dg yg di server. Bagi web desainer, contoh saja lho tanpa ada masuk diskriminasi, he he he ... akan tidak suka krn ada kebutuhan 'instan' setiap kali mengubah atau memperbaiki halaman web di ujung server utk keperluan evaluasi (ya jelas tidak akan mau menunggu 1 hari utk melihat perubahannya, ha ha ha ... benar ya?). Jadi intinya min refresh_pattern adalah keterangan kapan waktu 'tersegera' utk menguji validitas obyek. Jika obyek teruji masih valid, Squid akan mengambil dari lokal cache swap-nya, jika obyek sudah tidak valid ya jelas Squid akan mengambil obyek dari server asal. Sekarang masalahnya, bagaimana jika obyek tidak memiliki 'umur' atau info 'tgl lahir'? (tidak semua web itu memiliki info ini lho, tergantung si web programernya).

    Kapan menguji atau mengambil langsung dari server asal obyek 'tak berumur' ini, toh validitasnya tidak bisa diuji? Persentase dan nilai maksimum-lah yg akan menentukan (percentage max). Obyek tanpa umur ini tadi akan dianggap valid oleh Squid selama umur minimumnya 50% dari umur maksimumnya, misalnya. Utk contoh 50% 120 akan berarti obyek tanpa umur valid selama 'umur'nya masih kurang dari 1 jam (50% dari 120 menit). Menurut pengalaman perubahan obyek2 HTTP di internet itu relatif 'lamban', maka kebiasaan saya pribadi demi Squid yg 'agresif' adalah antara 80% s/d 95% dg nilai maksimum hingga 1 bulan (berapa menit ya, sori lupa) dan utk FTP krn semakin jarang berubah bisa lebih lama lagi bisa hingga 3 bulan atau 6 bulan. Tentunya ini tergantung profil pengguna internet anda lho, hanya contoh ekstrim saja. Jadi saat 'umum' maksimum yg sudah didefinisikan di refresh_pattern tercapai, jelas Squid akan 'menjenguk' obyek tsb ke asal servernya. Dg asumsi obyek masih sama maka Squid akan mengambil dari loka cache swap-nya. Jika ternyata obyek sudah berbeda, misalnya dari ukuran file atau saat file obyek tsb berbeda, maka Squid akan mengambil dari server tsb.

    Opsi override-lastmod dan reload-into-ims kepanjangannya adalah 'override last modification' dan 'reload into if-modified-since'. Override-lastmod akan meng'override' perubahan yg terjadi di server asal obyek dg mengabaikan validitasnya hingga minimum refresh_pattern-nya tercapai. Efeknya obyek di lokal Squid bisa berbeda dg obyek yg di server asal. Tapi opsi ini masih mengijinkan si user 'memaksa' menguji validitasnya dg menekan tomboh 'reload' atau 'refresh' di web browser. Opsi ini, kalau saya memandangnya 'agak menipu sedikit', he he he ... Sbg contoh di atas, saya yakin obyek di ujung server sudah berubah walaupun terakhir saya akses baru 10 menit yg lalu (min refresh_pattern=120 menit, misalnya), maka dg menekan tombol 'reload' di browser saya akan bisa menguji validitas obyek tsb dg yg di server asal, dan jika ternyata ya benar obyek tsb sudah berubah, jelas Squid akan langsung mengambil obyek lebih baru dari server asal. Jika saya biarkan saja akses ke obyek tsb tanpa menekan tombol 'reload' di browser maka mekanisme uji validitas mempergunakan min refresh_pattern akan berlaku biasa. (kadang saya punya pemikiran bgmana jika ada mesin klien yg 'usil' membangkitkan 'reload' atau 'refresh' dg intensif sekali shg Squid kewalahan, apakah bisa DoS semacam ini ya?, he he he ... "boys and girls, please don't try this at home", ha ha ha).

    Opsi reload-into-ims akan mengubah atau memodifikasi 'umur' obyek sehingga seakan-akan 'dilahirkan' kembali atau 'direset'. Misalnya saya pernah mengakses suatu obyek suatu obyek 1,5 jam yg lalu, dan saya akses lagi obyek yg sama sekarang, maka 'umur' obyek yg sama ini akan dianggap 'fresh' atau obyek baru dan sudah tidak berumur 1,5 jam yg lalu. Keuntungan opsi ini adalah mekanisme 'penyegaran' umur obyek populer sehingga tidak pernah mjd 'tua' hingga nilai percentage dan maksimumnya tercapai, sekali lagi 'agak menipu', he he he ... Kendali penuh tetap di user utk menekan tombol 'reload' atau 'refresh' jika tidak yakin obyek 'fresh'.

    Jadi kira2 dan sepemahanan saya mekanisme refresh_pattern Squid spt ini. Utk konfigurasi yg 'pas' utk keperluan anda ya silahkan bereksperimen sendiri krn keperluan dan profil user plus kemampuan h/w juga berbeda. Begitu saja, semoga bermanfaat dan masuk akal ya, yg paling penting tidak menambah kebingungan, hi hi hi ....
    By: mas dani dari di topik squid performance (yang udah sering maen proxy biasanya tau ne topik, banyak suhu ui) Click here to enlarge

  19. The Following User Says Thank You to a3m-nix For This Useful Post:


  20. #15
    Status
    Offline
    chu_please's Avatar
    Member
    Join Date
    Feb 2012
    Posts
    203
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by kambeeng Click here to enlarge
    Kebanyakan Refresh Pattern Cumi mabok ntar Click here to enlarge
    cumi dh mabok repot om..Click here to enlarge...

 

 
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [ask] Reconnect selalu minta refresh
    By nunukan in forum Beginner Basics
    Replies: 32
    Last Post: 12-07-2012, 14:28
  2. [SHARE] Squid Refresh Pattern
    By opiceboy in forum Linux Support
    Replies: 16
    Last Post: 24-07-2011, 01:56
  3. Berbagi : Foto Komputer
    By chika in forum Chit Chat
    Replies: 83
    Last Post: 16-01-2011, 10:28
  4. pegel tekan F5 (refresh Facebook)
    By putra_maiwa in forum Chit Chat
    Replies: 24
    Last Post: 14-05-2010, 01:25
  5. Help Login Facebook minta Refresh trus
    By mbahdukun in forum General Networking
    Replies: 2
    Last Post: 09-10-2009, 11:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •