Here’s the trick to outsmart mildew on shower curtains. Before hanging a new one, soak it for a few hours in your bathtub filled with three inches of water and 1 cup salt. Then simply hang the liner without rinsing. Repeat the treatment up to 4 times a year. The invisible salt coating prevents the formation of mildew by repelling moisture.