Hello ,
Let me show you the logs, I just requested ONE video:
2009-05-07 18:41:38,460 30558 10.0.0.146 - REQUEST - http://v13.lscache1.googlevideo.com/videoplayback?sparams=id%2Cexpire%2C...
2009-05-07 18:41:38,460 30558 10.0.0.146 a50b4a9c31a1c669 URL_HIT YOUTUBE http://v13.lscache1.googlevideo.com/videoplayback?sparams=id%2Cexpire%2C...
2009-05-07 18:41:38,461 30558 10.0.0.146 a50b4a9c31a1c669 CACHE_MISS YOUTUBE Requested video was not found in cache.
2009-05-07 18:41:38,463 30558 10.0.0.146 a50b4a9c31a1c669 NEW_URL YOUTUBE http://v13.lscache1.googlevideo.com/videoplayback?sparams=id%2Cexpire%2C...
2009-05-07 18:41:39,011 30558 10.0.0.146 - REQUEST - http://v5.cache2.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%...
2009-05-07 18:41:39,011 30558 10.0.0.146 a50b4a9c31a1c669 URL_HIT YOUTUBE http://v5.cache2.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%...
2009-05-07 18:41:39,011 30558 10.0.0.146 a50b4a9c31a1c669 CACHE_MISS YOUTUBE Requested video was not found in cache.
2009-05-07 18:41:39,014 30558 10.0.0.146 a50b4a9c31a1c669 NEW_URL YOUTUBE http://v5.cache2.googlevideo.com/videoplayback?sparams=id%2Cexpire%2Cip%...
2009-05-07 18:43:04,422 30567 10.0.0.146 a50b4a9c31a1c669 SCHEDULED YOUTUBE Video scheduled for download.
2009-05-07 18:44:22,132 27818 10.0.0.146 a50b4a9c31a1c669 DOWNLOAD YOUTUBE 3320055 Video was downloaded and cached.
As you can notice, one youtube video results in 2 requests, which make hit_threshold parameter useless for youtube. What can I do ? It is eating all my bandwidth !
Regards,
Mr Lejeune
EDIT: In addition to that, if the user seeks a video while caching (youporn for instance), it triggers one more request each time, that makes 1 initial requests + one more requests each time the video is seeked, which make hit_threshold a little bit tricky.
