def calculate_cache_path(cache_location, url):
 thumb = md5(url).hexdigest()
 header = os.path.join(cache_location, (thumb + '.headers'))
 body = os.path.join(cache_location, (thumb + '.body'))
 return (header, body)

def calculate_cache_path ( cache_location , url ) : thumb = md5 ( url ) . hexdigest ( ) header = os . path . join ( cache_location , ( thumb + '.headers' ) ) body = os . path . join ( cache_location , ( thumb + '.body' ) ) return ( header , body )
checks if [cache_location]/[hash_of_url] .