Methods are disclosed for caching content and state data at a network
element. In one embodiment, data packets are intercepted at a network
element. An application layer message, which specifies a request for
specified data from a server application, is determined from the data
packets. A first portion of the specified data contained in the network
element's cache is determined. A message that requests a second portion
of the data not contained in the cache is sent toward a server
application. A first response that contains the second portion, but not
the first portion, is received. A second response, which contains the
first and second portions, is sent toward a client application.In one
embodiment, data packets are intercepted at the network element. An
application layer message, which specifies session or database connection
state information, is determined from the data packets. The state
information is cached at the network element.