def put_response_to_local_cache(url, _our_resp, without_content=False):
 if ((parse.method != 'GET') or (_our_resp.status_code != 200)):
  return
 dbgprint('PuttingCache:', url, 'without_content:', without_content)
 if without_content:
  our_resp = copy.copy(_our_resp)
  our_resp.response = None
  obj_size = 0
 else:
  our_resp = _our_resp
  obj_size = len(parse.remote_response.content)
 last_modified = parse.remote_response.headers.get('Last-Modified', None)
 cache.put_obj(url, our_resp, expires=get_expire_from_mime(parse.mime), obj_size=obj_size, last_modified=last_modified, info_dict={'without_content': without_content, 'last_modified': last_modified})

def put_response_to_local_cache ( url , _our_resp , without_content = False ) : if ( ( parse . method != 'GET' ) or ( _our_resp . status_code != 200 ) ) : return dbgprint ( 'PuttingCache:' , url , 'without_content:' , without_content ) if without_content : our_resp = copy . copy ( _our_resp ) our_resp . response = None obj_size = 0 else : our_resp = _our_resp obj_size = len ( parse . remote_response . content ) last_modified = parse . remote_response . headers . get ( 'Last-Modified' , None ) cache . put_obj ( url , our_resp , expires = get_expire_from_mime ( parse . mime ) , obj_size = obj_size , last_modified = last_modified , info_dict = { 'without_content' : without_content , 'last_modified' : last_modified } )
put our response object to local cache .