# US 2022/0295117 A1 · Unified routing and caching logic for applications utilizing a content delivery network

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

- Number: US 2022/0295117 A1
- Document ID: US20220295117A1
- Status: Published application
- Kind: A1
- Application number: 17/693,306
- Filed: 2022-03-11
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: Limelight Networks, Inc.
- Applicants: Limelight Networks, Inc.
- Inventors: Mark Brocato; Ivan Erceg; Ishan Anand
- Web page: https://patentgrep.com/patent/US20220295117A1

## CPC

- H04N 21/2183: Cache memory {(caches in web servers or browsers G06F16/9574; intermediate storage and caching in data networks H04L67/568)}
- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F 12/0808: with cache invalidating means (G06F12/0815 takes precedence)
- G06F 12/084: with a shared cache
- G06F 12/0862: with prefetch
- H04L 41/08: Configuration management of networks or network elements (address allocation H04L61/50)
- H04L 67/5682: Policies or rules for updating, deleting or replacing the stored data
- G06F 2212/6028: Prefetching based on hints or prefetch instructions
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Disclosed are systems and methods for providing unified routing and caching logic for applications utilizing a CDN. First, the system maintains access to one or more edge servers for a CDN, with the one or more edge servers being configured to execute edge logic. The system receives code for an application in a specified application framework, with the code and/or application framework including a unified set of routing and caching logic for dynamic data to be applied to a number of caches, and with the unified set of routing and caching logic being derived from a centralized definition. For each of the caches, the system first analyzes the set of routing and caching logic to determine a subset of the routing and caching logic to be executed by the cache, and then atomically sends the determined subset of the routing and caching logic to the cache.

## Claims

### Claim 1

A method for providing unified routing and caching behaviors for a web application utilizing a content delivery network (CDN), comprising:
maintaining access to one or more edge servers for a CDN, wherein the one or more edge servers are configured to execute edge logic;
receiving code for an application in a specified application framework, wherein the code and/or application framework comprises a unified set of routing and caching logic for dynamic data to be applied to a plurality of caches, wherein the unified set of routing and caching logic is derived from a centralized definition; and
for each of the plurality of caches:
analyzing the set of routing and caching logic to determine a subset of the routing and caching logic to be executed by the cache, and
atomically sending the determined subset of the routing and caching logic to the cache.

### Claim 2 (depends on 1)

The method of claim 1, wherein the plurality of caches comprises at least one of the following: a browser cache, a service worker cache, and one or more CDN caches.

### Claim 3 (depends on 1)

The method of claim 1, wherein the routing and caching logic comprises one or more of the following: cache expiration times, stale-while-revalidate time, cache key computation logic, associated application version, private and public cache behaviors, browser and edge cache behaviors, and prefetch behaviors.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
embedding an identifier in an edge logic submodule for processing the edge logic, wherein the identifier includes version metadata for a specific version of the application code; and
in response to a request in an application, directing the request, based on the identifier, to only the specific corresponding version of the edge logic and corresponding version of the application code.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
receiving a cache policy associated with one of the plurality of caches; and
atomically binding the cache policy and the application code together such that the cache policy is configured to only be executed in conjunction with the determined application version.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
selecting the application from a plurality of versions of the application, wherein each application version comprises a different version of the application code and the routing and caching logic for each of the plurality of caches based on a past deployment of the application.

### Claim 7 (depends on 1)

The method of claim 1, wherein the web application is executed such that dynamic web pages and/or API data are pre-fetched and served from one or more edge servers according to the unified set of routing and caching behaviors.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
providing the application code and the routing and caching logic for each of the plurality of caches to the local storage of a client device,
wherein the application code and the routing and caching logic for each of the plurality of caches is processed and/or executed locally at the client device when the CDN is not accessible.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
receiving a request at a client device, wherein the front-end code modifies a browser request to add one or more cacheability optimizations to the browser request;
incorporating the one or more cacheability optimizations into the application; and
sending the modified request to an edge layer, wherein the edge layer undoes the one or more cacheability optimizations in order to preserve compatibility with the existing system.

### Claim 10

A non-transitory computer-readable medium containing instructions for providing unified routing and caching behaviors for a web application utilizing a content delivery network (CDN), the instructions comprising:
maintaining access to one or more edge servers for a CDN, wherein the one or more edge servers are configured to execute edge logic;
receiving code for an application in a specified application framework, wherein the code and/or application framework comprises a unified set of routing and caching logic for dynamic data to be applied to a plurality of caches, wherein the unified set of routing and caching logic is derived from a centralized definition; and
for each of the plurality of caches:
analyzing the set of routing and caching logic to determine a subset of the routing and caching logic to be executed by the cache, and
atomically sending the determined subset of the routing and caching logic to the cache.

### Claim 11 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein the plurality of caches comprises at least one of the following: a browser cache, a service worker cache, and one or more CDN caches.

### Claim 12 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein the routing and caching logic comprises one or more of the following: cache expiration times, stale-while-revalidate time, cache key computation logic, associated application version, private and public cache behaviors, browser and edge cache behaviors, and prefetch behaviors.

### Claim 13 (depends on 10)

The non-transitory computer-readable medium of claim 10, the instructions further comprising:
embedding an identifier in an edge logic submodule for processing the edge logic, wherein the identifier includes version metadata for a specific version of the application code; and
in response to a request in an application, directing the request, based on the identifier, to only the specific corresponding version of the edge logic and corresponding version of the application code.

### Claim 14 (depends on 13)

The non-transitory computer-readable medium of claim 13, the instructions further comprising:
receiving a cache policy associated with one of the plurality of caches; and
atomically binding the cache policy and the application code together such that the cache policy is configured to only be executed in conjunction with the determined application version.

### Claim 15 (depends on 10)

The non-transitory computer-readable medium of claim 10, the instructions further comprising:
selecting the application from a plurality of versions of the application, wherein each application version comprises a different version of the application code and the routing and caching logic for each of the plurality of caches based on a past deployment of the application.

### Claim 16 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein the web application is executed such that dynamic web pages and/or API data are pre-fetched and served from one or more edge servers according to the unified set of routing and caching behaviors.

### Claim 17 (depends on 10)

The non-transitory computer-readable medium of claim 10, the instructions further comprising:
providing the application code and the routing and caching logic for each of the plurality of caches to the local storage of a client device,
wherein the application code and the routing and caching logic for each of the plurality of caches is processed and/or executed locally at the client device when the CDN is not accessible.

### Claim 18 (depends on 10)

The non-transitory computer-readable medium of claim 10, the instructions further comprising:
receiving a request at a client device, wherein the front-end code modifies a browser request to add one or more cacheability optimizations to the browser request;
incorporating the one or more cacheability optimizations into the application; and
sending the modified request to an edge layer, wherein the edge layer undoes the one or more cacheability optimizations in order to preserve compatibility with the existing system.

### Claim 19

A communication system comprising one or more processors configured to perform the operations of:
maintaining access to one or more edge servers for a CDN, wherein the one or more edge servers are configured to execute edge logic;
receiving code for an application in a specified application framework, wherein the code and/or application framework comprises a unified set of routing and caching logic for dynamic data to be applied to a plurality of caches, wherein the unified set of routing and caching logic is derived from a centralized definition; and
for each of the plurality of caches:
analyzing the set of routing and caching logic to determine a subset of the routing and caching logic to be executed by the cache, and
atomically sending the determined subset of the routing and caching logic to the cache.

### Claim 20 (depends on 19)

The system of claim 19, further comprising:
embedding an identifier in an edge logic submodule for processing the edge logic, wherein the identifier includes version metadata for a specific version of the application code; and
in response to a request in an application, directing the request, based on the identifier, to only the specific corresponding version of the edge logic and corresponding version of the application code.
