Home
Knowledge Base
Credits
Site Map
 


Web Caching




A Web cache also called a proxy server
is a network entity that satisfied HTTP
requests on behalf of an origin Web
server. The Web cache has its own disk
storage and keeps copies of recently
requested objects in this storage. A user's
browser can be configured so that all of
the user's HTTP requests are first
directed to the Web cache. Once a
browser is configured, each browser request for an object is first directed to
the Web cache. Here is what happens if a
user requests the object http://www.someschool.edu/campus.gif .


 

The browser establishes a TCP connection to the Web cache and sends an HTTP request
for the object to the Web cache. The Web cache checks to see if it has a copy of the object
stored logically. If it does, the Web cache forwards the object within an HTTP response
message to the client browser.

If the Web cache does not have the object, the Web cache opens a TCP connection to the
origin server, that is, to www.someschool.edu . The Web cache then sends and HTTP
request for the object into the TCP connection. After receiving this request, the origin
server sends the object within an HTTP response to the Web cache. When the Web cache
receives the object it stores a copy in its local storage and forwards a copy within an HTTP
response message, to the client browser.

Note that the cache is both a server and a client at the same time. When it receives requests
form and sends responses to a browser, it is a server. When it sends requests to and receives
responses from an origin server, it is a client. A Web cache is purchased and installed by an
ISP. Web caching has seen deployment in the Internet for two reasons: it can substantially
reduce the response time for a client request and it can reduce traffic in the Internet as a
whole, thereby improving performance for all applications.

 


Back to The Web and HTTP