Re: [squid-users] squid cant cache flv (youtube)

From: Chris Robertson <crobertson@dont-contact.us>
Date: Fri, 24 Aug 2007 11:29:03 -0800

Kris wrote:
> I planned to cache youtube flv using squid
>
> my squid :
>
> root@Cache:~# squid -v
> Squid Cache: Version 2.6.STABLE13
>
> my conf was like this :
>
> acl video_cache dstdomain .youtube.com .google.com .llnwd.net
> .dailymotion.com .friendster.com .googlevideo.com
> acl video_regex urlpath_regex get_video
> cache allow video_cache
> cache allow video_regex
>
> hierarchy_stoplist cgi-bin ?
> acl QUERY urlpath_regex cgi-bin \?
> cache deny QUERY
>
> cache_mem 1024 MB
> cache_swap_low 90
> cache_swap_high 95
> maximum_object_size 50 MB
> minimum_object_size 1 KB
> maximum_object_size_in_memory 1 MB
>
> i tried to access one of flv video in youtube but i never hot TCP_HIT,
> it always appear TCP_MISS (also refresh page by press F5).
>
> access.log was like this :
>
> [24/Aug/2007:18:47:45 +0700] "GET http://74.125.15.24/get_video?
> HTTP/1.1" 200 1176075 TCP_MISS:DIRECT
>
> then i refresh page by press F5
>
> [24/Aug/2007:18:48:15 +0700] "GET http://74.125.15.24/get_video?
> HTTP/1.1" 200 1176075 TCP_MISS:DIRECT
>
> any clue ?

Turning off strip_query_terms and turning on log_mime_hdrs showed the
following response headers in access.log (for
http://74.125.15.33/get_video?video_id=FJug16NlqPk):

HTTP/1.1 200 OK
Pragma: no-cache
Expires: Sat, 17 Jan 1981 8:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: video/flv
Content-Length: 989350
Connection: close

They are serious about making sure this content is not cached.

Chris
Received on Fri Aug 24 2007 - 13:29:15 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Sep 01 2007 - 12:00:03 MDT