LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Caching youtube squid3 (https://www.linuxquestions.org/questions/linux-software-2/caching-youtube-squid3-862000/)

athreyavc 02-11-2011 04:53 AM

Caching youtube squid3
 
Hi,

I am working on the Squid3.

Can we cache youtube videos with squid3.

from the below link,

http://wiki.squid-cache.org/ConfigEx...ontent/YouTube

Some private modifications of squid have apparently achieved youtube.com caching. However, there is presently no simple solution available to the general public.
To cache youtube.com files, you will need to enable caching of dynamic content and some other measures, which technically break the HTTP standards.
***SECURITY NOTE:*** Some of the required configuration (quick_abort_min + large maximum_object_size) requires collapsed-forwarding feature to protect from high bandwidth consumption and possible cache DDoS attacks. Squid-3.0 does not have that feature at this time. Squid-2.7 is recommended for use with these settings.


Did anyone succeed in doing the caching with Squid3?

Thanks and Regards,

timetraveler 03-10-2011 10:29 PM

It is telling you the features needed to do this.

quick_abort_min and large maximum_object_size and requires collapsed-forwarding

What happened when you tried them?

agentbuzz 03-11-2011 03:10 PM

caching YouTube videos
 
I am on 3.1.11. Here is what the release notes say for 3.1.11 about the directives needed:
Code:

collapsed_forwarding
    Not yet ported from 2.6
storeurl_access
    Not yet ported from 2.7
storeurl_rewrite_children
    Not yet ported from 2.7
storeurl_rewrite_concurrency
    Not yet ported from 2.7
storeurl_rewrite_program
    Not yet ported from 2.7

If you put the code referred to in the squid blog article in squid.conf, here's what happens:
Code:

:~$ sudo /etc/init.d/squid restart
 * Restarting Squid HTTP proxy squid
2011/03/11 13:58:30| cache_cf.cc(364) parseOneConfigFile: squid.conf:104 unrecognized: 'collapsed_forwarding'
2011/03/11 13:58:30| cache_cf.cc(364) parseOneConfigFile: squid.conf:105 unrecognized: 'storeurl_ [fail]

It can't be done, unless you re-write squid 3.

athreyavc 03-14-2011 03:07 AM

Hi,

Thanks for the reply.

Yes, I have tried those options, but collapsed_forwarding is new to me.

Some blogs said, it can be done with the Squid 2.7, I am tried that too, but still no luck.

Thanks and Regards,


All times are GMT -5. The time now is 01:32 AM.