CN111737615A - Method and device for acquiring page resources, electronic equipment and readable storage medium - Google Patents

Method and device for acquiring page resources, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111737615A
CN111737615A CN202010407218.4A CN202010407218A CN111737615A CN 111737615 A CN111737615 A CN 111737615A CN 202010407218 A CN202010407218 A CN 202010407218A CN 111737615 A CN111737615 A CN 111737615A
Authority
CN
China
Prior art keywords
page
information
equipment
resource
page resource
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.)
Granted
Application number
CN202010407218.4A
Other languages
Chinese (zh)
Other versions
CN111737615B (en
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.)
Apollo Intelligent Connectivity Beijing Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010407218.4A priority Critical patent/CN111737615B/en
Publication of CN111737615A publication Critical patent/CN111737615A/en
Priority to KR1020210062881A priority patent/KR20210141412A/en
Priority to JP2021082579A priority patent/JP7275450B2/en
Application granted granted Critical
Publication of CN111737615B publication Critical patent/CN111737615B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a method and a device for acquiring page resources, electronic equipment and a readable storage medium, and relates to the technical field of webpage processing. The implementation scheme adopted when the page resources are acquired is as follows: receiving a page request sent by first equipment; sending first information to second equipment, wherein the first information is used for inquiring whether page resources corresponding to the page request exist or not; and in response to receiving second information which is sent by the second equipment and has the page resource, sending third information containing the page resource to the first equipment. According to the method and the device, the response speed and the response efficiency of the page resources can be improved, the operation pressure of the website server is reduced, and the operation stability of the website server is ensured.

Description

Method and device for acquiring page resources, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for acquiring a page resource in the field of web page processing technologies, an electronic device, and a readable storage medium.
Background
The web pages in the internet can greatly enrich the way in which users acquire, transfer and process information, and the web pages are basic information units constituting websites. In the prior art, when a user browses a web page in a website, a mode of directly accessing a static page or reading a static cache of the page from a cloud is generally adopted. When the page resources are acquired by directly accessing the static pages, if the requested page resources do not have corresponding static pages, information that the page resources do not exist is returned to the user, so that the usability of the website is reduced; when the page static cache is read from the cloud to acquire the page resources, each page request sent by the user needs to be forwarded to the website server for processing, so that the computing resources of the website server are wasted, and the response speed of the page resources is reduced.
Disclosure of Invention
The technical scheme adopted by the application for solving the technical problem is to provide a method for acquiring page resources, which comprises the following steps: receiving a page request sent by first equipment; sending first information to second equipment, wherein the first information is used for inquiring whether page resources corresponding to the page request exist or not; and in response to receiving second information which is sent by the second equipment and has the page resource, sending third information containing the page resource to the first equipment. According to the method and the device, the response speed and the response efficiency of the page resources can be improved, the operation pressure of the website server is reduced, and the operation stability of the website server is ensured.
According to a preferred embodiment of the present application, the method further comprises: if second information which is sent by second equipment and has the page resource is not received, fourth information is sent to a website server, and the fourth information is used for generating the page resource corresponding to the page request; and responding to the received fifth information for generating the page resource sent by the website server, sending sixth information containing the page resource to the first equipment, and caching the page resource to the second equipment. The step can avoid the problem that the page resource cannot be returned to the user when the corresponding page resource does not exist in the second device, and ensure that the page request of the user can be responded.
According to a preferred embodiment of the present application, the sending the first information to the second device includes: analyzing the page request to obtain page identification information; and sending the page identification information to the second equipment to inquire whether page resources corresponding to the page identification information exist in the second equipment. The method can improve the accuracy of acquiring the page resources.
According to a preferred embodiment of the present application, the service end of the website stores in advance a service logic code for generating a page resource.
According to a preferred embodiment of the present application, after caching the page resource to the second device, the method further includes: and setting the cache validity period of the page resource in the second device. The step can save the storage resource of the second device and improve the flexibility of acquiring the page resource.
The technical solution adopted by the present application to solve the technical problem is to provide a device for acquiring page resources, including: the receiving unit is used for receiving a page request sent by first equipment; a sending unit, configured to send first information to a second device, where the first information is used to query whether a page resource corresponding to the page request exists; and the response unit is used for responding to the second information which is sent by the second equipment and has the page resource, and sending third information containing the page resource to the first equipment.
According to a preferred embodiment of the present application, the response unit is further configured to perform: if second information which is sent by second equipment and has the page resource is not received, fourth information is sent to a website server, and the fourth information is used for generating the page resource corresponding to the page request; and responding to the received fifth information for generating the page resource sent by the website server, sending sixth information containing the page resource to the first equipment, and caching the page resource to the second equipment.
According to a preferred embodiment of the present application, when sending the first information to the second device, the sending unit specifically executes: analyzing the page request to obtain page identification information; and sending the page identification information to the second equipment to inquire whether page resources corresponding to the page identification information exist in the second equipment.
According to a preferred embodiment of the present application, the service end of the website stores in advance a service logic code for generating a page resource.
According to a preferred embodiment of the present application, after caching the page resource to the second device, the responding unit further performs: and setting the cache validity period of the page resource in the second device.
One embodiment in the above application has the following advantages or benefits: according to the method and the device, the response speed and the response efficiency of the page resources can be improved, the operation pressure of the website server is reduced, and the operation stability of the website server is ensured. Because the technical means that the page resource corresponding to the page request is firstly inquired in the second device and then the page resource is generated by the website server under the condition that the corresponding page resource does not exist in the second device is adopted, the technical problems that in the prior art, the calculation resource of the website server is wasted and the response speed of the page resource is reduced because the page request sent by the user needs to be processed by the website server are solved, so that the technical effects of improving the response speed and response efficiency of the page resource, reducing the operating pressure of the website server and ensuring the operating stability of the website server are achieved.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a flowchart of a method for acquiring page resources according to a first embodiment of the present application;
FIG. 2 is an architecture diagram for acquiring page resources according to a second embodiment of the present application;
fig. 3 is a block diagram of an apparatus for acquiring page resources according to a third embodiment of the present application;
fig. 4 is a block diagram of an electronic device for implementing the method for acquiring page resources according to the embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a flowchart of a method for acquiring a page resource according to a first embodiment of the present application, as shown in fig. 1, the method includes:
in S101, a page request sent by a first device is received.
The execution subject of the embodiment of the present application is the Web server, which is used for processing the page request to provide the corresponding content to the user, that is, after receiving an HTTP request sent by the user, the Web server returns an HTTP response, for example, returns an HTML page, to the client.
In this step, the Web server receives a page request sent by the first device, where the page request is a request sent to the Web server of the website to which the Web page belongs to acquire a corresponding page resource when the user browses the Web page through the first device. The page request received by the Web server in this step is an HTTP request sent by the user through the first device.
Preferably, the Web server in the embodiment of the present application is an Nginx server. The Nginx server is a high-performance HTTP and reverse proxy server, is also an IMAP/POP3/SMTP server, and has the characteristics of less memory occupation, high stability, strong concurrency capability and richer module libraries. It is understood that the Web server in the embodiment of the present application may also be another type of server, for example, an Apache server.
In S102, first information is sent to a second device, where the first information is used to query whether a page resource corresponding to the page request exists.
After receiving the page request sent by the first device in step S101, the Web server in this step sends first information to the second device, so that the second device queries whether a page resource corresponding to the page request exists.
The second device in the embodiment of the present application is a cache server, where page resources corresponding to different page requests are cached in the cache server, and the cached page resources belong to a static page. Preferably, the second device in this embodiment of the present application is a Memcached server. The Memcached server is a distributed memory cache server, stores data in a memory, and has the characteristics of simple use, high memory utilization rate and strong performance. It is understood that the second device in the embodiment of the present application may also be another type of cache server, for example, a Redis server.
It can be understood that, when the cache server is deployed, a standalone deployment scheme or a cluster deployment scheme can be selected according to the number of page resources included in a website, so that effective utilization of storage resources in the cache server is ensured.
That is to say, when the Web server in this step acquires the page resource corresponding to the page request, the Web server first queries the page resource cached in advance from the second device, thereby avoiding the problem that the page resource needs to be forwarded to the Web server for processing after the page request is received each time, saving the computing resource of the Web server, reducing the operating pressure of the Web server, and being capable of improving the response efficiency and response speed of the page resource.
Specifically, when the first information is sent to the second device, the following manner may be adopted: analyzing a page request sent by a client to obtain page identification information, where the page identification information is used to uniquely identify a page Resource and may include a Uniform Resource Locator (URL) of the page Resource, a Uniform Resource Identifier (URI) of the page Resource, and the like; and sending the analyzed page identification information to the second equipment to inquire whether page resources corresponding to the page identification information exist in the second equipment. That is to say, in this step, the obtained page identification information is taken as a key, a value corresponding to the key in the second device is queried and taken as a page resource corresponding to the page request, so that the accuracy of obtaining the page resource is improved.
It can be understood that, if the Web server in the embodiment of the present application is an nginnx server, and the second device is a Memcached server, when the nginnx server is compiled and installed, a Memcached module may be preconfigured in the nginnx server in a manner of adding a Memcached extension, so that the nginnx server accesses the Memcached server through the Memcached module, so as to query a pre-cached page resource. Because the Memcached module acquires the cache data in the Memcached server by directly inquiring the memory, the inquiry speed is very high, and the response speed of page resources is effectively improved.
In S103, in response to receiving the second information that the second device sends and has the page resource, third information that includes the page resource is sent to the first device.
After transmitting the first information to the second device in step S102, the Web server in this step transmits third information containing the page resource to the first device in response to receiving the second information transmitted by the second device and having the page resource corresponding to the page request.
That is to say, when the second device queries the page resource corresponding to the page request, the second device sends the second information to the Web server, and after receiving the second information, the Web server sends the queried page resource to the first device, so that the page request of the user can directly and quickly respond to the page resource to the user without being processed by the website server, thereby saving the computing resource of the website server.
When the step fails to receive the second information that is sent by the second device and has the page resource, that is, the second device does not have the page resource corresponding to the page request, for example, the current page resource is initially accessed or is removed from the cache server, the step may further include the following steps: the Web server sends fourth information to the website server, the sent fourth information is used for the website server to generate page resources corresponding to the page request, and the fourth information comprises the page request; and responding to the received fifth information for generating the page resource sent by the website server, sending sixth information containing the page resource to the first equipment, and caching the page resource to the second equipment.
Therefore, if the pre-cached page resources cannot be acquired from the second device in this step, the page resources generated by the website server according to the page request are acquired, the problem that the page resources cannot be returned to the first device is avoided, and it is ensured that the page requests of the user can all be responded.
When the Web server in this step sends the fourth information to the Web server, the fourth information may be directly forwarded to a service logic layer of the Web server according to a pre-configured code, so as to run a pre-programmed code to generate a page resource.
Specifically, the website server in the embodiment of the present application stores, in advance, a business logic code for generating a page resource. After receiving the fourth information sent by the Web server, the business logic code in the Web server starts to run, and after a series of operations of data acquisition and logic judgment are performed, such as database query, upstream and downstream service call, abnormal condition judgment, and the like, the obtained various data are assembled, and a page resource corresponding to a page request included in the fourth information is generated.
And after the website server generates the page resource, sending fifth information for generating the page resource to the Web server, so that the Web server sends sixth information containing the generated page resource to the first device and simultaneously caches the page resource to the second device, so that other users can directly obtain the page resource from the second device when requesting to browse the page resource again without obtaining the page resource by running a service logic code through the website server.
Because the storage resource of the second device is limited, to avoid the waste of the storage resource in the second device, and to improve the flexibility of acquiring the page resource, this step may include the following contents when caching the page resource to the second device: the caching validity period of the page resource in the second device is set, so that the cached page resource is automatically cleared from the second device after the validity period is reached.
In this step, different cache validity periods can be set for different page resources according to the attribute information of the page resources, such as the types and names of the page resources; the same caching period can also be set for different page resources.
By utilizing the content disclosed by the application, the Web server firstly queries the page resource corresponding to the page request in the second equipment, and then the website server generates the page resource under the condition that the corresponding page resource does not exist in the second equipment, so that the page request sent by the user does not need to be processed by the website server, the operating pressure of the website server is reduced, the operating stability of the website server is improved, the page request sent by the user basically can hit the page resource pre-cached in the cache server, and the response speed and the response efficiency of the page resource are further improved.
Fig. 2 is an architecture diagram for acquiring a page resource according to a second embodiment of the present application, and as shown in fig. 2, the architecture diagram includes a first device, a Web server, a second device, and a Web server, after a user sends a page request to the Web server through the first device, the Web server first queries whether a page resource corresponding to the page request exists in the second device, and if so, directly sends the acquired page resource to the first device; otherwise, the page request is forwarded to the website server, the page resource generated by the website server is obtained, and the page resource is sent to the first equipment and cached to the second equipment.
Fig. 3 is a structural diagram of an apparatus for acquiring page resources according to a third embodiment of the present application, as shown in fig. 3, where the apparatus is located in a Web server, and includes: a receiving unit 301, a transmitting unit 302, and a responding unit 303.
A receiving unit 301, configured to receive a page request sent by a first device.
The receiving unit 301 is configured to receive a page request sent by a first device, where the page request is a request sent to a Web server of a website to which a Web page belongs to obtain a corresponding page resource when a user browses the Web page through the first device. The page request received by the receiving unit 301 is an HTTP request sent by a user through a first device.
A sending unit 302, configured to send first information to a second device, where the first information is used to query whether a page resource corresponding to the page request exists.
After the receiving unit 301 receives the page request sent by the first device, the sending unit 302 sends first information to the second device, so that the second device queries whether a page resource corresponding to the page request exists.
Specifically, when the sending unit 302 sends the first information to the second device, the following manner may be adopted: analyzing a page request sent by a client to acquire page identification information; and sending the analyzed page identification information to the second equipment to inquire whether page resources corresponding to the page identification information exist in the second equipment.
A responding unit 303, configured to send, to the first device, third information including the page resource in response to receiving the second information that is sent by the second device and that has the page resource.
After the sending unit 302 sends the first information to the second device, the responding unit 303 sends third information containing the page resource to the first device in response to receiving the second information sent by the second device and having the page resource corresponding to the page request.
When the response unit 303 fails to receive the second information of the presence page resource sent by the second device, the response unit 303 may further include the following: sending fourth information to the website server, wherein the sent fourth information is used for generating page resources corresponding to the page request, and the fourth information comprises the page request; and responding to the received fifth information for generating the page resource sent by the website server, sending sixth information containing the page resource to the first equipment, and caching the page resource to the second equipment.
Therefore, if the response unit 303 cannot acquire the page resource cached in advance from the second device, the response unit 303 acquires the page resource generated by the web server according to the page request, so as to avoid the problem that the page resource cannot be returned to the first device, and ensure that the page request of the user can be responded.
When the response unit 303 sends the fourth information, the fourth information including the page request may be directly forwarded to a service logic layer of the website server according to a preconfigured code, so as to run a preprogrammed code to generate the page resource.
After the web server generates the page resource, the response unit 303 sends the sixth information including the generated page resource to the first device, and simultaneously caches the page resource to the second device, so that when another user requests to browse the page resource again, the page resource can be directly obtained from the second device without obtaining the page resource by running the service logic code through the web server.
Since the storage resource of the second device is limited, to avoid the waste of the storage resource in the second device and improve the flexibility of acquiring the page resource, the response unit 303 may include the following contents when caching the page resource to the second device: the caching validity period of the page resource in the second device is set, so that the cached page resource is automatically cleared from the second device after the validity period is reached.
The responding unit 303 may set different cache validity periods for different page resources according to attribute information of the page resources, such as the type and name of the page resources; the same caching period can also be set for different page resources.
According to an embodiment of the present application, an electronic device and a computer-readable storage medium are also provided.
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 4, the electronic apparatus includes: one or more processors 401, memory 402, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 4, one processor 401 is taken as an example.
Memory 402 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the method for acquiring page resources provided by the present application. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the method of acquiring page resources provided by the present application.
The memory 402, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method for acquiring page resources in the embodiment of the present application (for example, the receiving unit 301, the sending unit 302, and the responding unit 303 shown in fig. 3). The processor 41 executes various functional applications of the server and data processing by running non-transitory software programs, instructions and modules stored in the memory 402, namely, implements the method for acquiring page resources in the above method embodiment.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 402 may optionally include memory located remotely from the processor 401, and these remote memories may be connected over a network to an electronic device of the method of retrieving page resources. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the method for acquiring page resources may further include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected by a bus or other means, and fig. 4 illustrates an example of a connection by a bus.
The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device of the method of acquiring page resources, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, and the like. The output devices 404 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the Web server firstly queries the page resource corresponding to the page request in the second device, and then the website server generates the page resource under the condition that the corresponding page resource does not exist in the second device, so that the page request sent by a user does not need to be processed by the website server, the operation pressure of the website server is reduced, the operation stability of the website server is improved, the page request sent by the user basically can hit the page resource pre-cached in the cache server, and the response speed and the response efficiency of the page resource are further improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (12)

1. A method for acquiring page resources is characterized by comprising the following steps:
receiving a page request sent by first equipment;
sending first information to second equipment, wherein the first information is used for inquiring whether page resources corresponding to the page request exist or not;
and in response to receiving second information which is sent by the second equipment and has the page resource, sending third information containing the page resource to the first equipment.
2. The method of claim 1, further comprising:
if second information which is sent by second equipment and has the page resource is not received, fourth information is sent to a website server, and the fourth information is used for generating the page resource corresponding to the page request;
and responding to the received fifth information for generating the page resource sent by the website server, sending sixth information containing the page resource to the first equipment, and caching the page resource to the second equipment.
3. The method of claim 1, wherein sending the first information to the second device comprises:
analyzing the page request to obtain page identification information;
and sending the page identification information to the second equipment to inquire whether page resources corresponding to the page identification information exist in the second equipment.
4. The method according to claim 2, wherein the service end of the website stores business logic codes for generating page resources in advance.
5. The method of claim 2, wherein after caching the page resource to the second device, further comprising:
and setting the cache validity period of the page resource in the second device.
6. An apparatus for acquiring page resources, comprising:
the receiving unit is used for receiving a page request sent by first equipment;
a sending unit, configured to send first information to a second device, where the first information is used to query whether a page resource corresponding to the page request exists;
and the response unit is used for responding to the second information which is sent by the second equipment and has the page resource, and sending third information containing the page resource to the first equipment.
7. The apparatus of claim 6, wherein the response unit is further configured to perform:
if second information which is sent by second equipment and has the page resource is not received, fourth information is sent to a website server, and the fourth information is used for generating the page resource corresponding to the page request;
and responding to the received fifth information for generating the page resource sent by the website server, sending sixth information containing the page resource to the first equipment, and caching the page resource to the second equipment.
8. The apparatus according to claim 6, wherein the sending unit, when sending the first information to the second device, specifically performs:
analyzing the page request to obtain page identification information;
and sending the page identification information to the second equipment to inquire whether page resources corresponding to the page identification information exist in the second equipment.
9. The apparatus according to claim 7, wherein the website server stores business logic code for generating page resources in advance.
10. The apparatus of claim 7, wherein the response unit further performs, after caching the page resource to the second device:
and setting the cache validity period of the page resource in the second device.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-5.
CN202010407218.4A 2020-05-14 2020-05-14 Method and device for acquiring page resources, electronic equipment and readable storage medium Active CN111737615B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202010407218.4A CN111737615B (en) 2020-05-14 2020-05-14 Method and device for acquiring page resources, electronic equipment and readable storage medium
KR1020210062881A KR20210141412A (en) 2020-05-14 2021-05-14 Method and device for obtaining page resources, electronic equipment and readable storage medium
JP2021082579A JP7275450B2 (en) 2020-05-14 2021-05-14 Method, apparatus, electronic device, and readable storage medium for obtaining page resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010407218.4A CN111737615B (en) 2020-05-14 2020-05-14 Method and device for acquiring page resources, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111737615A true CN111737615A (en) 2020-10-02
CN111737615B CN111737615B (en) 2024-08-20

Family

ID=72647185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010407218.4A Active CN111737615B (en) 2020-05-14 2020-05-14 Method and device for acquiring page resources, electronic equipment and readable storage medium

Country Status (3)

Country Link
JP (1) JP7275450B2 (en)
KR (1) KR20210141412A (en)
CN (1) CN111737615B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269607A (en) * 2020-11-17 2021-01-26 北京百度网讯科技有限公司 Applet control method, system, server and terminal device
CN113742625A (en) * 2021-09-07 2021-12-03 北京百度网讯科技有限公司 Page data processing method, device, equipment and medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338803A (en) * 2021-12-01 2022-04-12 北京达佳互联信息技术有限公司 Resource acquisition method, device, equipment and storage medium
CN114979004B (en) * 2022-06-20 2024-02-27 中国工商银行股份有限公司 Information processing method, device, equipment and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160226730A1 (en) * 2013-09-10 2016-08-04 Meetrics Gmbh A Method And System For Determining Page Impression In A Client-Server System
CN107025234A (en) * 2016-02-01 2017-08-08 中国移动通信集团公司 A kind of information-pushing method and caching server
CN108566411A (en) * 2018-02-07 2018-09-21 链家网(北京)科技有限公司 Static resource acquisition methods, electronic equipment and storage medium
CN108733701A (en) * 2017-04-20 2018-11-02 杭州施强教育科技有限公司 A kind of query page buffer control method applied to online education
CN108769189A (en) * 2018-05-28 2018-11-06 上海恺英网络科技有限公司 The access method and equipment of cross-domain resource
CN108989266A (en) * 2017-05-31 2018-12-11 腾讯科技(深圳)有限公司 A kind of processing method for preventing webpage from kidnapping and client and server
CN109408750A (en) * 2018-09-26 2019-03-01 中国平安财产保险股份有限公司 Page display method, device, computer equipment and storage medium
CN110096659A (en) * 2019-03-27 2019-08-06 北京三快在线科技有限公司 A kind of page display method, device, equipment and readable storage medium storing program for executing
CN110309931A (en) * 2018-03-20 2019-10-08 腾讯科技(深圳)有限公司 A kind of service optimization method and device
CN110889027A (en) * 2019-11-22 2020-03-17 北京金山云网络技术有限公司 Method and device for accessing webpage, terminal equipment and server

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003044510A (en) * 2001-07-26 2003-02-14 Matsushita Electric Ind Co Ltd Gateway system
US20050172076A1 (en) * 2004-01-30 2005-08-04 Gateway Inc. System for managing distributed cache resources on a computing grid
JP4770203B2 (en) * 2005-03-08 2011-09-14 三菱電機株式会社 Application acquisition method and application acquisition method
US8965864B2 (en) * 2006-10-31 2015-02-24 Sap Se Method and system for efficient execution and rendering of client/server interactive applications
JP2008287660A (en) * 2007-05-21 2008-11-27 Hitachi Ltd Cache server, cache management method and cache management program
BRPI0919935A2 (en) * 2008-10-24 2016-02-16 Univ East Carolina method for performing hearing assessment tests using a computer network, and, the hearing system
JP4575993B1 (en) * 2010-03-23 2010-11-04 株式会社野村総合研究所 Information processing apparatus, method and computer program for processing request
JP2012221368A (en) * 2011-04-12 2012-11-12 Canon Inc Cache system and client device
CN104424199B (en) * 2013-08-21 2018-07-24 阿里巴巴集团控股有限公司 searching method and device
CN104572099B (en) * 2014-12-31 2017-10-24 深圳市酷开网络科技有限公司 Lower coupling frame data processing method and system based on component and middleware

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160226730A1 (en) * 2013-09-10 2016-08-04 Meetrics Gmbh A Method And System For Determining Page Impression In A Client-Server System
CN107025234A (en) * 2016-02-01 2017-08-08 中国移动通信集团公司 A kind of information-pushing method and caching server
CN108733701A (en) * 2017-04-20 2018-11-02 杭州施强教育科技有限公司 A kind of query page buffer control method applied to online education
CN108989266A (en) * 2017-05-31 2018-12-11 腾讯科技(深圳)有限公司 A kind of processing method for preventing webpage from kidnapping and client and server
CN108566411A (en) * 2018-02-07 2018-09-21 链家网(北京)科技有限公司 Static resource acquisition methods, electronic equipment and storage medium
CN110309931A (en) * 2018-03-20 2019-10-08 腾讯科技(深圳)有限公司 A kind of service optimization method and device
CN108769189A (en) * 2018-05-28 2018-11-06 上海恺英网络科技有限公司 The access method and equipment of cross-domain resource
CN109408750A (en) * 2018-09-26 2019-03-01 中国平安财产保险股份有限公司 Page display method, device, computer equipment and storage medium
CN110096659A (en) * 2019-03-27 2019-08-06 北京三快在线科技有限公司 A kind of page display method, device, equipment and readable storage medium storing program for executing
CN110889027A (en) * 2019-11-22 2020-03-17 北京金山云网络技术有限公司 Method and device for accessing webpage, terminal equipment and server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
廖庆伟;田志宏;: "IPv6在线代理的设计与实现", 智能计算机与应用, no. 04, 1 August 2013 (2013-08-01), pages 62 - 64 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269607A (en) * 2020-11-17 2021-01-26 北京百度网讯科技有限公司 Applet control method, system, server and terminal device
CN113742625A (en) * 2021-09-07 2021-12-03 北京百度网讯科技有限公司 Page data processing method, device, equipment and medium

Also Published As

Publication number Publication date
JP7275450B2 (en) 2023-05-18
CN111737615B (en) 2024-08-20
KR20210141412A (en) 2021-11-23
JP2021179994A (en) 2021-11-18

Similar Documents

Publication Publication Date Title
CN111737615B (en) Method and device for acquiring page resources, electronic equipment and readable storage medium
CN109683998B (en) Internationalization realization method, device and system
CN107463641B (en) System and method for improving access to search results
JP5420087B2 (en) Method and system for providing a message including a universal resource locator
KR102294326B1 (en) Prefetching application data for periods of disconnectivity
CN111159592B (en) Search result page generation method and device, electronic equipment and storage medium
CN112000394B (en) Method, apparatus, device and storage medium for accessing applet
CN110830374B (en) Method and device for gray level release based on SDK
CN111770161B (en) https sniffing jump method and device
US11711285B2 (en) Method, apparatus, electronic device and readable storage medium for adjusting instance number
CN111782692A (en) Frequency control method and device
CN112182445A (en) Method and device for optimizing client page performance
CN111177539A (en) Search result page generation method and device, electronic equipment and storage medium
CN113158098A (en) Page generation method, device, equipment and medium
CN112559867A (en) Business content output method, device, equipment, storage medium and program product
CN113641706B (en) Data query method and device
CN109710604A (en) Data processing method, device, system, computer readable storage medium
CN110580322B (en) Independent visitor information processing method and device, electronic equipment and storage medium
CN113138943B (en) Method and device for processing request
JP2017535847A (en) Method and system for content caching and transmission
US20210042334A1 (en) Multi-cloud object store access
CN111078736A (en) Data aggregation processing method and device, terminal and storage medium
CN113220981A (en) Method and device for optimizing cache
CN111935327A (en) Domain name allocation method, device, equipment and computer readable storage medium
US9692702B1 (en) Automated throttling of website polling

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20211013

Address after: 100176 101, floor 1, building 1, yard 7, Ruihe West 2nd Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Applicant after: Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd.

Address before: 2 / F, baidu building, 10 Shangdi 10th Street, Haidian District, Beijing 100085

Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant