code: def __cache_response(self, cache_key, res, method):
          
          if ('expires' in res.headers
                  and method not in self.__uncached_methods__):
              cache_timeout = get_cache_time_left(res.headers.get('expires'))
  
              # Occasionally CCP swagger will return an outdated expire
              # warn and skip cache if timeout is <0
              if cache_timeout >= 0:
                  self.cache.set(
                      cache_key,
                      CachedResponse(
                          status_code=res.status_code,
                          headers=res.headers,
                          content=res.content,
                          url=res.url,
                      ),
                  )
              else:
                  LOGGER.warning(
                      "[%s] returned expired result: %s", res.url,
                      res.headers)
                  warnings.warn("[%s] returned expired result" % res.url)
docs: cache the response
  
          if method is one of self.__uncached_method__, don't cache anything