There's food that's edible without any side effects for years and years and doesn't really get bad at all. Salt for example only has an expiration date (over here at least), because pre-packaged food items (or ingredients like in this case) aren't allowed to be sold without one. Other food items that don't really expire are:
- Vinegar
- Spaghetti
- Rice
- Sugar
- Cornstarch (or cornflour, whatever word you prefer)
- Liquor (as I like to say "Liquor doesn't go bad, it only gets stronger"

)
- Maple sirup
- Clarified butter
- Honey
- Water (though you shouldn't take that for granted unless it's distilled water)
So, if you got something that is made solely out of those products, your food might survive longer than you will.
Canned food btw is non-expirable (if that's even a word) as long as it's unopened and the can is unharmed.