change redirect code to 302 Found, tidy code
change redirect code to 302 Found, tidy code

This might be a breaking change for clients expecting a permanent (301
Moved Permanently) status code on redirect objects.

whats-this/cdn-origin