Patent ID: 8205035

Claim:
A method of integrating an application firewall with a cache in an intermediary device, the method comprising: a) storing, by the intermediary device, to a cache an Hypertext Transfer Protocol (HTTP) response received from a server to a first request of a user for a page; b) generating, by an application firewall configured on the intermediary device, metadata from the HTTP response, the metadata identifying information to enforce a plurality of security rules by the application firewall; c) storing, by the intermediary device, the metadata in the cache with the HTTP response; d) receiving, by the intermediary device, a second request for the page; e) determining, by a cache manager of the intermediary device, that the HTTP response is stored in the cache; and f) providing, by the cache manager, a reference to the metadata in the cache for inclusion with session data associated with the second request.