- browser looks for the DNS cache
- browser ask the OS to find the ip
- OS makes a DNS lookup to find the ip and gives to the browser * Looks for the closest DNS Server to find the IP, if it's not there the DNS Server looks for another DNS Server until finds it
- OS caches the IP
- browser opens a tcp connection( If it's HTTPS this step is waay more complicated)
- browser sends an http request
- browser receives an http response and may close the connection or reuse for more requests.
- browser checks what kind of response se he receives: 3xx redirect or conditional, 401 authorization required, 4xx and 5xx errors or 2xx "good" responses
- If cacheable, browser caches response
- Browser determine what it'll do with the response(html, image) and either render a page or offer the content for download
Complete answer with all the details: https://github.com/alex/what-happens-when