tobmatth/rack-ssl-enforcer — pull request #44 by ochko (2012-11-30 06:52:51+00:00)
Title: Option for HTTP status code for redirection

Sometimes it might need to redirect with HTTP status code other than 301(Moved Permanently). 301 could be cached in browser or in cache infrastructure. This could cause an issue when some urls changed later.

Actually it happened when Varnish caches 301 redirections. Fixed the issue by redirecting with 302.