Include ETag in HEAD requests

backport of commit 3c7310ebcbee1d65f47e6c6115ade2fa4cbd5b59