Address bar Enter a URL what happens after you press ENTER

Source: Internet
Author: User
Tags domain name server browser cache

Address bar Enter a URL what happens after you press ENTER?

1. We enter the URL in the browser

2. Browser to DNS find the IP address of the domain name

3. The browser opens a TCP connection (the default port is 80), sends an HTTP request to the IP server, and if the browser stores the cookie under that domain name, the cookie is also placed in the HTTP request

4. The server makes a 301 permanent redirect response to the browser.
5. The browser makes HTTP requests again based on the redirect address.
6. The server parses the HTTP request, generates an HTTP response, and sends the response to the client.
7. After the browser receives the response content, it generates the home page framework and continues to send requests to the server, which is the resources on the homepage, such as pictures, videos, etc.
8. For static page content, the browser usually caches, for dynamic content is usually not cached, the cache time is also limited.
9. The browser sends an asynchronous request to the server because some pages show that the client still needs to keep in touch with the service after the page is finished.
10. After the entire process is finished, the browser closes the TCP connection.

The DNS lookup process is: Browser cache, system cache, router cache->isp DNS cache, recursive search recursive search process: From the root domain name server to the top-level domain name server to the domain name server you queried.

Address bar Enter a URL what happens after you press ENTER

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.