Dried pasta will last for 1-2 years beyond a best by date, whereas fresh pasta will last for 4-5 days beyond a best by date. The shelf life of pasta depends on a variety of factors, such as the best by date, the preparation method and how it was stored. Dried pasta is made from seminola flour and water. Fresh pasta (homemade or purchased in the refrigerator section) usually includes eggs.