To summarize: The four enemies of whole bean coffee are heat, light, water, and air.
Coffee is hygroscopic. That means that it will absorb water from the air. It can also absorb odors and flavors carried by that water. Neither of these lends to enjoying the coffee as it was meant by the roaster. When coffee absorbs water, it displaces the essential oils in the coffee and accelerates aging.
Second, fresh-roasted coffee expels a lot of CO2. It’s a natural byproduct of the roasting process. The key to keeping coffee fresh longest is allowing CO2 to leave while preventing oxidation. Oxidation accelerates with more surface area so ground coffee will oxidize much faster than whole bean.
Coffee is a food product. Food likes cool, dark places to stay fresh. Just like freshly baked bread, if coffee is left out in the sun, it will go stale very fast.
Lastly, coffee loves heat when it’s ready to brew, dissolving the flavor compounds and oils in the grounds into a delicious drink. However, if it is exposed to heat before brewing, it will start to break down and lose that punchy flavor.
So – now let’s dispel the myths:
Don’t store coffee in the freezer. It’s a moist and smelly place. Coffee will pick up all of that moisture and smell. Further, it has not been proven to extend the life of the coffee, but freeze/thaw cycles have been proven to introduce moisture. Recent research has suggested that colder beans will grind more uniformly, but trying to control humidity outside of the lab seems like a big gamble for the home enthusiast.
Airtight containers are better than nothing. However, the Airscape containers are better. It mimics what the coffee bags do – which is keep oxygen out but let C02 release.
Roasters (generally) know what they are doing with packaging. Most of our favorite roasters: Onyx, Verve and Greater Goods package their coffee in nitrogen flushed valved bags. This is the absolute best way to store coffee. So, buy smaller bags and keep them sealed until you are ready to use.