Forwarding forward () and redirect redirect () What is the difference?

1. forwards in the server side completed; redirection in the client completed.

 

2. The forwarding speed fast ; redirection speed slow .

 

3. Forwarding is same request ; redirection are two different requests .

 

4. forwarding forwarding code will not be executed; redirect code will be executed after the redirection.

 

5.forward the current request and response objects saved to the url specified process. It did not indicate that the page jump, the address bar will not change . The redirect redirect browser requests included twice, the browser requests a new page based on url, all business processes are transferred to the next page, the address bar will change .

 

6. forwarding must be completed under the same server; the redirection can be done on a different server.

 

Published 57 original articles · won praise 9 · views 3599

Guess you like

Origin blog.csdn.net/Jayphone17/article/details/103587967