Using Content-MD5 header

Manlio Perillo manlio_perillo at libero.it
Fri Jul 25 00:27:12 MSD 2008


Matthijs Langenberg ha scritto:
> Igor Sysoev wrote:
>> On Mon, Jul 21, 2008 at 01:37:56PM +0200, Matthijs Langenberg wrote:
>>
>>> I would like to use the Content-MD5 header from a HTTP response, does
>>> Nginx provide a way to add the 'Content-MD5' header to the response for
>>> a static file request?
>> No, nginx does not support Content-MD5 header.
>> Calculating MD5 means that nginx must read whole file before sending it
>> to client.
>>
>> What purpose of this header ?
> 
> Igor,
> 
> I'm writing an app that handles file uploads (assets storage) from other 
> machines in the network, mostly done by batch processing. I'm using a 
> HEAD request to check if a file already is uploaded, but it's hard to 
> monitor which files already have been edited and need to be uploaded 
> again.

Can't you use the Last-Modified header?

 > [...]


Manlio Perillo





More information about the nginx mailing list