don't make duplicate requests for permanent redirects
Merge branch 'master' into redirect_cache