If it's 301 (permanent redirect), we save it in local storage since it's meant to be long term/permanent
If it's 302 (temporary redirect), we save it in a local variable (which will get wiped when the app restarts/is cleared out of memory)