Saving auto refresh state to localStorage.