Interview Question

Interview

How does a browser go about displaying a web page?

Answer

Interview Answer

1 Answer

1

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

Sachin on Mar 15, 2013

Add Answers or Comments

To comment on this, Sign In or Sign Up.