generate ETag where possible