Several foods don't spoil, including white rice and honey. Although honey may crystallize, it returns to fluidity with heating. Hardtack, a plain water-and-flour cracker widely used during the Civil War, lasts indefinitely. Hard liquors, even when open, remain drinkable.
In addition to foods that may be used indefinitely, several other ingredients, such as corn starch, corn syrup, soy sauce, salt and sugar do not spoil, although they all require careful resealing after being opened. Vanilla extract and white vinegar are also long lasting. Dry grains and legumes that are vacuum packed and freeze-dried keep indefinitely, according to an article on travel tips in USA Today.