This idea is only several thousand years old.
The pot in pot refrigerator or Zeer.
Different principle. The “pot in pot refrigerator” or Zeer uses evaporative cooling. Evaporation requires energy (in the form of heat) to change the liquid into a vapor, drawing that heat from the environment or the remaining liquid, thus lowering the temperature.