def _exists_with_etag(self, name, content):
url = self._get_url(name)<EOL>response = requests.head(url)<EOL>if response.status_code == <NUM_LIT>:<EOL><INDENT>return False<EOL><DEDENT>etag = response.headers['<STR_LIT>'].split('<STR_LIT:">')[<NUM_LIT:1>]<EOL>hash = self.file_hash(name, content)<EOL>return etag.startswith(hash)<EOL>
Checks whether a file with a name and a content is already uploaded to Cloudinary.
Uses ETAG header and MD5 hash for the content comparison.