# US 8,578,099 B2 · Systems and methods for integration between application firewall and caching

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,578,099 B2
- Document ID: US8578099B2
- Status: Granted
- Kind: B2
- Application number: 13/524,692
- Filed: 2012-06-15
- Published: 2013-01-17
- Granted: 2013-11-05
- Earliest claimed: 2009-06-22
- Assignees: Citrix Systems, Inc.
- Applicants: Anoop Kandi Reddy; Craig Steven Anderson; Prakash Khemani
- Inventors: Anoop Kandi Reddy; Craig Steven Anderson; Prakash Khemani
- Web page: https://patentgrep.com/patent/US8578099B2

## CPC

- H04L 63/168: {above the transport layer}
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- H04L 63/0227: {Filtering policies (mail message filtering H04L51/212)}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/561: Adding application-functional data or data for application control, e.g. adding metadata
- H04L 67/568: Storing data temporarily at an intermediate stage, e.g. caching
- G06F 2221/2101: Auditing as a secondary aspect
- G06F 2221/2105: Dual mode as a secondary aspect
- G06F 2221/2149: Restricted operating environment
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present invention is directed towards integrating cache managing and application firewall processing in a networked system. An integrated cache/firewall system comprises an application firewall operating in conjunction with a cache managing system in operation on an intermediary device. The application firewall processes a received HTTP response to a request by a networked entity serviced by the intermediary device. The application firewall generates metadata from the HTTP response and stores the metadata in cache with the HTTP response. When a subsequent request hits in the cache, the metadata is identified to a user session associated with the subsequent request. The application firewall can modify a cache-control header of the received HTTP response, and can alter the cookie-setting header of the cached HTTP response.

## Claims

### Claim 1

A method comprising:
a) storing, by a device intermediary to a plurality of clients and servers, to a cache a first Hypertext Transfer Protocol (HTTP) response received from a server to a first request of a user;
b) determining, by an application firewall of the device, whether a session cookie is to be inserted into HTTP responses for the user;
c) storing, by the cache responsive to the application firewall, a reserved space in the first HTTP response stored in the cache;
d) generating, by the device responsive to receipt of a second request of the user, a second HTTP response based on the first HTTP response stored in the cache; and
e) inserting, by the device into the reserved space of the second HTTP response generated from the first HTTP response stored in the cache, one of a session cookie or a header comprising cache control information generated by the application firewall.

### Claim 2 (depends on 1)

The method of claim 1, wherein step (a) further comprises generating, by the device, meta data from the first HTTP response and storing the meta data into the cache.

### Claim 3 (depends on 1)

The method of claim 1, wherein step (b) further comprises determining, by the application firewall, not to insert the session cookie based on meta data generated from the first HTTP response.

### Claim 4 (depends on 1)

The method of claim 1, wherein step (b) further comprises determining, by the application firewall, to insert the session cookie based on meta data generated from the first HTTP response.

### Claim 5 (depends on 4)

The method of claim 4, wherein step (c) further comprises inserting, by the application firewall, the session cookie into the reserved space.

### Claim 6 (depends on 1)

The method of claim 1, wherein step (c) further comprises writing, by the application firewall to the cache, to the reserved space a header to be ignored by one of the client or a second intermediary device that receives the second HTTP response.

### Claim 7 (depends on 1)

The method of claim 1, wherein step (d) further comprises generating, by the device, the second HTTP response from a modified copy of the first HTTP response stored in the cache.

### Claim 8 (depends on 1)

The method of claim 1, wherein step (e) further comprises inserting, by the device, cache control information in the second HTTP response that identifies an original expiration date of the first HTTP response received from the server.

### Claim 9 (depends on 1)

The method of claim 1, wherein step (e) further comprises inserting, by the device, cache control information comprising a first portion that identifies that the application firewall has modified the header and a second portion having a copy of original cache control information from the server.

### Claim 10 (depends on 1)

The method of claim 1, further comprising including, by the device, in the second HTTP response a reference to meta data generated for the first HTTP response and stored in the cache.

### Claim 11

A system comprising:
a device intermediary to a plurality of clients and servers;
a cache of the device storing a first Hypertext Transfer Protocol (HTTP) response received from a server to a first request of a user;
an application firewall of the device determining whether a session cookie is to be inserted into HTTP responses for the user;
wherein the cache responsive to the application firewall, a reserved space in the first HTTP response stored in the cache;
wherein the device responsive to receipt of a second request of the user, a second HTTP response based on the first HTTP response stored in the cache and inserting into the reserved space of the second HTTP response generated from the first HTTP response stored in the cache one of a session cookie or a header comprising cache control information generated by the application firewall.

### Claim 12 (depends on 11)

The system of claim 11, wherein the device generates meta data from the first HTTP response and stores the meta data into the cache.

### Claim 13 (depends on 11)

The system of claim 11, wherein the application firewall determines not to insert the session cookie based on meta data generated from the first HTTP response.

### Claim 14 (depends on 11)

The system of claim 11, wherein the application firewall determines to insert the session cookie based on meta data generated from the first HTTP response.

### Claim 15 (depends on 14)

The system of claim 14, wherein the application firewall inserts the session cookie into the reserved space.

### Claim 16 (depends on 11)

The system of claim 11, wherein the application firewall writes to the reserved space a header to be ignored by one of the client or a second intermediary device that receives the second HTTP response.

### Claim 17 (depends on 11)

The system of claim 11, wherein the device generates the second HTTP response from a modified copy of the first HTTP response stored in the cache.

### Claim 18 (depends on 11)

The system of claim 11, wherein the device inserts cache control information in the second HTTP response that identifies an original expiration date of the first HTTP response received from the server.

### Claim 19 (depends on 11)

The system of claim 11, wherein the device inserts cache control information comprising a first portion that identifies that the application firewall has modified the header and a second portion having a copy of original cache control information from the server.

### Claim 20 (depends on 11)

The system of claim 11, wherein the device includes in the second HTTP response a reference to meta data generated for the first HTTP response and stored in the cache.
