Redirect with a 307 rather than a 301

related to https://bugzilla.mozilla.org/show_bug.cgi?id=1025792