-   Linux - Software (
-   -   Caching youtube squid3 (

athreyavc 02-11-2011 04:53 AM

Caching youtube squid3

I am working on the Squid3.

Can we cache youtube videos with squid3.

from the below link,

Some private modifications of squid have apparently achieved caching. However, there is presently no simple solution available to the general public.
To cache 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:

    Not yet ported from 2.6
    Not yet ported from 2.7
    Not yet ported from 2.7
    Not yet ported from 2.7
    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:

:~$ sudo /etc/init.d/squid restart
 * Restarting Squid HTTP proxy squid
2011/03/11 13:58:30| parseOneConfigFile: squid.conf:104 unrecognized: 'collapsed_forwarding'
2011/03/11 13:58:30| 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


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.