Add a config `refreshwhenswitch`