'We intercept the response coming back from the main
images Resource, removing image file from the cache
if necessary'

def process_response(self, resp):

    status_code = self.get_status_code(resp)
    if (not (200 <= status_code < 300)):
        return resp
    if (status_code == http.PARTIAL_CONTENT):
        return resp
    try:
        (image_id, method, version) = self._fetch_request_info(resp.request)
    except TypeError:
        return resp
    if ((method == 'GET') and (status_code == http.NO_CONTENT)):
        return resp
    method_str = ('_process_%s_response' % method)
    try:
        process_response_method = getattr(self, method_str)
    except AttributeError:
        LOG.error((_LE('could    not    find    %s') % method_str))
        return resp
    else:
        return process_response_method(resp, image_id, version=version)
