If you don't care how long it's been on the shelf, then I would say you don't need to consume it until...you need to consume it. ("Need" as in "there's nothing else to eat".)most of it is non-perishable
I generally do care to some extent how long things have been on the shelf even if they are supposed to be non-perishable. Nothing actually lasts indefinitely (except perhaps Twinkies, which are designed to already be stale when they come from the factory ).