[Web-SIG] serving (potentially large) files through wsgi?
Manlio Perillo
manlio_perillo at libero.it
Mon Dec 17 19:23:31 CET 2007
Manlio Perillo ha scritto:
> [...]
>
>> You should be able to detect whether interference is allowed based on
>> the response status, shouldn't you?
>
> Right.
>
>> That is, if there is a range
>> request and the application replies 200 OK, you can change that and
>> apply the ranges. But if the application replies with 206 Partial
>> Content then the range has already been applied and the server shouldn't
>> do anything to it.
>>
>
> Thanks, I'll think about it.
>
No need to think about it ;-).
Nginx already checks if status code is 200.
In my early tests I just added a Content-Range header, without returning
a 206 status code.
Manlio Perillo
More information about the Web-SIG
mailing list