LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   squid cache flv files (https://www.linuxquestions.org/questions/linux-server-73/squid-cache-flv-files-4175518288/)

bkone 09-11-2014 05:10 PM

squid cache flv files
 
I have encountered an issue with squid and the way it is handling flv videos. Well, really it appears to be an issue with the media players and maybe not squid.

Anyways, I notice that when I hit a url for a flv file I appear to always download the flv from the squid cache. BUT, when I play the video on one machine and a web-based player plays the file it appears to purge the file from the local squid cache. So, when the next person hits the same file from the URL the result is a MISS.

Is there a way for squid to never refresh flv files? The flv files that most users will access will never change. I don't want squid to release the file but have it always present.

Stakres 12-17-2014 05:29 PM

Hi Bkone,
That's normal because the browser will keep in its cache the video, the second person on another browser will watch the same video but not from your own browser cache.
Squid is not able to keep objects coming from CDNs like YouTube or URLs with '?' char.
To cache videos, images, etc... from CDN URLs, you should use a plugin that'll do the job for you.
You can try the SquidVideoBooster taking care 600+ websites including YouTube, DailyMotion, NetFlix, etc...

Link: https://sourceforge.net/projects/squidvideosbooster/
Compatible Squid 2.7, 3.4 and 3.5.

Download this plugin and test, you'll see if it fits your needs ;o)

Bye Fred


All times are GMT -5. The time now is 02:00 PM.