public function getModifiedResponse(Request $request, $params = [], $lifetime = -1, Response $response = null)
    {
        $response = $this->getResponse($params, $lifetime, $response);

        if ($response->isNotModified($request)) {
            throw new NotModifiedException($response);
        }

        return $response;
    }