In the link that you mentioned, ETags are produced and handled by application. There are no special needs in web-server support.
Right... I was assuming that the OP wanted to know what ETags are, rather than their specific implementation in nginx.
https://developers.facebook.com/blog/post/627/
Basically, it's Last-Modified on steroids.