'Gets a HTTP response, if it was a GET request and the status code
starts with 2 (200 OK etc) it caches it and returns a CachedResponse'

def http_response(self, request, response):

    if ((request.get_method() == 'GET') and str(response.code).startswith('2')):
        if ('x-local-cache' not in response.info()):
            set_cache_header = store_in_cache(self.cache_location, request.get_full_url(), response)
        else:
            set_cache_header = True
        return CachedResponse(self.cache_location, request.get_full_url(), set_cache_header=set_cache_header)
    else:
        return response
