You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mihamina Rakotomandimby <mi...@rktmb.org> on 2012/11/29 07:55:29 UTC

[users@httpd] how are ETags calculated

Hi all,

I'm looking for some ressource helping me to find how ETgas are calculated:
- What is the input data? (mtime, content hash,... a combination)
- How is it calculated? (md5, sha1,...)

It's just for general knowledge, and if needed, I mostly use Linux as OS.

Thank you.


-- 
RMA.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] how are ETags calculated

Posted by Igor Galić <i....@brainsware.org>.

----- Original Message -----
> Hi all,
> 
> I'm looking for some ressource helping me to find how ETgas are
> calculated:
> - What is the input data? (mtime, content hash,... a combination)
> - How is it calculated? (md5, sha1,...)

This code + excellent comment:

   http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/http_etag.c?revision=1132781&view=markup#l89

+ the default setting:

  http://httpd.apache.org/docs/current/mod/core.html#fileetag

should answer your question.

i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org