CN113486273A - Front-end information flow page loading method and device and electronic equipment - Google Patents

Front-end information flow page loading method and device and electronic equipment Download PDF

Info

Publication number
CN113486273A
CN113486273A CN202110782278.9A CN202110782278A CN113486273A CN 113486273 A CN113486273 A CN 113486273A CN 202110782278 A CN202110782278 A CN 202110782278A CN 113486273 A CN113486273 A CN 113486273A
Authority
CN
China
Prior art keywords
page
resource
value
page resource
local cache
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110782278.9A
Other languages
Chinese (zh)
Inventor
聂鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Qifu Information Technology Co ltd
Original Assignee
Shanghai Qifu Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Qifu Information Technology Co ltd filed Critical Shanghai Qifu Information Technology Co ltd
Priority to CN202110782278.9A priority Critical patent/CN113486273A/en
Publication of CN113486273A publication Critical patent/CN113486273A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the technical field of computers, in particular to a front-end information flow page loading method, a front-end information flow page loading device and electronic equipment, wherein the method comprises the following steps: acquiring page resource request information, wherein the resource request information comprises an MD5 value of a page resource; performing local cache resource matching on the page resource request information by using a cache matching mechanism; when the MD5 value of the page resource exists in the local cache resource, loading and rendering the page resource corresponding to the MD5 value of the page resource in the local cache resource; when the MD5 value of the page resource does not exist in the local cache resource, requesting a page server to load and render the page resource corresponding to the MD5 value of the page resource. According to the invention, the cache resources are accessed by adopting an MD5 value matching mode, the effect of quickly loading the page is realized, and the page loading rate is improved.

Description

Front-end information flow page loading method and device and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a front-end information flow page loading method and device and electronic equipment.
Background
When browsing an information flow page, a user often wants to see the content of the page faster, and the traditional method is to use a means of rendering at a browser client or a server to achieve the purpose of speed increase, but the methods inevitably require that after the user clicks a certain information flow, a detail page requests to be re-rendered, although the FCP (Fibre Channel Protocol, mesh Channel and mesh Channel Protocol) can be improved to a certain extent, the purpose of quickly opening the page cannot be achieved.
Disclosure of Invention
The invention provides a front-end information flow page loading method and device and electronic equipment, which are used for realizing the effect of quickly loading a page and improving the page loading rate.
An embodiment of the present specification provides a front-end information flow page loading method, including:
acquiring page resource request information, wherein the resource request information comprises an MD5 value of a page resource;
performing local cache resource matching on the page resource request information by using a cache matching mechanism;
when the MD5 value of the page resource exists in the local cache resource, loading and rendering the page resource corresponding to the MD5 value of the page resource in the local cache resource;
when the MD5 value of the page resource does not exist in the local cache resource, requesting a page server to load and render the page resource corresponding to the MD5 value of the page resource.
Preferably, the method further comprises the following steps:
counting the access times of each page resource;
caching the page resources to the local cache resources when the access times of the page resources reach a first preset access threshold;
and periodically cleaning the page resources in the local cache resources by using a cache replacement algorithm.
Preferably, before the obtaining the page resource request information, the method includes:
marking and classifying each page resource;
performing MD5 encryption on the classified page resource contents to obtain page resources with MD5 values;
and recording and storing the page resource with the MD5 value and the address binding of the corresponding page resource.
Preferably, the caching the page resource to the local cache resource includes:
judging the maximum cache threshold value of the local cache resource;
and when the cache value of the local cache resource is smaller than the maximum cache threshold value of the local cache resource, caching the page resource to the local cache resource.
Preferably, the periodically cleaning the page resource in the local cache resource by using the cache replacement algorithm includes:
counting the times of accessing the page resources in the local cache resources;
and when the number of times of accessing the page resources in the local cache resources within the preset time is lower than a second preset access threshold value, cleaning the page resources in the local cache resources by using the cache replacement algorithm.
Preferably, the loading and rendering of the page resource corresponding to the MD5 value of the page resource includes:
acquiring the address of the corresponding page resource based on the MD5 value of the page resource;
and loading and rendering the corresponding page resource according to the address of the page resource.
An embodiment of the present specification further provides a front-end information flow page loading apparatus, including:
the information acquisition module is used for acquiring page resource request information, and the resource request information comprises an MD5 value of a page resource;
the resource matching module is used for carrying out local cache resource matching on the page resource request information by utilizing a cache matching mechanism;
a first loading module, configured to load and render a page resource corresponding to the MD5 value of the page resource in the local cache resource when the MD5 value of the page resource exists in the local cache resource;
and the second loading module is used for requesting a page server to load and render the page resource corresponding to the MD5 value of the page resource when the MD5 value of the page resource does not exist in the local cache resource.
Preferably, before the obtaining the page resource request information, the method includes:
marking and classifying each page resource;
performing MD5 encryption on the classified page resource contents to obtain page resources with MD5 values;
and recording and storing the page resource with the MD5 value and the address binding of the corresponding page resource.
An electronic device, wherein the electronic device comprises:
a processor and a memory storing a computer executable program which, when executed, causes the processor to perform any of the methods described above.
A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of the above.
The beneficial effects are that:
according to the invention, the cache resources are accessed by adopting an MD5 value matching mode, the effect of quickly loading the page is realized, and the page loading rate is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic diagram illustrating a front-end information flow page loading method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a front-end information flow page loading apparatus provided in an embodiment of the present specification;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present specification.
Detailed Description
Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. The exemplary embodiments, however, may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. The same reference numerals denote the same or similar elements, components, or parts in the drawings, and thus their repetitive description will be omitted.
Features, structures, characteristics or other details described in a particular embodiment do not preclude the fact that the features, structures, characteristics or other details may be combined in a suitable manner in one or more other embodiments in accordance with the technical idea of the invention.
In describing particular embodiments, the present invention has been described with reference to features, structures, characteristics or other details that are within the purview of one skilled in the art to provide a thorough understanding of the embodiments. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific features, structures, characteristics, or other details.
The diagrams depicted in the figures are exemplary only, and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The term "and/or" and/or "includes all combinations of any one or more of the associated listed items.
Referring to fig. 1, a schematic diagram of a front-end information flow page loading method provided in an embodiment of the present specification includes:
s101: acquiring page resource request information, wherein the resource request information comprises an MD5 value of a page resource;
in a preferred embodiment of the present invention, a user triggers an instruction for requesting a page resource by touch or other means, and a client reads the instruction for requesting the page resource to obtain page resource request information, where the page resource request information includes an MD5 value of the page resource, and may also include a requested page resource type, and the like. The MD5 value (Message Digest Algorithm, fifth edition) is a hash function for providing integrity protection of messages, and is a data Digest Algorithm and a string of calculated numbers, each page resource has its unique MD5 value, and the MD5 value in the page resource request information is obtained to facilitate quick matching of page resources in the following.
S102: performing local cache resource matching on the page resource request information by using a cache matching mechanism;
in a preferred embodiment of the present invention, the MD5 value of the page resource is traversed in the local cache resource to match the MD5 value that is the same as the MD5 value of the page resource, and if the MD5 value that is the same as the MD5 value of the page resource exists in the local cache resource at this time, the page resource address corresponding to the MD5 value can be used, thereby implementing fast opening of the requested page resource.
S103: when the MD5 value of the page resource exists in the local cache resource, loading and rendering the page resource corresponding to the MD5 value of the page resource in the local cache resource;
in the preferred embodiment of the present invention, when the MD5 value of the page resource exists in the local cache resource, the corresponding page resource address is indirectly obtained according to the MD5 value, and the requested page resource is directly loaded and rendered by the page resource address, thereby saving the process of resending the page server and realizing the quick opening of the requested page resource.
S104: when the MD5 value of the page resource does not exist in the local cache resource, requesting a page server to load and render the page resource corresponding to the MD5 value of the page resource.
In a preferred embodiment of the present invention, when the MD5 value of the page resource does not exist in the local cache resource, it indicates that the requested page resource is not cached in the local cache resource, at this time, a request needs to be initiated to the page server, a corresponding MD5 value is found according to the MD5 value of the page resource and the page server, and the requested page resource is loaded according to the page resource address corresponding to the MD5 value and is further rendered and displayed. By adopting the method, the integrity of the message and the uniqueness of matching can be ensured.
Further, still include:
counting the access times of each page resource;
caching the page resources to the local cache resources when the access times of the page resources reach a first preset access threshold;
and periodically cleaning the page resources in the local cache resources by using a cache replacement algorithm.
In the preferred embodiment of the present invention, when the page resource is accessed for multiple times, the number of times of accessing each page resource is counted, and whether the page resource accessed for multiple times is cached to the local cache resource is determined according to the statistical result of the number of times of accessing. For example, setting a first preset access threshold value to be 3, and caching the page resource to a local cache resource when the access frequency of the user to the same page resource reaches 3 times; when the access times of the user to the same page resource does not reach 3 times, the page resource cannot be cached to the local cache resource. By the method, the frequently-accessed page resources can be cached to the local cache resources, the loading of the frequently-accessed page resources is improved, and the page resources which are not frequently accessed are prevented from occupying the local cache space.
Further, before the obtaining the page resource request information, the method includes:
marking and classifying each page resource;
performing MD5 encryption on the classified page resource contents to obtain page resources with MD5 values;
and recording and storing the page resource with the MD5 value and the address binding of the corresponding page resource.
In the preferred embodiment of the invention, before acquiring the page resource request information, the page server should have the page resources corresponding to the page resource request, and at this time, the page resources of the page server are preprocessed, and firstly, each page resource is marked and respectively marked as multiple file types such as hypertext markup language, cascading style sheets and the like and classified; then, MD5 encryption is carried out on the classified page resource contents to obtain page resources with MD5 values; and recording and storing the page resource with the MD5 value and the address binding of the corresponding page resource. By the method, the address of the page resource corresponding to the page resource request can be directly obtained based on the MD5 value matching, and the corresponding page resource is loaded through the address of the page resource, so that the requested page resource can be quickly opened.
Further, the caching the page resource to the local cache resource includes:
judging the maximum cache threshold value of the local cache resource;
and when the cache value of the local cache resource is smaller than the maximum cache threshold value of the local cache resource, caching the page resource to the local cache resource.
In the preferred embodiment of the present invention, the space of the local cache resource is limited, so that the local cache resource needs to be cleaned in time, and the local cache resource is cleaned by setting the maximum cache threshold of the local cache resource. For example, setting the maximum cache threshold of the local cache resource to 256MB, when the cache value of the local cache resource is lower than 256MB, temporarily not cleaning the local cache resource, and caching when there is a page resource needing caching; when the cache value of the local cache resource is greater than or equal to 256MB, which indicates that the local cache is not supported at this time, the local cache resource needs to be cleaned, and the page resource is cached after the local cache resource is cleaned. By means of the method, reasonable utilization of the local cache space can be achieved, and negative effects such as page blocking and the like caused by the fact that the local cache space is occupied in a large amount are prevented.
Further, the periodically cleaning the page resource in the local cache resource by using the cache replacement algorithm includes:
counting the times of accessing the page resources in the local cache resources;
and when the number of times of accessing the page resources in the local cache resources within the preset time is lower than a second preset access threshold value, cleaning the page resources in the local cache resources by using the cache replacement algorithm.
In a preferred embodiment of the present invention, the page resource in the local cache resource is periodically cleaned by the following method, for example, counting the number of times that the user accesses the page resource in the local cache resource within a period of time, assuming that the set preset time is 10 days, and the second preset threshold is 3, when the number of times that the user accesses the same page resource in the local cache resource within 10 days is less than 3, it indicates that the frequency that the user accesses the page resource is low, and the page resource can be cleaned, so that the local cache space is saved; when the number of times that the user accesses the same page resource in the local cache resource within 10 days is more than or equal to 3, the frequency that the user accesses the page resource is high, the page resource does not need to be cleaned, and the user can conveniently and rapidly load, render and display the page resource when accessing the page resource next time.
Further, the loading and rendering of the page resource corresponding to the MD5 value of the page resource includes:
acquiring the address of the corresponding page resource based on the MD5 value of the page resource;
and loading and rendering the corresponding page resource according to the address of the page resource.
In the preferred embodiment of the present invention, when the MD5 value of the page resource exists in the local cache resource, the corresponding page resource address is indirectly obtained according to the MD5 value, and the requested page resource is directly loaded and rendered by the page resource address, thereby saving the process of resending the page server and realizing quick opening of the requested page resource.
In the preferred embodiment of the invention, step 1, pack the page resource in the page server end; step 2, acquiring page resource request information initiated by a user; step 3, the local terminal intercepts and analyzes the page resource request information initiated by the user; step 4, loading the marked page resources corresponding to the page request information by utilizing a client template loading and management mechanism; and 5, carrying out caching on the page resources and cleaning the local cache resources through a caching mechanism.
Step 1 may refer to the above embodiments to "mark and classify each page resource; performing MD5 encryption on the classified page resource contents to obtain page resources with MD5 values; and recording and storing the page resource with the MD5 value and the address binding of the corresponding page resource. "to obtain page resource request information, the resource request information includes an MD5 value of the page resource; "step 3 may refer to" performing local cache resource matching on the page resource request information by using a cache matching mechanism "in the above embodiment; "in the above embodiment, step 4 may refer to" when the MD5 value of the page resource exists in the local cache resource, load and render the page resource corresponding to the MD5 value of the page resource in the local cache resource; when the MD5 value of the page resource does not exist in the local cache resource, requesting a page server to load and render the page resource corresponding to the MD5 value of the page resource. "to describe, step 5 may refer to" determine the maximum cache threshold of the local cache resource in the above embodiment; and when the cache value of the local cache resource is smaller than the maximum cache threshold value of the local cache resource, caching the page resource to the local cache resource. Counting the times of accessing the page resources in the local cache resources; and when the number of times of accessing the page resources in the local cache resources within the preset time is lower than a second preset access threshold value, cleaning the page resources in the local cache resources by using the cache replacement algorithm. "is described.
Fig. 2 is a schematic structural diagram of a front-end information flow page loading apparatus provided in an embodiment of the present specification, including:
the information obtaining module 201 obtains page resource request information, where the resource request information includes an MD5 value of a page resource;
the resource matching module 202 is used for performing local cache resource matching on the page resource request information by using a cache matching mechanism;
a first loading module 203, configured to load and render a page resource corresponding to the MD5 value of the page resource in the local cache resource when the MD5 value of the page resource exists in the local cache resource;
and the second loading module 204 is used for requesting a page server to load and render the page resource corresponding to the MD5 value of the page resource when the MD5 value of the page resource does not exist in the local cache resource.
Further, the first loading module 203 includes a first executing module, configured to obtain an address of the corresponding page resource based on the MD5 value of the page resource; and loading and rendering the corresponding page resource according to the address of the page resource.
Further, the second loading module 204 includes a second executing module, configured to obtain an address of the corresponding page resource based on the MD5 value of the page resource; and loading and rendering the corresponding page resource according to the address of the page resource.
The functions of the apparatus in the embodiment of the present invention have been described in the above method embodiments, so that reference may be made to the related descriptions in the foregoing embodiments for details that are not described in the present embodiment, and further details are not described herein.
Based on the same inventive concept, the embodiment of the specification further provides the electronic equipment.
In the following, embodiments of the electronic device of the present invention are described, which may be regarded as specific physical implementations for the above-described embodiments of the method and apparatus of the present invention. Details described in the embodiments of the electronic device of the invention should be considered supplementary to the embodiments of the method or apparatus described above; for details which are not disclosed in embodiments of the electronic device of the invention, reference may be made to the above-described embodiments of the method or the apparatus.
Fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present specification. An electronic device 300 according to this embodiment of the invention is described below with reference to fig. 3. The electronic device 300 shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 3, electronic device 300 is embodied in the form of a general purpose computing device. The components of electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one memory unit 320, a bus 330 connecting different device components (including the memory unit 320 and the processing unit 310), a display unit 340, and the like.
Wherein the storage unit stores program code executable by the processing unit 310 to cause the processing unit 310 to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned processing method section of the present specification. For example, the processing unit 310 may perform the steps as shown in fig. 1.
The storage unit 320 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)3201 and/or a cache storage unit 3202, and may further include a read only memory unit (ROM) 3203.
The storage unit 320 may also include a program/utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including, but not limited to: an operating device, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 330 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 300, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 300 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 350. Also, the electronic device 300 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 360. Network adapter 360 may communicate with other modules of electronic device 300 via bus 330. It should be appreciated that although not shown in FIG. 3, other hardware and/or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices, to name a few.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments of the present invention described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, or a network device, etc.) execute the above-mentioned method according to the present invention. The computer program, when executed by a data processing apparatus, enables the computer readable medium to implement the above-described method of the invention, namely: such as the method shown in fig. 1.
Fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present disclosure.
A computer program implementing the method shown in fig. 1 may be stored on one or more computer readable media. The computer readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution apparatus, device, or apparatus. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components in embodiments in accordance with the invention may be implemented in practice using a general purpose data processing device such as a microprocessor or a Digital Signal Processor (DSP). The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
While the foregoing embodiments have described the objects, aspects and advantages of the present invention in further detail, it should be understood that the present invention is not inherently related to any particular computer, virtual machine or electronic device, and various general-purpose machines may be used to implement the present invention. The invention is not to be considered as limited to the specific embodiments thereof, but is to be understood as being modified in all respects, all changes and equivalents that come within the spirit and scope of the invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A front-end information flow page loading method is characterized by comprising the following steps:
acquiring page resource request information, wherein the resource request information comprises an MD5 value of a page resource;
performing local cache resource matching on the page resource request information by using a cache matching mechanism;
when the MD5 value of the page resource exists in the local cache resource, loading and rendering the page resource corresponding to the MD5 value of the page resource in the local cache resource;
when the MD5 value of the page resource does not exist in the local cache resource, requesting a page server to load and render the page resource corresponding to the MD5 value of the page resource.
2. The front-end information flow page loading method of claim 1, further comprising:
counting the access times of each page resource;
caching the page resources to the local cache resources when the access times of the page resources reach a first preset access threshold;
and periodically cleaning the page resources in the local cache resources by using a cache replacement algorithm.
3. A front-end information flow page loading method according to any of claims 1-2, wherein before obtaining the page resource request information, it comprises:
marking and classifying each page resource;
performing MD5 encryption on the classified page resource contents to obtain page resources with MD5 values;
and recording and storing the page resource with the MD5 value and the address binding of the corresponding page resource.
4. A front-end information flow page loading method according to any of claims 1 to 3, wherein said caching said page resource to said local cache resource comprises:
judging the maximum cache threshold value of the local cache resource;
and when the cache value of the local cache resource is smaller than the maximum cache threshold value of the local cache resource, caching the page resource to the local cache resource.
5. The front-end information flow page loading method according to any one of claims 1 to 4, wherein the periodically cleaning the page resource in the local cache resource by using the cache replacement algorithm includes:
counting the times of accessing the page resources in the local cache resources;
and when the number of times of accessing the page resources in the local cache resources within the preset time is lower than a second preset access threshold value, cleaning the page resources in the local cache resources by using the cache replacement algorithm.
6. The front-end information flow page loading method according to any one of claims 1 to 5, wherein the loading and rendering of the page resource corresponding to the MD5 value of the page resource comprises:
acquiring the address of the corresponding page resource based on the MD5 value of the page resource;
and loading and rendering the corresponding page resource according to the address of the page resource.
7. A front-end information flow page loading apparatus, comprising:
the information acquisition module is used for acquiring page resource request information, and the resource request information comprises an MD5 value of a page resource;
the resource matching module is used for carrying out local cache resource matching on the page resource request information by utilizing a cache matching mechanism;
a first loading module, configured to load and render a page resource corresponding to the MD5 value of the page resource in the local cache resource when the MD5 value of the page resource exists in the local cache resource;
and the second loading module is used for requesting a page server to load and render the page resource corresponding to the MD5 value of the page resource when the MD5 value of the page resource does not exist in the local cache resource.
8. The front-end information flow page loading apparatus according to claim 7, wherein before obtaining the page resource request information, the method includes:
marking and classifying each page resource;
performing MD5 encryption on the classified page resource contents to obtain page resources with MD5 values;
and recording and storing the page resource with the MD5 value and the address binding of the corresponding page resource.
9. An electronic device, wherein the electronic device comprises:
a processor and a memory storing computer-executable instructions that, when executed, cause the processor to perform the method of any of claims 1-6.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-6.
CN202110782278.9A 2021-07-09 2021-07-09 Front-end information flow page loading method and device and electronic equipment Pending CN113486273A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110782278.9A CN113486273A (en) 2021-07-09 2021-07-09 Front-end information flow page loading method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110782278.9A CN113486273A (en) 2021-07-09 2021-07-09 Front-end information flow page loading method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113486273A true CN113486273A (en) 2021-10-08

Family

ID=77938597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110782278.9A Pending CN113486273A (en) 2021-07-09 2021-07-09 Front-end information flow page loading method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113486273A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115190347A (en) * 2022-05-31 2022-10-14 北京达佳互联信息技术有限公司 Message processing method, message processing device, electronic equipment and storage medium
CN117312694A (en) * 2023-11-29 2023-12-29 深圳市纷享互联科技有限责任公司 Method, device and storage medium for constructing H5 application based on applet framework
CN117407091A (en) * 2023-12-12 2024-01-16 中核武汉核电运行技术股份有限公司 Rapid WEB picture loading method and system based on file localization deployment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760405A (en) * 2014-12-19 2016-07-13 阿里巴巴集团控股有限公司 Methods and devices for obtaining network resource for loading web page and method and device for caching network resource
US20160373545A1 (en) * 2015-06-16 2016-12-22 Guangzhou Ucweb Computer Technology Co., Ltd Method and apparatus for webpage resource acquisition
CN106790687A (en) * 2017-02-17 2017-05-31 和创(北京)科技股份有限公司 Webpage display method, web data processing method and server
CN107168963A (en) * 2016-03-07 2017-09-15 阿里巴巴集团控股有限公司 The page loading of client and caching method, system and the client of the page
CN108549673A (en) * 2018-03-29 2018-09-18 优视科技有限公司 Pre-add support method, client, server and the network system of web page resources
CN110825479A (en) * 2019-11-05 2020-02-21 江苏满运软件科技有限公司 Page processing method and device, terminal equipment, server and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760405A (en) * 2014-12-19 2016-07-13 阿里巴巴集团控股有限公司 Methods and devices for obtaining network resource for loading web page and method and device for caching network resource
US20160373545A1 (en) * 2015-06-16 2016-12-22 Guangzhou Ucweb Computer Technology Co., Ltd Method and apparatus for webpage resource acquisition
CN107168963A (en) * 2016-03-07 2017-09-15 阿里巴巴集团控股有限公司 The page loading of client and caching method, system and the client of the page
CN106790687A (en) * 2017-02-17 2017-05-31 和创(北京)科技股份有限公司 Webpage display method, web data processing method and server
CN108549673A (en) * 2018-03-29 2018-09-18 优视科技有限公司 Pre-add support method, client, server and the network system of web page resources
CN110825479A (en) * 2019-11-05 2020-02-21 江苏满运软件科技有限公司 Page processing method and device, terminal equipment, server and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115190347A (en) * 2022-05-31 2022-10-14 北京达佳互联信息技术有限公司 Message processing method, message processing device, electronic equipment and storage medium
CN115190347B (en) * 2022-05-31 2024-01-02 北京达佳互联信息技术有限公司 Message processing method, message processing device, electronic equipment and storage medium
CN117312694A (en) * 2023-11-29 2023-12-29 深圳市纷享互联科技有限责任公司 Method, device and storage medium for constructing H5 application based on applet framework
CN117312694B (en) * 2023-11-29 2024-02-02 深圳市纷享互联科技有限责任公司 Method, device and storage medium for constructing H5 application based on applet framework
CN117407091A (en) * 2023-12-12 2024-01-16 中核武汉核电运行技术股份有限公司 Rapid WEB picture loading method and system based on file localization deployment
CN117407091B (en) * 2023-12-12 2024-03-19 中核武汉核电运行技术股份有限公司 Rapid WEB picture loading method and system based on file localization deployment

Similar Documents

Publication Publication Date Title
US10567529B2 (en) Unified tracking data management
US20220083448A1 (en) Deriving component statistics for a stream enabled application
CN113486273A (en) Front-end information flow page loading method and device and electronic equipment
US9575927B2 (en) RDMA-optimized high-performance distributed cache
US9612807B2 (en) Code placement using a dynamic call graph
RU2629448C2 (en) System and method of controlling and organizing web-browser cash
US9077681B2 (en) Page loading optimization using page-maintained cache
RU2608668C2 (en) System and method for control and organisation of web-browser cache for offline browsing
US20070101061A1 (en) Customized content loading mechanism for portions of a web page in real time environments
US20160173637A1 (en) Cached Data Detection
CN108090078B (en) Document online preview method and device, storage medium and electronic equipment
CN108536617B (en) Cache management method, medium, system and electronic device
CN111198996A (en) Page display method and device and electronic equipment
CN112347169A (en) PHP (hypertext preprocessor) framework based user request processing method and device and electronic equipment
US20190095538A1 (en) Method and system for generating content from search results rendered by a search engine
CN111988405A (en) Message rewriting method of load balancing device and load balancing device
US8595320B2 (en) If-none-match for aggregated page distribution
Huang Research on Web front-end performance optimization of campus portal websites
CN117478743A (en) Data caching method, device, equipment and medium for balancing freshness and access frequency
CN117435795A (en) Data acquisition method, apparatus, device, storage medium, and program product
US8689329B2 (en) Scoping scripts in a page
CN113821519A (en) Data processing method and field-driven design architecture
CN117370353A (en) Method, system, equipment and storage medium for reading and writing data fragments in key value storage
Wang Research on web performance optimization principles and models
JP2014127090A (en) Information processing device and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211008