We just made Netlify’s redirect engine smarter.
Now redirect rules that would lead to a chain of subsequent redirects will always be flattened into one efficient redirect rule.
Before if you had a site on www.example.com with a redirect from /blog to /news, with https enabled, then going to http://example.com/blog would trigger a chain of redirects:
http://example.com/blog → https://example.com/blog → https://www.example.com/blog → https://www.example.com/news
Now our redirect engine is smart enough to detect that chain and redirect straight from http://example.com/blog to https://www.example.com/news
All this happens straight on our CDN nodes, so the extra roundtrip time when people get redirected is as low as possible.
This post has been featured on Netlify Milestones on the road to 1 Million Devs: