A 301 redirect means that the move is permanent.
The browser caches the new URL and does not request the old one again.
Search engines update their index, replacing the old URL with the new one.
The new URL inherits the SEO ranking of the old URL.
A 302 redirect means that the move is temporary.
The browser does not cache the new URL.
Search engines do not update their index; they continue using the old URL.
Each time the user requests the old URL, they get redirected again.