Sugar, salt, and vinegar are three foods that do not require a 'best before' date since it's recognised by government that they don't go off. Coffee and pepper contain essential oils that are lost over time and they will lose their flavour unless they're kept in an unopened vacuum pack. Many canned foods will remain edible for many decades, provided there's no external damage to the can.