there is no way of ensuring the coffee you get is fresh specially via on line. many cases, these on line companies buy "old beans" which means more than year old green beans, at much cheaper pricing and roast and sell them at slightly discounted pricing, but they will never tell you that they are selling bad old beans.
also, they try to hide the old bean flavors, so they tend to roast dark.
Getting the "freshly roasted beans" is one thing, but no one can tell those green beans are too old green beans.