What happened after entering a URL in the browser?

1. Enter the URL

2. Cache analysis

Browser get this url , will go to see if there is a cache of them, from the browser cache - System Cache - router cache them to see if there are from among the displayed page cache, then it would not be the next step.

Caching is to save the web resources you have visited before , such as some js , css , pictures and so on, in your local memory or disk.

3. Domain name resolution

The domain name resolution system DNS resolves the server's IP address.

4. The browser sends an HTTP request to the web server based on the parsed IP address , performs a tcp three-way handshake to establish a connection (written in the previous note)

5. The server receives the request and returns a response.

6. The browser decodes the response and renders the display.

Guess you like

Origin www.cnblogs.com/wl889490/p/12728362.html