Client side browser-based caching for monitored resources
Abstract
Methods and systems are provided for a browser in a client device that receives a user interface script-code snippet from a web page. A chain logic engine determines whether an in-memory map indicates an output value of prior execution of the UI script-code snippet. If the in-memory map does indicate the output value, it is returned from the in-memory map to generate the user interface. If not, the engine determines whether an in-local storage map indicates the prior executed snippet output. If the in-local storage map indicates the prior executed snippet output, it is returned from the in-local storage map to generate the user interface, and it is stored in the in-memory map. If not, the UI script-code snippet is executed to generate the output value, which is used to generate the user interface, and is stored in the in-memory map and in the in-local storage map.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method in a browser in a client device, comprising:
receiving, in the browser, a web page that includes a user interface (UI) script-code snippet; monitoring in the browser, according to a browser security policy parameter, an activity related to the web page; detecting a first event in the web page to initiate the monitored activity associated with the UI script-code snippet; applying a browser security policy defined by the browser security policy parameter; controlling execution of the UI script-code snippet to generate an output value; generate a first user interface of the web page based at least upon the generated output value; storing the output value in at least one of an in-memory map or an in-local storage map of the browser; detecting a second event in the web page to initiate the monitored activity; determining the at least one of the in-memory map or the in-local storage map stores the output value of the UI script-code snippet; retrieving the output value of the UI script-code snippet from the determined at least one of the in-memory map; and generating a second user interface of the web page based at least upon the retrieved output value.
2 . The method of claim 1 , wherein said applying a browser security policy comprises:
blocking the activity.
3 . The method of claim 1 , wherein said detecting a first event in the web page comprises:
detecting a user input to the web page to request the activity.
4 . The method of claim 1 , wherein the monitored activity includes at least one of:
a clipboard action, a printing action, a download action, or an upload action.
5 . The method of claim 1 , wherein said detecting a first event in the web page is performed in a first monitored session and said detecting a second event in the web page is performed in a second monitored session.
6 . The method of claim 1 , wherein the output value includes code structured for at least one of monitoring policies of the browser or enforcing policies of the browser.
7 . The system of claim 1 , wherein said storing the output value comprises:
generating a key by performing a hashing function on the UI script-code snippet; and storing the output value in the in-memory map using the key as an index.
8 . A system in a client device, comprising:
a processor; and a memory device that stores program code structured to cause the processor to:
monitor in the browser, according to a browser security policy parameter, an activity related to a web page that includes a user interface (UI) script-code snippet;
detect a first event in the web page to initiate the monitored activity associated with the UI script-code snippet;
apply a browser security policy defined by the browser security policy parameter;
control execution of the UI script-code snippet to generate an output value;
generate a first user interface of the web page based at least upon the retrieved output value;
store the output value in at least one of an in-memory map or an in-local storage map of the browser;
detect a second event in the web page to initiate the monitored activity;
determine the at least one of the in-memory map or the in-local storage map stores the output value of the UI script-code snippet;
retrieve the output value of the UI script-code snippet from the determined at least one of the in-memory map; and
generate a second user interface of the web page based at least upon the retrieved output value.
9 . The system of claim 8 , wherein the browser security policy is configured to block the activity.
10 . The system of claim 8 , wherein the first event is a user input to the web page to request the activity
11 . The system of claim 10 , wherein the monitored activity includes at least one of:
a clipboard action, a printing action, a download action, or an upload action.
12 . The system of claim 10 , wherein the first event is detected in the web page in a first monitored session and the second event is detected in the web page in a second monitored session.
13 . The system of claim 10 , wherein the output value includes code structured for at least one of monitoring policies of the browser or enforcing policies of the browser
14 . The system of claim 8 , wherein the program code is further structured to cause the processor to:
generate a key by performing a hashing function on the UI script-code snippet; and store the output value in the in-memory map using the key as an index.
15 . A method in a browser in a client device, comprising:
receiving, in the browser, a web page that includes a user interface (UI) script-code snippet; monitoring in the browser, according to a browser security policy parameter, an activity related to the web page; detecting a first event in the web page to initiate the monitored activity associated with the UI script-code snippet; applying a browser security policy defined by the browser security policy parameter; in response to determining the in-memory map and the in-local storage map do not store the output value, controlling execution of the UI script-code snippet to generate the output value of the UI script-code snippet; generating a first user interface of the web page based at least upon the generated output value; and storing the output value in the in-memory map and in the in-local storage map.
16 . The method of claim 15 , further comprising:
detecting a second event in the web page to initiate the monitored activity; determining at least one of the in-memory map or the in-local storage map stores the output value of the UI script-code snippet; retrieving the output value of the UI script-code snippet from the determined at least one of the in-memory map or the in-local storage map; and generating a user interface of the web page based at least upon the retrieved output value.
17 . The method of claim 15 , wherein the output value includes code structured for at least one of monitoring policies of the browser or enforcing policies of the browser.
18 . The method of claim 15 , wherein said controlling execution comprises:
transmitting the UI script-code snippet to a server device for performing the execution of the script-code snippet to generate the output value; and receiving the output value from the server device.
19 . The method of claim 15 , wherein said applying a browser security policy comprises:
blocking the activity.
20 . The method of claim 15 , wherein said storing the output value comprises:
generating a key by performing a hashing function on the UI script-code snippet; and storing the output value in the in-memory map using the key as an index.CLIENT SIDE BROWSER-BASED CACHING FOR MONITORED RESOURCESJoin the waitlist — get patent alerts
Track US2023236853A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.