US 12,001,502 B2
Common fragment caching for web documents
Kapeel Sharadrao Sable, San Diego, CA (US); Bojan Beran, San Diego, CA (US); and Carl David Solis, Chicago, IL (US)
Assigned to ServiceNow, Inc., Santa Clara, CA (US)
Filed by ServiceNow, Inc., Santa Clara, CA (US)
Filed on Jan. 11, 2022, as Appl. No. 17/573,226.
Prior Publication US 2023/0222171 A1, Jul. 13, 2023
Int. Cl. G06F 7/00 (2006.01); G06F 16/957 (2019.01); G06F 40/143 (2020.01)
CPC G06F 16/9574 (2019.01) [G06F 16/9577 (2019.01); G06F 40/143 (2020.01)] 20 Claims
OG exemplary drawing
 
1. A system comprising:
a persistent storage configured to store programmatic content that defines a plurality of web pages, wherein the programmatic content comprises: (i) a shared programmatic content that is common to the plurality of web pages, and (ii) for each respective web page of the plurality of web pages, a corresponding page-specific programmatic content that defines the respective web page;
a processor; and
a server application configured to perform, when executed by the processor, operations comprising:
receiving, from a client device, a query for a first web page of the plurality of web pages;
generating, in response to reception of the query, a response comprising the shared programmatic content, a first page-specific programmatic content that defines the first web page, and a predefined token located between the shared programmatic content and the first page-specific programmatic content to separate the shared programmatic content in the response from the first page-specific programmatic content in the response; and
transmitting, to the client device, the response, wherein reception of the response is configured to cause the client device to:
(i) identify the predefined token within the response,
(ii) write, to a cache memory of the client device, the shared programmatic content based on identifying the predefined token within the response,
(iii) render, for display on a user interface, the first web page based on the shared programmatic content and the first page-specific programmatic content, and
(iv) in response to reception of a subsequent event that references a second web page of the plurality of web pages, read the shared programmatic content from the cache memory and begin rendering the shared programmatic content for display on the user interface before receiving from the server application a second page-specific programmatic content that defines the second web page.