Store flours, nuts, and seeds in the fridge or freezer to extend their freshness and shelf life. Whole-grain pastas and brown rice have shorter shelf lives but are fine if they pass the smell test.