If you’re allergic to gluten—or have celiac disease—storing wheat flour isn’t a safe option for you. However, various gluten-free alternatives can last just as long when stored properly.
Flours can be perfectly safe to use past the "best by" date ... and sour, musty, or any other bad smells. Store all types of flour in an airtight container in either the pantry or the freezer, ...