I've got the "heel" of a bottle of milk (generic store brand) dated "sell by Dec. 16) in my refrigerator, saved the other day for making biscuits....(in which I think sour milk works best). Unfortunately, it still smells OK. If you knew how long eggs were stored, you wouldn't ask. "Canned" goods in clear glass can be a problem, since they do begin to change in color over time, while remaining edible.
Most spices if ground are already "dead" (or pretty moribund) the day you buy them, while most of the seeds (cumin, etc.) have long storage lives, with nutmeg being good almost forever. Never buy ground ginger, for fresh and even candied are far better. We keep 4-5 different dried peppers - long-lived around, plus fresh Thais and Serranos (cheap enough to buy and discard), while Chipotle (ripe smoked jalapeno) is best canned. Vanilla bean store well in sugar, the resulting sugar being even more useful than the vanilla beans.
Living in an area where wind storms can interrupt electricity for several days, "emergency" supplies of edible canned goods, not often a choice for eating ought to be consumed occasionally and replaced, and I don't let the freezer get very full during the stormy part of the year.