-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
``` | ||
Problem: | ||
Describe what happens when you type a URL into your browser and press Enter. | ||
``` | ||
|
||
## Process of a URL being fetched | ||
|
||
1. The browser's host resolution cache is checked if the website's IP is stored. | ||
2. If the IP is not found, a request is sent to the Domain Name Service (DNS) for the IP of the host/load balancing host. | ||
2. If the IP is not found, a request is sent to the Domain Name Service (DNS) for the | ||
IP of the host/load balancing host. | ||
3. A HTTP GET request is sent to the host (server). | ||
4. The host responds with a payload (usually in HTML). | ||
5. Browser renders the received HTML. | ||
6. The browser sends requests for additional objects embedded in HTML (images, CSS, JavaScript) and repeats steps 3-4 to perform step 5. | ||
6. The browser sends requests for additional objects embedded in HTML (images, CSS, | ||
JavaScript) and repeats steps 3-4 to perform step 5. | ||
7. Once the page is loaded, the browser sends further asynchronous requests as needed. |