cherokee / webserver

Cherokee Web Server
GNU General Public License v2.0
563 stars 104 forks source link

redirect handler should allow choice between temporary / permanent redirect #631

Open danielniccoli opened 11 years ago

danielniccoli commented 11 years ago

Original author: smileychris (January 25, 2010 21:42:30)

If you choose the external redirection method for the redirect handler, currently it uses a 301 Permanent Redirect.

Providing temporary redirection as an option.

This would negate issue #721

Original issue: http://code.google.com/p/cherokee/issues/detail?id=722

danielniccoli commented 11 years ago

From smileychris on January 25, 2010 21:50:01 Oops, half finished a sentence there:

Providing 302 redirection would be useful for cases when you want to only temporarily send traffic intended for a URL elsewhere, such as a product promotion or a site-wide "offline" notice (redirecting all urls to a single offline page).

danielniccoli commented 11 years ago

From smileychris on January 25, 2010 21:54:33 By the way, Apache's mod_rewrite uses 302 redirects by default (but, of course, at least gives the option)

danielniccoli commented 11 years ago

From skar...@gmail.com on February 09, 2010 17:44:36 I like the idea.

danielniccoli commented 11 years ago

From ste...@konink.de on February 09, 2010 17:47:23 I hope you make a 'default' setting you can change.

danielniccoli commented 11 years ago

From skar...@gmail.com on February 09, 2010 17:59:12 I'm not the owner, I only like the idea... :D But yes, I would set a "default", 302 IMHO.

danielniccoli commented 11 years ago

From jrabbit....@googlemail.com on November 27, 2010 16:31:12 I disagree with changing the default - it should remain 301, if for no other reason that it doesn't break configurations when people upgrade.