Grocery store coffee can sit on the shelves for a long time, which seems okay, because the coffee's listed shelf life usually spans several months. However, coffee beans reach their peak flavor about 2 to 3 weeks after roasting, and begin to lose their flavor after that, a fact that most supermarkets don't pay attention to.