do we add something here for `301|302` where we either save the domain to a location variable vs. local storage depending on 301/302?