Re: [squid-users] Not able to cache Streaming media

From: bijayant kumar <bijayant4u_at_yahoo.com>
Date: Thu, 13 Nov 2008 21:37:04 -0800 (PST)

Thanks For the reply Johan. I have modified according to your suggestion, but no luck.

Bijayant Kumar

--- On Fri, 14/11/08, johan firdianto <johanfirdi_at_gmail.com> wrote:

> From: johan firdianto <johanfirdi_at_gmail.com>
> Subject: Re: [squid-users] Not able to cache Streaming media
> To: bijayant4u_at_yahoo.com
> Cc: "squid users" <squid-users_at_squid-cache.org>
> Date: Friday, 14 November, 2008, 7:07 AM
> Dear Kumar,
>
> youtube already changed their url pattern.
> before is get_video?video_id
> now changed to
> get_video.*video_id
> you should update part of refresh pattern and
> store_url_rewrite.
>
> Johan
>
> On Thu, Nov 13, 2008 at 7:29 PM, bijayant kumar
> <bijayant4u_at_yahoo.com> wrote:
> > Hi,
> >
> > I am using Squid-2.7.STABLE4 on Gentoo Box. I am
> trying to cache the youtube's video but not able to do
> so. I have followed the links
> >
> http://www.squid-cache.org/mail-archive/squid-users/200804/0420.html
> > http://wiki.squid-cache.org/Features/StoreUrlRewrite.
> > According to these urls I tuned my squid.conf as
> >
> > acl youtube dstdomain .youtube.com .googlevideo.com
> .video.google.com .video.google.com.au .rediff.com
> > acl youtubeip dst 74.125.15.0/24
> > acl youtubeip dst 208.65.153.253/32
> > acl youtubeip dst 209.85.173.118/32
> > acl youtubeip dst 64.15.0.0/16
> > cache allow all
> > acl store_rewrite_list dstdomain mt.google.com
> mt0.google.com mt1.google.com mt2.google.com
> > acl store_rewrite_list dstdomain mt3.google.com
> > acl store_rewrite_list dstdomain kh.google.com
> kh0.google.com kh1.google.com kh2.google.com
> > acl store_rewrite_list dstdomain kh3.google.com
> > acl store_rewrite_list dstdomain kh.google.com.au
> kh0.google.com.au kh1.google.com.au
> > acl store_rewrite_list dstdomain kh2.google.com.au
> kh3.google.com.au
> >
> > acl store_rewrite_list dstdomain .youtube.com
> .rediff.com .googlevideo.com
> > storeurl_access allow store_rewrite_list
> > storeurl_access deny all
> > storeurl_rewrite_program
> /usr/local/bin/store_url_rewrite
> > quick_abort_min -1
> > ##hierarchy_stoplist cgi-bin ?
> > maximum_object_size_in_memory 1024 KB
> > cache_dir ufs /var/cache/squid 2000 16 256
> > maximum_object_size 4194240 KB
> > refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
> > refresh_pattern -i \.flv$ 10080 90%
> 999999 ignore-no-cache override-expire ignore-private
> > refresh_pattern get_video\?video_id 10080
> 90% 999999 ignore-no-cache override-expire
> ignore-private
> > refresh_pattern youtube\.com/get_video\?
> 10080 90% 999999 ignore-no-cache override-expire
> ignore-private
> > refresh_pattern . 999999 100% 999999
> override-expire override-lastmod ignore-reload
> ignore-no-cache ignore-private ignore-auth
> >
> > But when i am accessing any video of Youtube, I always
> get TCP_MISS/200 in access.log and in store.log
> > 1226578788.877 RELEASE -1 FFFFFFFF
> C51CDFBB595CB7105BB2874BE5C3DFB0 303 1226578824 -1
> 41629446 text/html -1/0 GET
> http://www.youtube.com/get_video?video_id=tpQjv14-8yE&t=OEgsToPDskKT1_ZEE8QGepXgMQ1i-_eY&el=detailpage&ps=
> > 1226578813.447 SWAPOUT 00 00000314
> 7CAD15F0E273355B5D18A2B6F8D1871F 200 1226578825 1186657973
> 1226582425 video/flv 2553595/2553595 GET
> http://v16.cache.googlevideo.com/get_video?origin=sjc-v176.sjc.youtube.com&video_id=tpQjv14-8yE&ip=59.92.192.176&signature=CF0D875938C7073200F62243A6FF964C54749A5F.E443F5A221D07EF10EB8C29233A33ACC45F8DD50&sver=2&expire=1226600424&key=yt4&ipbits=2
> > There are lots of "RELEASE" and very few
> almost negligible "SWAPOUT" in the logs.
> > I repeated this exercise many times but always getting
> the same result that is TCP_MISS/200 in access.log.
> >
> > Please suggest me am i missing some thing or I need to
> add some more thing in squid.conf.
> >
> > Bijayant Kumar
> >
> >
> > Get your preferred Email name!
> > Now you can @ymail.com and @rocketmail.com.
> > http://mail.promotions.yahoo.com/newdomains/aa/
> > New Email addresses available on Yahoo! Get the Email name you&#39;ve always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/
Received on Fri Nov 14 2008 - 05:37:11 MST

This archive was generated by hypermail 2.2.0 : Fri Nov 14 2008 - 12:00:03 MST