In some cases, such as after crying or having an allergic reaction, a cool compress wrapped in a cloth may help reduce swelling. Other conditions, such as a chalazion, may benefit from a warm compress.