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

From: bijayant kumar <bijayant4u_at_yahoo.com>
Date: Fri, 14 Nov 2008 01:02:33 -0800 (PST)

I have configured as explained in
this article(http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube/Discussion), but I am not sure that streaming media is being cached or
not. My cause of suspicion is based on the below log excerpts:
I am trying with this file
http://www.youtube.com/watch?v=WFOjvZaXeQ8

/var/log/squid/access.log

1552 192.168.99.23 TCP_MISS/200 19289 GET http://www.youtube.com/watch? - DIRECT/208.117.236.72 text/html
http://i4.ytimg.com/vi/wseBgcexR_E/default.jpg - DIRECT/209.85.171.118 image/jpeg
1196 192.168.99.23 TCP_MISS/200 5708 GET http://i2.ytimg.com/vi/QrSgaZyal-0/default.jpg - DIRECT/209.85.171.118 image/jpeg
439 192.168.99.23 TCP_MISS/303 607 GET http://www.youtube.com/get_video? - DIRECT/208.117.236.72 text/html
91 192.168.99.23 TCP_HIT/200 1134908 GET
 http://v8.cache.googlevideo.com/get_video? - NONE/- video/flv
665 192.168.99.23 TCP_MISS/204 337 GET http://video-stats.video.google.com/s? - DIRECT/66.249.89.127 text/html
791 192.168.99.23 TCP_MISS/200 5225 GET http://www.youtube.com/set_awesome? - DIRECT/208.117.236.72 text/xml

/var/log/squid/store.log

 RELEASE
-1 FFFFFFFF 27A4BF0FD30BB5AD58C059B14EB572B2 200 1226651030 -1 41629446
text/xml 4564/4564 GET
http://www.youtube.com/set_awesome?&video_id=spIYQosBkGI&m=&l=28&t=null&w=0.826178571428571

RELEASE
-1 FFFFFFFF 682D8400CD1B9FAC0063B1DEAC521825 302 1226651104 -1 41629446
text/html -1/0 GET http://www.youtube.com/watch?v=spIYQosBkGI

RELEASE
-1 FFFFFFFF AFBB384E90F0A636BA732AC842100B3A 302 1226651157 -1 41629446
text/html -1/0 GET http://www.youtube.com/watch?v=spIYQosBkGI

RELEASE
-1 FFFFFFFF 12082C1BF8BD1BB579B4283F1AA39D72 200 1226651254 -1 41629446
text/html 18587/18587 GET http://www.youtube.com/watch?v=spIYQosBkGI

SWAPOUT
00 0000053C 287CFE14B5B1B819D045FDF541050BDE 200 1226651255 -1
1226651855 text/html 9335/9335 GET
http://sb.google.com/safebrowsing/update?client=navclient-auto-ffox&appver=2.0.0.16&version=goog-white-domain:1:481,goog-white-url:1:371,goog-black-url:1:25401,goog-black-enchash:1:63897

SWAPOUT
00 0000053D 57616EE8629371E6EDBB0ED7B7661FD4 200 1226651256 1226643292
1226752056 image/jpeg 4695/4695 GET
http://i4.ytimg.com/vi/wseBgcexR_E/default.jpg

SWAPOUT 00
0000053E ADEA3535CEAB72C1DC7F13FAEC39B0FA 200 1226651256 1226646955
1226752056 image/jpeg 5264/5264 GET
http://i2.ytimg.com/vi/QrSgaZyal-0/default.jpg

RELEASE -1 FFFFFFFF 8F439F6C4512276F842949987B1225AB 303 1226651256 -1 41629446 text/html -1/0 GET
 http://www.youtube.com/get_video?video_id=spIYQosBkGI&t=OEgsToPDskJR7PfAC8Z2saIPuZmRVg6U&el=detailpage&ps=

RELEASE
-1 FFFFFFFF 4F7C119B4A258E45961A01E96DE0BA67 200 1226651280 -1 41629446
text/xml 4564/4564 GET
http://www.youtube.com/set_awesome?&video_id=spIYQosBkGI&m=&l=28&t=null&w=0.826178571428571

Based on above logs I doubt that they are being cached. And from the command squidclient i am getting

bijayant@bijayant ~ $ squidclient http://www.youtube.com/watch?v=WFOjvZaXeQ8
HTTP/1.0 302 Moved Temporarily
Date: Fri, 14 Nov 2008 08:42:32 GMT
Server: Apache
Set-Cookie: use_hitbox=72c46ff6cbcdb7c5585c36411b6b334edAEAAAAw; path=/; domain=.youtube.com
Set-Cookie: PREF=f1=41000000&gl=IN&hl=en; path=/; domain=.youtube.com; expires=Mon, 12-Nov-2018 08:42:32 GMT
Set-Cookie: GEO=f08ceb957972861b3045fa1cd42e3d57cwwAAAAySU47XJikAPg5HUk=; path=/; domain=.youtube.com;
 expires=Sun, 16-Nov-2008 08:42:32 GMT
Expires: Tue, 27 Apr 1971 19:44:06 EST
Cache-Control: no-cache
Location: http://in.youtube.com/watch?v=WFOjvZaXeQ8
Content-Type: text/html; charset=utf-8
X-Cache: MISS from bijayant.kavach.blr
X-Cache-Lookup: MISS from bijayant.kavach.blr:3128
Via: 1.1 bijayant.kavach.blr:3128 (squid/2.7.STABLE4)
Connection: close

Please guide/show me a direction so that I can able to do so.
I have done exactly the same settings as explained in the mentioned documents that is

http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube/Discussion

Please help me out.

Thanks & Regards,
Bijayant Kumar
Received on Fri Nov 14 2008 - 09:02:43 MST

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