'Preserve the image id, version and request method for later retrieval'

@staticmethod
def _stash_request_info(request, image_id, method, version):

    request.environ['api.cache.image_id'] = image_id
    request.environ['api.cache.method'] = method
    request.environ['api.cache.version'] = version
