Cooling gas outflows from galaxies