Search squid archive

Re: Re: anyone knows some info about youtube "range" parameter?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



AS I understand that nginx removes Range header as well as several other headers
before passing request to upstream to make sure full response will be
cached and other requests for the same uri will be served correctly.

Squid at least in versions 2.7 and up, refuses to cache 206 Partial
Content responses by default. It is possible to use a combination of
the range_offset_limit and quick_abort_min to force Squid to cache the
request, but Squid will still strip off the Range header and try to
request the entire object but It is still not a good solution.

Do you know anything about VARNISH which has experimental support for
range requests as you can enable it via the “http_range” runtime
parameter.

What I have already found is that Varnish will try to request the
entire file from the back-end server, and only if the entire file is
in the cache, will it successfully respond with a partial content
response and not contact the back-end server.

Does Squid has the ability to remove Range Header ?


Ghassan

On Tue, May 1, 2012 at 5:28 PM, Eliezer Croitoru <eliezer@xxxxxxxxxxxx> wrote:
> On 01/05/2012 17:09, x-man wrote:
>>
>> I like the option to use nginx as cache_peer, who is doing the youtube
>> handling and I'm keen on using it.
>>
>> The only think I don't know in this case is how the nginx will mark the
>> traffic as CACHE HIT or CACHE MISS, because I want to have the CACHE HIT
>> traffic marked with DSCP so I can use the Zero penalty hit in the NAS and
>> give high speed to users for the cached videos?
>>
>> Anyone has idea about that?
>>
>> --
>> View this message in context:
>> http://squid-web-proxy-cache.1019090.n4.nabble.com/anyone-knows-some-info-about-youtube-range-parameter-tp4584388p4600792.html
>> Sent from the Squid - Users mailing list archive at Nabble.com.
>
> i do remember that nginx logged the file when a hit happens on the main
> access log file but i'm not sure about it.
> i have found  that store_url_rewrite is much more effective then nginx cache
> with ranges but didnt had the time to analyze the reason yet.
> by the way you can use squid2.7 instance as a cache_peer instead of nginx.
>
> did you tried my code(ruby)?
> i will need to make some changes to make sure it will fit more videos that
> doesn't use range parameter(there are couple).
>
>
> Eliezer
>
> --
> Eliezer Croitoru
> https://www1.ngtech.co.il
> IT consulting for Nonprofit organizations
> eliezer <at> ngtech.co.il



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux