Expose your food to air – and in particular the oxygen in the air – and your shelf life will reduce. It's the oxygen in the air that allows bacteria and other bugs to grow and spoil the food. Or a process called oxidation can cause foods to go off – such as fats and oils becoming rancid.