The most amazing qualities of freshly roasted coffee are delicate, and many subtle changes take place within the first week after roasting.
Freshly roasted coffee is an extremely dry product, which causes it to absorb any moisture it is exposed to. Moisture makes coffee become stale very quickly.
In order to keep your coffee taste fresh for as long as possible, store it in a cool dry place. An airtight glass jar kept in a cupboard is the best solution.
Coffee out-gasses after roasting. Carbon dioxide and other inert gases escape the beans which, in an airtight jar, can displace oxygen and slow oxidation. You will notice a quiet "poof" when you open the jar as the pressure of this gas escapes.
For the freshest, most flavorful coffee experience, I recommend that you order only what you need for 2 to 4 weeks of enjoyment.
Avoid putting coffee in a refrigerator. Refrigerators are meant to keep foods moist. (Just as you wouldn't store freshly popped popcorn in a refrigerator).
There are situations when freezing may be appropriate. Freezing is only for long-term storage. Freezing coffee in an airtight jar is a passable solution if you find you have more coffee than you can consume in a month. Once frozen, your coffee can be stored safely for several months. When you are ready to use it, warm the coffee to room temperature before opening the jar to avoid condensation from moisture in the air. Once you have removed your coffee from cold storage, do not re-freeze it!