Add logic to handle temporary redirects, code 307.