Coffee it is best to buy by the bag, as it improves by keeping. Let it hang in the bag, in a dry place, and it loses its rank smell and taste.
Miss Beecher's Domestic Receipt-book: Designed as a Supplement to Her Treatise on Domestic Economy (ed. 1871)