A refrigerator contains a slight humid environment which could alter the flavor of your herbs and spices. So, this storage method is not really helpful to increase the shelf life of spices.