Don't depend on cache key for determining if ssl, close #690