Re: [squid-users] Re: Video played using vlc media player from a windows media server in not getting stored in cache

From: Eliezer Croitoru <eliezer_at_ngtech.co.il>
Date: Wed, 18 Sep 2013 17:08:15 +0300

Hey,

The answer to all of your questions is very simple.
Squid caches http objects identified by the url and the headers.
the vlc request seems like a 206 partial content request and response.
the only way to cache this kind of object now in squid is to first cache
the whole file while serving chunks of it.
I havn't seen the whole headers but I think it might be the source of
the problem.
If you can take a small peek at the windows update section of the wiki
on caching 206 responses you will probably get the answer..
I think it's the smartest way to cache 206 content for reverse proxy but
for forward proxy it's another story.

http://wiki.squid-cache.org/SquidFaq/WindowsUpdate#How_do_I_make_Windows_Updates_cache.3F

Eliezer

On 09/18/2013 07:32 AM, susu wrote:
> Hi Eliezer,
>
> Thank you for your reply. I can give you the access.log entries while the
> video is getting played using vlc.
> Those are given below:
>
> 2013/09/17 10:40:30 427 192.168.102.80 TCP_MISS/206 548 GET
> http://10.102.78.163/Police_122.wmv - DIRECT/10.102.78.163 video/x-ms-wvx
> "VLC/2.0.7 LibVLC/2.0.7"
> 2013/09/17 10:40:31 405 192.168.102.80 TCP_MISS/200 6105 GET
> http://10.102.78.163/Police_122.wmv?MSWMExt=.asf - DIRECT/10.102.78.163
> application/vnd.ms.wms-hdr.asfv1 "NSPlayer/7.10.0.3059"
> 2013/09/17 10:42:18 106960 192.168.102.80 TCP_MISS/200 1895949 GET
> http://10.102.78.163/Police_122.wmv?MSWMExt=.asf - DIRECT/10.102.78.163
> application/x-mms-framed "NSPlayer/7.10.0.3059"
> 2013/09/17 10:42:18 255 192.168.102.80 TCP_MISS/200 6104 GET
> http://10.102.78.163/Police_122.wmv?MSWMExt=.asf - DIRECT/10.102.78.163
> application/vnd.ms.wms-hdr.asfv1 "NSPlayer/7.10.0.3059"
> 2013/09/17 10:44:05 106625 192.168.102.80 TCP_MISS/200 1895948 GET
> http://10.102.78.163/Police_122.wmv?MSWMExt=.asf - DIRECT/10.102.78.163
> application/x-mms-framed "NSPlayer/7.10.0.3059"
>
> I can't give you any url, because I was testing with my local windows media
> server. Can you please tell me the meaning of the following message?
>
> 2013/09/16 12:30:50| storeClientUnregister: store_client for
> http://10.102.78.163/Police_122.wmv?MSWMExt=.asf has a callback
>
> This message I found in cache log. I think this may be the reason.
>
> Susu
>
>
>
>
>
> --
> View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Video-played-using-vlc-media-player-from-a-windows-media-server-in-not-getting-stored-in-cache-tp4662172p4662190.html
> Sent from the Squid - Users mailing list archive at Nabble.com.
>
Received on Wed Sep 18 2013 - 14:08:26 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 18 2013 - 12:00:05 MDT