Cache file updating method, apparatus and system
A technology for caching files and storage media, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as caching of resources to be loaded that cannot be updated in real time, and achieve the effect of solving caching
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] According to an embodiment of the present invention, an embodiment of a method for updating a cache file is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, Although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
[0031] figure 1 is a flowchart of a method for updating a cache file according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:
[0032] Step S102, detecting whether the resource to be loaded of the current page has changed, wherein the resource to be loaded at least includes: page information of at least one page to be loaded;
[0033] Step S104, when it is detected that the resource to be loaded has changed, obtain a difference result between...
Embodiment 2
[0076] According to an embodiment of the present invention, an embodiment of an apparatus for updating a cache file is also provided.
[0077] Figure 8 is a schematic structural diagram of a device for updating cache files according to an embodiment of the present invention, such as Figure 8 As shown, the device includes: a detection module 801 , a first update module 803 and a second update module 805 .
[0078] The detection module 801 is configured to detect whether the resource to be loaded of the current page has changed, wherein the resource to be loaded at least includes: page information of at least one page to be loaded;
[0079] The first update module 803 is configured to obtain a difference result between the resource to be loaded and the original cache file when it is detected that the resource to be loaded has changed;
[0080] The second update module 805 is configured to update the original cache file according to the difference result.
[0081] It should ...
Embodiment 3
[0105] According to an embodiment of the present invention, a system embodiment for updating cache files is also provided.
[0106] Figure 9 is a schematic structural diagram of a system for updating a cache file according to an embodiment of the present invention, such as Figure 9 As shown, the system includes: a server 901 and a client 903 .
[0107] The server 901 is configured to detect whether the resource to be loaded on the current page has changed, and if it is detected that the resource to be loaded has changed, obtain the difference result between the resource to be loaded and the original cache file, and update the original cache according to the difference result document;
[0108] The client 903 is connected in communication with the server, and is used to provide the server with resources to be loaded on the current page.
[0109] It should be noted that the above-mentioned current page is the page that the user is currently accessing through the terminal de...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


