Flour can and will go rancid since the oils in it degrade over time, so when you bring a fresh bag home from the grocery store, carefully decant it into another container with an airtight lid. The refrigerator is more humid than the pantry, and too much moisture can make flour moldy, so when storing it in the fridge, it's important to do it right.