nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

squid youtube caching

This is a discussion on squid youtube caching within the Proxy Servers forums, part of the Mastering Servers category; Hi, Does anyone know how to configure squid to cache youtube videos? I've tried these. http://piju.fakap.net/2008/11/08/tut...caching-proxy/ ConfigExamples/DynamicContent/YouTube - Squid Web ...


Go Back   nixCraft Linux Forum > Mastering Servers > Proxy Servers

Linux answers from nixCraft.


Proxy Servers Discussion about UNIX / Linux caching proxy servers, web proxy, reverse / content filtering proxy server.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2010, 06:41 PM
Senior Member
User
 
Join Date: Jul 2006
Posts: 145
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 4
asim.mcp is on a distinguished road
Default squid youtube caching

Hi,

Does anyone know how to configure squid to cache youtube videos?
I've tried these.

http://piju.fakap.net/2008/11/08/tut...caching-proxy/
ConfigExamples/DynamicContent/YouTube - Squid Web Proxy Wiki

both do not work. any help please
Reply With Quote
  #2 (permalink)  
Old 04-02-2010, 06:55 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

It says it only works with squid version 2.7. Are you using v2.7?
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 04-02-2010, 07:22 PM
Senior Member
User
 
Join Date: Jul 2006
Posts: 145
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 4
asim.mcp is on a distinguished road
Default

Yes I've tried squid 2.7 stable 7 and squid 2.7 stable 3
Reply With Quote
  #4 (permalink)  
Old 04-02-2010, 07:32 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

May be youtube sending some sort of headers which squid can not use.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #5 (permalink)  
Old 04-02-2010, 07:40 PM
Senior Member
User
 
Join Date: Jul 2006
Posts: 145
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 4
asim.mcp is on a distinguished road
Default

How can i check its sending headers which cannot be cached???
Reply With Quote
  #6 (permalink)  
Old 04-02-2010, 07:42 PM
Senior Member
User
 
Join Date: Jul 2006
Posts: 145
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 4
asim.mcp is on a distinguished road
Default

There is a software on this side: Cache Videos | Videocache
But they charge for this software, If this software can cache youtube then how is it possible that youtube is sending headers which cannot be cached??
Reply With Quote
  #7 (permalink)  
Old 04-02-2010, 08:05 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

They are downloading actual .flv file from other service provider and storing it on your local server. To see headers use

Code:
curl -I 'http://www.youtube.com/watch?v=rM8Wg8hCTG4'
You will see
Code:
Cache-Control: no-cache
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #8 (permalink)  
Old 04-02-2010, 09:51 PM
Senior Member
User
 
Join Date: Jul 2006
Posts: 145
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 4
asim.mcp is on a distinguished road
Default

Who are downloading .flv???
Reply With Quote
  #9 (permalink)  
Old 04-02-2010, 09:53 PM
Senior Member
User
 
Join Date: Jul 2006
Posts: 145
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 4
asim.mcp is on a distinguished road
Default

Is there any possibility i could save .flv???
Reply With Quote
  #10 (permalink)  
Old 04-02-2010, 09:56 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

The software you mentioned is downloading file to local server. Yes, you can save it programming like python or perl or php. You can also use firefox extension to do the same. But this will not useful for browsing cached file for end users when they go to youtube. What are you trying to build here? If local cache with squid - it is not possible since they Youtube is using CDN to send file to clients.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply

Tags
linux , squid youtube caching , youtube , youtube cache


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
how does centos/redhat caching-nameserver work? texaganian CentOS / RHEL / Fedora 1 09-10-2009 12:54 AM
Ubuntu Squid Proxy Configuration File /etc/squid/squid.conf rupalit Ubuntu / Debian 2 17-07-2009 02:50 PM
DNS caching setting garora Domain Name Server 1 24-03-2009 08:02 PM
web caching server klauss35 Proxy Servers 2 13-02-2009 09:10 AM


All times are GMT +5.5. The time now is 06:52 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38