code: public function getResponse($params = [], $lifetime = -1, Response $response = null)
      {
          if (!$response) {
              $response = new Response();
          }
  
          if (!$this->enable) {
              return $response;
          }
  
          return $this->configurator->configure($response, $this->getMax($params), $lifetime);
      }
docs: Get cache response.
  
  Set $lifetime as < 0 for not set max-age
  
  @param mixed $params
  @param int $lifetime
  @param Response|null $response
  
  @return Response