HTTP redirect
301 redirect
- the requested URL is "permanently" moved to the long URL.
- Since permanent, the browser caches the response, and the subsequent request are send to the redirected site directly
- (To the long URL instead of the short URL)
- To reduce server load
302 redirect
- "temporary redirect"
- every new request are still sent to the URL shortening services first
- Can be used for analytics, tracking click rate and source of the click