The question when $(-) \times X$ preserves colimits in topological spaces is well-studied. Since it always preserves arbitrary coproducts (disjoint unions), one only has to show when it preserves coequalizers. It is well-known that if $X$ is locally compact and $Y \to Z$ is a quotient map, then $Y \times X \to Z \times X$ is quotient map as well. Thus, taking product with a locally compact space preserves all colimits. (Here, I define a space to be locally compact if every point has a basis of (quasi-)compact neighborhoods. No Hausdorffness is required. For example, the underlying topological space of every scheme is locally compact.) Actually, $(-)\times X$ preserves colimits if and only if $X$ is core-compact in the sense of this nlab page.
My question is:
Is there a condition (without assuming Hausdorffness!) on a map $X \to X'$ such that $(-) \times_{X'} X$ preserves colimits, or, presumably equivalently: preserves quotient maps?
If $X'$ is Hausdorff, $Z\times_{X'} X$ is a closed subset of $Z\times X$. If $X$ is core-compact and $Y\to Z$ is a quotient map, $Y\times_{X'} X \to Z\times_{X'} X$ is thus a quotient map again. But I would like to apply the potential criterion to something like $\operatorname{Spec} A \to \operatorname{Spec} B$, which is the reason why I don't want to assume Hausdorffness.