Yahoo Interview Question

How does a browser go about displaying a web page?

Interview Answer

Anonymous

Mar 15, 2013

1) User enters URL 2) Browsers checks the cache if the page exists there. If it does, it displays it or else follows the following steps: 3) requests the DNS server for the IP address of the URL 4) Once it has that, it does a TCP connection to the server 5) Sends an HTTP request to the server and receives an HTTP Response for it 6) Checks the reponse. It could be a redirect/error/.. 7) If the returned response is cacheable, it caches it 8) Checks the data, eg if it is an HTML page then it renders/displays it

1