The shelf life of homemade edible gifts varies depending on the type of treat. Generally, cookies and baked goods can be made a week in advance, while preserves, infused oils, and spice mixes can be prepared weeks or even months ahead.