해나아부지 개발일지

what happen to input url on the browser? 본문

Developers/Coding Question

what happen to input url on the browser?

__APPA 2023. 3. 7. 11:09
  1. The browser first parses the URL to identify the protocol (e.g. HTTP, HTTPS), the domain name (e.g. www.example.com), and the path to the resource (e.g. /index.html).
  2. Next, the browser checks its cache to see if it has a cached copy of the resource. If it does, and the cached copy is still valid, it will be used instead of making a new request to the server.
  3. If the resource is not cached or the cached copy is not valid, the browser will send a request to the server identified in the URL, asking for the resource specified in the path.
  4. The server will then process the request and send back a response containing the requested resource, typically in the form of HTML, CSS, JavaScript, images, or other content.
  5. The browser then receives the response and begins rendering the content according to the instructions in the HTML and CSS.
  6. If the response contains any embedded resources (such as images or JavaScript files), the browser will send additional requests for those resources and repeat the above steps to retrieve and render them.
  7. Finally, once all resources have been retrieved and rendered, the website will be displayed in the browser for you to interact with.
Comments