forward and redirect

forward and redirect:

One: The address of the forward browser will not change, because after the server accesses the target address, it gets the content and sends it to the browser, and the browser does not know where the content sent by the server comes from. Redirect means that the server sends a status code based on logic to tell the browser to re-request.

Two: forward will be passed along with the previous request resource, redirect will not work

Three: forward: It is generally used for user login, and turns to the page according to the role. redirect is generally used for users to log out and log in to return to the home page or other websites

Four: forward efficiency is high, redirect is low

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326965713&siteId=291194637