We should probably go further than 302, I think. 301 (moved permanently) and 307 (temporary redirect) need to be handled.