Patent ID: 8701010

Claim:
A method for updating an expiration period of a cached object responsive to one or more requests to refresh the object on a page, the method comprising: (a) intercepting, by a device intermediary to a plurality of clients and a server, a request from a client of the plurality of clients to the server to refresh a page identifying an object, the device having a cache storing the object from the server's response to a previous request in the cache with an expiration period, the device serving the object from the cache to requests for the object from the plurality of clients to the server; (b) identifying, by the device, a number of refresh requests intercepted by the device for the page; (c) determining, by the device in response to detecting that the request is to refresh the page, that the expiration period of the cached object is to be shortened and creating a second expiration period for the cached object that corresponds to a difference between the expiration period and a predetermined amount based on the number of refresh requests; and (d) changing, by the device, the expiration period for the cached object in the cache to a value of the second expiration period.