Cache youtube with Squid+cachevideos

Here is a log of caching of videos from youtube with Squid and cachevideos:
First time

2009-06-27 21:13:45,852 4295 10.100.100.2 - REQUEST - http://v17.lscache5.googlevideo.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=34&ipbits=0&signature=25801F56E31BE2A4F6A7BD9BD73CBEAFDCE9B386.1EB2C6651BE854AA5FA600DF93BF2A04C066E3F0&sver=3&expire=1246154400&key=yt1&factor=1.25&burst=40&id=c593f35e8f7b9ba4
2009-06-27 21:13:45,852 4295 10.100.100.2 c593f35e8f7b9ba4 URL_HIT YOUTUBE http://v17.lscache5.googlevideo.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=34&ipbits=0&signature=25801F56E31BE2A4F6A7BD9BD73CBEAFDCE9B386.1EB2C6651BE854AA5FA600DF93BF2A04C066E3F0&sver=3&expire=1246154400&key=yt1&factor=1.25&burst=40&id=c593f35e8f7b9ba4
2009-06-27 21:13:45,853 4295 10.100.100.2 c593f35e8f7b9ba4 CACHE_MISS YOUTUBE Requested video was not found in cache.
2009-06-27 21:13:45,859 4295 10.100.100.2 c593f35e8f7b9ba4 NEW_URL YOUTUBE http://v17.lscache5.googlevideo.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=34&ipbits=0&signature=25801F56E31BE2A4F6A7BD9BD73CBEAFDCE9B386.1EB2C6651BE854AA5FA600DF93BF2A04C066E3F0&sver=3&expire=1246154400&key=yt1&factor=1.25&burst=40&id=c593f35e8f7b9ba4
2009-06-27 21:13:45,868 4300 10.0.0.10 c593f35e8f7b9ba4 **SCHEDULED YOUTUBE Video scheduled for download.**2009-06-27 21:16:12,011 7972 10.0.0.10 c593f35e8f7b9ba4 DOWNLOAD YOUTUBE 4122115 Video was downloaded and cached.
second time the same video

2009-06-27 21:20:15,467 4295 10.0.0.10 - REQUEST - http://v17.lscache5.googlevideo.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=34&ipbits=0&signature=25801F56E31BE2A4F6A7BD9BD73CBEAFDCE9B386.1EB2C6651BE854AA5FA600DF93BF2A04C066E3F0&sver=3&expire=1246154400&key=yt1&factor=1.25&burst=40&id=c593f35e8f7b9ba4
2009-06-27 21:20:15,467 4295 10.0.0.10 c593f35e8f7b9ba4 URL_HIT YOUTUBE http://v17.lscache5.googlevideo.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=34&ipbits=0&signature=25801F56E31BE2A4F6A7BD9BD73CBEAFDCE9B386.1EB2C6651BE854AA5FA600DF93BF2A04C066E3F0&sver=3&expire=1246154400&key=yt1&factor=1.25&burst=40&id=c593f35e8f7b9ba4
2009-06-27 21:20:15,468 4295 10.0.0.10 c593f35e8f7b9ba4 **CACHE_HIT YOUTUBE Video was served from cache.**2009-06-27 21:20:15,468 4295 10.0.0.10 c593f35e8f7b9ba4 NEW_URL YOUTUBE 303:http://10.100.100.2/videocache/youtube/c593f35e8f7b9ba4?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=34&ipbits=0&signature=25801F56E31BE2A4F6A7BD9BD73CBEAFDCE9B386.1EB2C6651BE854AA5FA600DF93BF2A04C066E3F0&sver=3&expire=1246154400&key=yt1&factor=1.25&burst=40&id=c593f35e8f7b9ba4

:question:

Hi Forum,

I did the same thing but the question is how do squid know its cached? Squid detect it as MISS, Although the video object is cached. Unless Squid detect it as HIT , ZPH doesn’t work. Any help?

Regards

A4ubd.