Patent ID: 8103783

Claim:
A method of providing security or reliability to serving cached objects for a session communicated via a transport layer connection between a client and a server, the method comprising: (a) receiving, by a device intermediary to a client and a server, a request from the client for an object from the server via a session communicated traversing the device over a transport layer connection between the client and the server; (b) determining, by the device, that the object of the request is stored in a cache of the device; (c) forwarding, by the device, the same request from the client for the object to the server via the session between the client and the server; (d) deferring, by the device, serving the object from the cache to the client until the device receives via the session a response to the request for the object to the client from the server indicating that the server is transmitting the object to the client; (e) detecting, by the device, from a portion of a response received from the server via the session that the server is transmitting the object to the client via the device in response to the request for the object forwarded by the device; (f) determining, by the device, to serve the object from the cache to the client based on the detection; and (g) serving, by the device, via the session the object from the cache instead of the object currently being received by the device.