code: private function isCacheSupport(JsonRequest $jsonRequest)
      {
          try {
              return $jsonRequest->getId()
                  && null !== $this->getMethod($jsonRequest)->getCache()
                  && !$this->isDebug()
                  && $this->getCache();
          } catch (\Exception $e) {
              return false;
          }
      }
docs: Check is cache support for JsonRequest.
  
  @param JsonRequest $jsonRequest
  
  @return bool