Thanks Brion for the quick answer.
I'll update this thread when I'll have more results on range caching and 
compression behaviour.


Julien

On Monday, November 17, 2014 6:39:49 PM UTC+1, Brion Vibber wrote:
>
> Just to warn you, there's a nasty caching bug with Range requests in XHR 
> in Safari. You can work around it by disabling caching; can also do it 
> conditionally on detecting the bug by checking the returned Content-Range 
> header against expected values.
>
> https://bugs.webkit.org/show_bug.cgi?id=82672
>
> As for gzip encoding... I would avoid using gzip with range requests, I 
> don't think they combine well. But do test. :)
>
> -- brion
> On Nov 17, 2014 8:13 AM, "Julien Clouté" <[email protected] <javascript:>> 
> wrote:
>
>> Hello,
>>
>> In order to load in background assets for my 3D applications, I use 
>> emscripten_async_wget2_data function.
>> My needs are to be able to request ranges of data within the asset files. 
>> To do so, request header can be set such as
>>
>> myXMLHTTPRequest.setRequestHeader("Range", "bytes=0-50");
>>
>>
>>
>> Currently, the emscripten 1.25 api does not provide a way to set request 
>> header properties. My approach would be to provide, 
>> as argument from emscripten_async_wget2_data, a name-value map of header 
>> properties.
>> In response to partial file loading, server returns status 206 which I 
>> need to accept. emscripten_async_wget2_data could also take a list of 
>> status considered valid.
>> What would you consider best to do here ?
>>
>> I shall submit a pull request when the correct approach will be 
>> implemented.
>>
>> As a side question I would like to know if browser caching policy would 
>> work in combination with partial file loading.
>> Another concern is about encoding of downloaded files, as if partial file 
>> loading could be gzipped on-the-fly to only encode and decode the desired 
>> range.
>>
>> Thanks,
>> Julien
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to