Store your herbs and spices in a cool, dry place. The ideal temperature is one that remains fairly constant, averaging right around 70° F."
You're also supposed to keep them dark and dry.
I do this by keeping my spices in a drawer, but I'd really like that space for something else, and to put my spices in opaque magnetic jars on the fridge. The opaque jars would keep out the light, and the cap would keep out the moisture, but my fridge is only two feet away from the stove, and there's probably more light, moisture, and temperature variation there than there is in the drawer.
Is this difference worth worrying about?