If you plan on using your coffee during a month in advance, it's best to store it in a cupboard. It can also be any other place where there are no temperature fluctuations or direct light. Make sure that the cupboard is away from the stove (as during cooking, the temperature in it will increase and then fall again).
If you buy coffee in advance for a long time, you can store it in the freezer. However, there are several conditions that are important to comply with:
— The packaging must be opaque and completely sealed. Before putting the bag in the freezer, it makes sense to remove excess air through the valve to reduce the possibility of condensation.
— You can’t take coffee out of the freezer in parts. If you plan to store coffee in the freezer, you need to distribute it in portions in advance.
— Before preparing iced coffee, it must be warmed to room temperature. You can not warm it up on purpose, you need to leave it in the room for a while until it warms up itself. For example, take it out of the freezer in the evening and make coffee from it in the morning.
— The refrigerator is the worst place to store coffee. The temperature inside is unstable because the refrigerator is periodically opened and closed. It leads to the fact that condensation and excess moisture appear in the coffee. But the worst thing is numerous aromas, that coffee acquires.