Nearest shop is about 14 miles away - apart from a little village shop with limited stock. I partly buy there - to keep it alive as a going concern - and also from Tesco online. In neither do I have too much problem getting small amounts with long eat-by dates. And if something starts to teeter in that direction I stick it in the freezer. I cannot cope with food waste - the children make a real joke of it.
However, some goods (usually dry goods), of which you only use a tiny amount, are a problem: spices, for example. I also have a problem with tea, as we only get "builders' tea" when we have builders in! My DDs try and see if they can find the item in the larder which has the longest date on it, as they know I will not throw anything away - youngest is winning by finding some food colouring from 15 years ago! I'm sure it is harmless!