adding check on etag to the api