What is the difference between a molding and a gasket?

A molding is cosmetic and does not secure the glass to the cap. The gasket secures the glass to the cap.