[squid-users] Caching YouTube content

From: Vikram Goyal <vikigoyal_at_gmail.com>
Date: Thu, 1 Sep 2011 15:16:19 +0530

Hello Friends,

I needed some help from you.

Is it possible to cache YouTube content on squid and recall it later
from squid, like for example reloading the YouTube link in the browser.
At the moment the whole video redownloads but I want it to to be pulled
from squid cache.

Also is there some kind of cache browser for squid.

Below is my squid conf:
--------------------------------------------------------------------------
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl localnet src 123.456.789.000/32 # My Public Static IP
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl PURGE method PURGE
http_access allow PURGE localhost
http_access deny PURGE
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost
http_access deny all
http_port 127.0.0.1:3128 transparent
hierarchy_stoplist cgi-bin ?
cache_dir ufs /var/spool/squid 9900 64 768
coredump_dir /var/spool/squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
refresh_pattern repodata/.*$ 0 0% 0
refresh_pattern images/.*$ 0 0% 0
refresh_pattern .*.rpm$ 0 0% 0
refresh_pattern .*.drpm$ 0 0% 0
visible_hostname myhost.localdomain
shutdown_lifetime 1 seconds
maximum_object_size_in_memory 128 KB
maximum_object_size 786432 KB
detect_broken_pconn on
client_db off
pipeline_prefetch on
no_cache deny localhost
--------------------------------------------------------------------------

Thanks!

-- 
vikram...
         ||||||||
         ||||||||
^^'''''^^||root||^^^'''''''^^
        // \\   ))
       //(( \\// \\
      // /\\ ||   \\
     || / )) ((    \\
-- 
If I were to walk on water, the press would say I'm only doing it
because I can't swim.
		-- Bob Stanfield
-- 
  *
 ~|~
  =
Received on Thu Sep 01 2011 - 09:46:43 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 01 2011 - 12:00:03 MDT