CN112883298B - Information processing method, device, electronic equipment and storage medium - Google Patents

Information processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112883298B
CN112883298B CN201911198200.1A CN201911198200A CN112883298B CN 112883298 B CN112883298 B CN 112883298B CN 201911198200 A CN201911198200 A CN 201911198200A CN 112883298 B CN112883298 B CN 112883298B
Authority
CN
China
Prior art keywords
address information
content
webpage
element content
web page
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.)
Active
Application number
CN201911198200.1A
Other languages
Chinese (zh)
Other versions
CN112883298A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201911198200.1A priority Critical patent/CN112883298B/en
Publication of CN112883298A publication Critical patent/CN112883298A/en
Application granted granted Critical
Publication of CN112883298B publication Critical patent/CN112883298B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Abstract

The application provides an information processing method, which comprises the following steps: the method comprises the steps that a webpage server side obtains a first request message which is sent by a webpage request side and used for obtaining a target webpage; the webpage server side provides first content address information for acquiring element content in the target webpage for the webpage request side aiming at the first request message, wherein the first content address information corresponds to the address information of the webpage server side; the webpage server side obtains the first content address information and the second request message for obtaining the element content, wherein the second request message is sent by the webpage request side and aims at the first content address information; the webpage server acquires the element content according to the first content address information aiming at the second request message; and the webpage server side provides the element content for the webpage request side. The information processing method provided by the invention can reduce the CPU resource consumed by the webpage request end when the webpage is opened.

Description

Information processing method, device, electronic equipment and storage medium
Technical Field
The application relates to a computer application technology, in particular to an information processing method; the application also relates to an information processing device, an electronic device and a storage medium.
Background
When a webpage is accessed through the webpage request end, the webpage request end sends a webpage access request message to the webpage service end, after receiving the webpage access request message, the webpage service end sends an HTML (Hyper Text Markup Language ) file corresponding to the webpage request end, the webpage request end accesses the HTML file, loads webpage elements corresponding to the URL in the HTML file, and completes rendering of characters, pictures, tables, sounds and other elements on the webpage, so that the webpage is generated and opened.
In general, HTML files corresponding to a web page often include multiple URLs (Uniform Resource Locator, uniform resource locators), and multiple URLs often correspond to multiple domain names, so that in order to generate and open the web page, the web page request end needs to sequentially perform multiple DNS (Domain Name System ) parsing, TCP (Transmission Control Protocol, transmission control protocol) handshake, HTTP (Hyper Text Transfer Protocol ) handshake processes, so that CPU (Central Processing Unit ) resources of the web page request end are consumed greatly.
Disclosure of Invention
The application provides an information processing method, an information processing device, electronic equipment and a storage medium, so that CPU resources consumed by a webpage request end when a webpage is opened are reduced.
The application provides an information processing method, which comprises the following steps:
the method comprises the steps that a webpage server side obtains a first request message which is sent by a webpage request side and used for obtaining a target webpage;
the webpage server side provides first content address information for acquiring element content in the target webpage for the webpage request side aiming at the first request message, wherein the first content address information corresponds to the address information of the webpage server side;
the webpage server side obtains the first content address information and the second request message for obtaining the element content, wherein the second request message is sent by the webpage request side and aims at the first content address information;
the webpage server acquires the element content according to the first content address information aiming at the second request message;
and the webpage server side provides the element content for the webpage request side.
Optionally, the method further comprises:
the webpage server side obtains the second content website information aiming at the first request message, wherein the second content website information is address information contained in initial webpage data which is obtained by the webpage server side and used for manufacturing the target webpage;
The web page server generates the first content address information according to the second content website information;
the web page server establishes a corresponding relation between the first content address information and the second content address information;
the web server obtains the element content according to the first content address information aiming at the second request message, and the method comprises the following steps: and the webpage server acquires the element content according to the first content address information and the corresponding relation between the first content address information and the second content address information aiming at the second request message.
Optionally, for the second request message, the web server obtains the element content according to the first content address information and a correspondence between the first content address information and the second content address information, where the obtaining includes:
the webpage server side obtains the second content address information according to the first content address information and the corresponding relation between the first content address information and the second content address information;
and the webpage server acquires the element content according to the second content address information.
Optionally, the obtaining, by the web server, the element content according to the second content address information includes: and the webpage server acquires the element content according to the first source address information of the element content contained in the second content address information.
Optionally, the obtaining, by the web server, the element content according to the second content address information includes:
the webpage server side obtains second source address information of the element content according to the second content address information, wherein the second source address information of the element content corresponds to the address information of the webpage server side;
the webpage server side provides the webpage request side with second source address information of the element content;
the webpage server side obtains second source address information aiming at the element content and sent by the webpage request side, and third request information for obtaining the element content;
and the webpage server acquires the element content according to the second source address information of the element content aiming at the third request message.
Optionally, the obtaining, by the web server, the second source address information of the element content according to the second content address information includes:
The web page server obtains first source address information of the element content according to the second content address information;
and the webpage server generates second source address information of the element content according to the first source address information of the element content.
Optionally, the method further comprises: the web page server establishes a corresponding relation between the second source address information of the element content and the first source address information of the element content;
the web server obtains the element content according to the second source address information of the element content aiming at the third request message, and the method comprises the following steps:
the web page server obtains the first source address information of the element content according to the second source address information of the element content and the corresponding relation between the second source address information of the element content and the first source address information of the element content aiming at the third request message;
and the webpage server acquires the element content according to the first source address information of the element content.
Optionally, the first source address information of the element content is address information of a device storing the element content.
Optionally, the method further comprises:
The web page server replaces address information contained in the initial web page data of the target web page with the first content website information to generate target web page data of the target web page;
the web page server provides, for the first request message, first content address information for obtaining element content in the target web page to the web page request terminal, including: and providing the target webpage data of the target webpage for the webpage request end aiming at the first request message.
Optionally, the first content address information includes domain name information of the web server.
Optionally, the method further comprises: the web page server establishes a transmission channel between the web page server and the web page request terminal aiming at the first request message;
the web page server provides the element content to the web page request end, which comprises the following steps: the web page server side provides the element content to the web page request side through a transmission channel between the web page server side and the web page request side.
Optionally, the web server includes a first device, where the first device is configured with a device for generating the first content address information.
Optionally, the obtaining, by the web server, the element content according to the first content address information with respect to the second request message includes: the first device obtains the element content from the device storing the element content according to the first content address information aiming at the second request message.
Optionally, the web page server provides the element content to the web page request end, including: the first device provides the element content to the web page request end.
In another aspect of the present application, an information processing apparatus is provided, which is applied to a web server, and includes:
a first request message obtaining unit for obtaining a target web page sent by a web page request end
A first request message;
a first content address information obtaining unit, configured to provide, for the first request message, first content address information for obtaining element content in the target web page to the web page request end, where the first content address information corresponds to address information of the web page server end;
a second request message obtaining unit, configured to obtain a second request message for obtaining the element content, where the second request message is sent by the web page request end and is specific to the first content address information;
An element content obtaining unit, configured to obtain, for the second request message, the element content according to the first content address information;
and the element content providing unit is used for providing the element content to the webpage request end.
In another aspect of the present application, there is provided an electronic device, including:
a processor; and
and the memory is used for storing a computer program, and after the device is powered on and the computer program is run by the processor, the information processing method provided by the application is executed.
In another aspect of the present application, there is provided a storage medium storing a computer program that is executed by a processor to perform the information processing method provided herein.
Compared with the prior art, the application has the following advantages:
according to the information processing method, firstly, after a first request message sent by a webpage request end is obtained at a webpage server end and used for obtaining a target webpage, first content address information used for obtaining element content in the target webpage is provided for the webpage request end aiming at the first request message, and the first content address information corresponds to address information of the webpage server end; then, the webpage server side obtains second request information which is sent by the webpage request side and aims at the first content address information and is used for obtaining the element content, and obtains the element content according to the first content address information and aiming at the second request information; and finally, the web page server side provides the element content to the web page request side. According to the information processing method, when the target webpage is opened, the element content in the target webpage is directly obtained without a webpage request end, so that CPU resources consumed by the webpage request end when the webpage is opened are reduced.
Drawings
Fig. 1A is a first schematic diagram of a scenario embodiment of an information processing method provided in the present application.
Fig. 1B is a second schematic diagram of a scenario embodiment of an information processing method provided in the present application.
Fig. 2 is a flowchart of an information processing method provided in the first embodiment of the present application.
Fig. 3 is a flowchart of a method for obtaining the element content provided in the first embodiment of the present application.
Fig. 4 is a schematic diagram of an information processing apparatus according to a second embodiment of the present application.
Fig. 5 is a schematic diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is, however, susceptible of embodiment in many other ways than those herein described and similar generalizations can be made by those skilled in the art without departing from the spirit of the application and the application is therefore not limited to the specific embodiments disclosed below.
In order to more clearly show the application, an application scenario of the information processing method provided by the application is introduced. The scene embodiment provided by the application is applied to a scene of interaction between a web server and a web request end, as shown in fig. 1A, and is a first schematic diagram of the scene embodiment of the information processing method provided by the application. In order to better distinguish between the plurality of different request messages and the plurality of different content address information, the embodiment of the application scenario refers to that the plurality of different request messages are respectively named as an nth request message and an mth content address information.
The existing basic process of opening a certain target webpage is as follows: firstly, a user inputs web site information of a web page through a web page request end or clicks a web site link corresponding to the web site information; secondly, the web page server establishes a transmission channel between the web page request end and the web page server; thirdly, the webpage server side obtains a webpage file corresponding to the target webpage and sends the webpage file to the webpage request side; finally, the webpage request end loads element content in the webpage by accessing the webpage file, and generates and opens the target webpage. In the process of loading element contents by accessing a web page file at a web page request end, part of the element contents (such as text element contents and the like) can be directly loaded by accessing the web page file, but part of the element contents (such as video resource element contents, image element contents, sound element contents, table element contents and the like) are not always directly provided in the web page file, and only the content address information of the element contents is given in the web page file. When loading the element contents, the web page request end needs to establish a transmission channel with the equipment storing the element contents according to the content address information of the element contents, and further obtains the element contents from the equipment storing the element contents, so that the web page request end needs to establish the transmission channels with different equipment respectively to generate and open the target web page, and the CPU consumption of the web page request end is greatly consumed.
The basic thought of opening a certain target webpage through the information method provided by the application is as follows: the webpage request end sends a request message for acquiring a target webpage to the webpage server end, and the request message is marked as a first request message in the embodiment of the application; after obtaining a first request message sent by a webpage request end for obtaining a target webpage, a webpage server provides content address information for obtaining element content in the target webpage for the webpage request end aiming at the first request message, and marks the content address information as first content address information, wherein the first content address information corresponds to address information of the webpage server; the web page server side provides the first content address information to the web page request side, the web page request side obtains the first content address information, and sends a request message for obtaining the element content to the web page server side aiming at the first content address information, and the request message is recorded as a second request message; the webpage server side obtains second request information which is sent by the webpage request side and aims at the first content address information and is used for obtaining the element content, and obtains the element content according to the first content address information and aims at the second request information; the webpage server side provides the element content for the webpage request side; after the webpage request end obtains the element content, loading the element content, and generating and opening the target webpage.
In a scenario embodiment of the information processing method provided by the present application, the web page request end may be a web page browser, and the web page server end includes a first device. The first device is a device configured with a means for generating the first content address information, and may specifically be a DNS server configured with a means for generating the first content address information. In the embodiment of the scenario of the information processing method provided in the present application, please refer to fig. 1B for a specific process of opening a certain target webpage by the information processing method provided in the present application, which is a second schematic diagram of the embodiment of the scenario of the information processing method provided in the present application. The specific process of opening a certain target webpage by the information method provided by the application is as follows:
the web page request terminal 101 sends a first request message for acquiring a target web page to the first device 102.
After obtaining the first request message, the first device 102 firstly obtains, for the first request message, second content website information, where the second content website information is address information included in initial webpage data for making a target webpage, which is obtained by the first device 102, and the initial webpage data of the target webpage is data in an initial webpage file for making the target webpage; secondly, generating first content address information corresponding to the address information of the first equipment according to the second content website information, and establishing and storing a corresponding relation between the first content address information and the second content address information; then, first content address information for acquiring the element content in the target web page is provided to the web page requester 101. When the first content address information for acquiring the element content in the target web page is provided to the web page request end 101, address information included in the initial web page data of the target web page is replaced with the first content website information, and the target web page data of the target web page is generated, so that the first content address information for acquiring the element content in the target web page is provided to the web page request end 101: and providing the target webpage data of the target webpage for the webpage request end aiming at the first request message. The target webpage data are data in a target webpage file for making the target webpage.
In this embodiment of the present application, the first content address information includes domain name information of the first device 102, and the web page file is an HTML file. After the first device 102 obtains the first request sent by the web page request end 101, a transmission channel between the first device 102 and the web page request end 101 needs to be established for the first request message, so that the first device 102 provides the target web page data to the web page request end 101, including: the first device 102 provides the target web page data to the web page requestor 101 through a transmission channel between the first device 102 and the web page requestor 101.
After obtaining the first content address information, the web page request end 101 further sends out a second request message for obtaining the element content, which is aimed at the first content address information.
The first device 102 obtains a second request message for obtaining the element content, which is sent by the web page request end 101 and is aimed at the first content address information, and obtains the element content according to the first content address information and aiming at the second request message. Specifically, for the second request message, the first device 102 obtains the element content according to the first content address information, including: the first device 102 obtains second content address information according to the first content address information and the corresponding relation between the first content address information and the second content address information for the second request message; and then, according to the second content address information, acquiring the element content from the device 103 for storing the element content.
In acquiring the element content from the device 103 storing the element content based on the second content address information, there are specifically two cases: the first case is: the first device 102 acquires the element content from the device 103 storing the element content according to the first source address information of the element content contained in the second content address information; the second case is: the first device 102 obtains second source address information of the element content according to the second content address information, wherein the second source address information of the element content corresponds to the address information of the first device 102; the first device 102 provides the second source address information of the element content to the web page request end 101; the first device 102 obtains second source address information for the element content sent by the web page request end 101 and a third request message for obtaining the element content; the first device 102 obtains the element content from the device 103 storing the element content according to the second source address information of the element content for the third request message. Wherein the first device 102 obtains the second source address information of the element content according to the second content address information, including: the first device 102 obtains first source address information of the element content according to the second content address information, the first device 102 generates second source address information of the element content according to the first source address information of the element content, and the first device 102 establishes a corresponding relation between the second source address information of the element content and the first source address information of the element content; accordingly, for the third request message, the first device 102 obtains the element content according to the second source address information of the element content, including: the first device 102 obtains first source address information of the element content according to the second source address information of the element content and a corresponding relation between the second source address information of the element content and the first source address information of the element content for the third request message; the first device 102 acquires the element content from the device 103 storing the element content according to the first source address information of the element content.
In the embodiment of the application scene, the first source address information of the element content is address information of equipment for storing the element content; when the first device 102 acquires the element content from the device 103 storing the element content according to the first source address information of the element content, the element content needs to be acquired through a transmission channel between the first device 102 and the device 103 storing the element content. Whether the transmission channel between the first device 102 and the device 103 storing the element content obtains the element content or the transmission channel between the first device 102 and the web page request end 101 has a preset delay, the information processing method provided in the embodiment of the application scene can be further ensured, multiplexing of the transmission channel can be realized, and therefore CPU overhead of the web page request end 101 and the first device 102 is further saved.
After the first device 102 obtains the element content from the device 103 storing the element content, the element content is provided to the web page request end 101 through a transmission channel between the first device 102 and the web page request end 101. After obtaining the element content, the web page request end 101 loads the element content, and generates and opens the target web page.
The information processing method provided by the application can also be applied to other scenes, such as: the application scenario of the processing method of the information processing method in the embodiment of the present application is not particularly limited, and is a scenario that is separately applied to a server side, etc.
The embodiments of the application scenario of the information processing method described above are provided to facilitate understanding of the information processing method provided in the present application, and are not intended to limit the information processing method provided in the present application.
First embodiment
A first embodiment of the present application provides an information processing method, which is described below with reference to fig. 2 to 3.
As shown in fig. 2, fig. 2 is a flowchart of an information processing method provided in the first embodiment of the present application.
In step S201, the web page server obtains a first request message sent by the web page request end for obtaining a target web page.
The web server includes a first device, where the first device is configured with a device for generating first content address information, and in a first implementation of the present application, the web server is generally a DNS server configured with a device for generating first content address information, and the web request end is generally a web browser.
In step S202, the web page server provides, for the first request message, first content address information for acquiring element content in the target web page to the web page request, where the first content address information corresponds to address information of the web page server.
The first content address information includes domain name information of the web server, and in the first embodiment of the present application, the first content address information and the address information of the web server are URL information generally. That is, in the first embodiment of the present application, the domain name information in the URL corresponding to the address information of the first content is the domain name information in the URL corresponding to the address information of the web server.
In a first embodiment of the present application, before providing first content address information for acquiring element content in a target web page to a web page request end, a web page server end replaces address information included in initial web page data of the target web page with first content website information to generate target web page data of the target web page, and at this time, the web page server end provides the first content address information for acquiring element content in the target web page to the web page request end with respect to a first request message, including: and providing the target webpage data of the target webpage for the webpage request end aiming at the first request message.
In the first embodiment of the present application, the web page data is data in a web page file, where the web page file is generally an HTML file, and the element content includes: text element content, image element content, audio element content, video resource element content, form element content, and the like.
In step S203, the web server obtains a second request message for obtaining the element content, which is sent by the web request end and is directed to the first content address information.
Generating first content address information before the web page server obtains the first content address information sent by the web page request end, specifically, the web page server obtains second content website information for the first request message, wherein the second content website information is address information contained in initial web page data for making a target web page, which is obtained by the web page server; the web page server generates first content address information according to the second content website information; the web page server establishes a corresponding relation between the first content address information and the second content address information.
In step S204, the web server obtains the element content according to the first content address information for the second request message.
Aiming at the second request message, the web server obtains the element content according to the first content address information as follows: the first device obtains the element content from the device storing the element content according to the first content address information for the second request message. Specifically, for the second request message, the general process of acquiring the element content by the web server according to the first content address information is as follows: and the webpage server acquires the element content according to the first content address information and the corresponding relation between the first content address information and the second content address information aiming at the second request message.
Aiming at the second request message, the webpage server side obtains the element content according to the first content address information and the corresponding relation between the first content address information and the second content address information, wherein the specific process comprises the following steps: the webpage server side obtains second content address information according to the first content address information and the corresponding relation between the first content address information and the second content address information; and the webpage server acquires the element content according to the second content address information.
When the web server obtains the element content according to the second content address information, the following two conditions exist:
the first case is: and the webpage server acquires the element content according to the first source address information of the element content contained in the second content address information. Wherein the first source address information of the element content is address information of a device storing the element content.
Fig. 3 is a flowchart of a method for obtaining element content according to the first embodiment of the present application.
In step S301, the web server obtains second source address information of the element content according to the second content address information, where the second source address information of the element content corresponds to the address information of the web server.
The web page server obtains second source address information of the element content according to the second content address information, and the method comprises the following steps: the webpage server side obtains first source address information of the element content according to the second content address information; and the webpage server generates second source address information of the element content according to the first source address information of the element content.
In step S302, the web page server provides the second source address information of the element content to the web page request end.
In step S303, the web server obtains the second source address information for the element content sent by the web request end, and the third request message for obtaining the element content.
In step S304, the web server obtains the element content according to the second source address information of the element content for the third request message.
In a first embodiment of the present application, when the web server generates the second source address information of the element content according to the first source address information of the element content, the web server further establishes a correspondence between the second source address information of the element content and the first source address information of the element content, and at this time, the web server obtains the element content according to the second source address information of the element content for the third request message, including: aiming at the third request message, the webpage server side obtains the first source address information of the element content according to the second source address information of the element content and the corresponding relation between the second source address information of the element content and the first source address information of the element content; and the webpage server acquires the element content according to the first source address information of the element content.
In step S205, the web server provides the element content to the web request terminal.
In the first embodiment of the present application, after obtaining a first request message sent by a web page request end and used for obtaining a target web page, a web page server end establishes a transmission channel between the web page server end and the web page request end for the first request message. The web page server side provides the element content to the web page request side, specifically: the web page server side provides the element content to the web page request side through a transmission channel between the web page server side and the web page request side.
In a first embodiment of the present application, a web page server provides element content to a web page request end, including: the first device provides the element content to the web page requesting end.
According to the information processing method, firstly, after a first request message sent by a webpage request end is obtained at a webpage server end and used for obtaining a target webpage, first content address information used for obtaining element content in the target webpage is provided for the webpage request end aiming at the first request message, and the first content address information corresponds to address information of the webpage server end; then, the webpage server side obtains second request information which is sent by the webpage request side and aims at the first content address information and is used for obtaining the element content, and obtains the element content according to the first content address information and aiming at the second request information; and finally, the web page server side provides the element content to the web page request side. According to the information processing method, when the target webpage is opened, the element content in the target webpage is directly obtained without a webpage request end, so that CPU resources consumed by the webpage request end when the webpage is opened are reduced.
Second embodiment
In the first embodiment described above, an information processing method is provided, and in correspondence therewith, a second embodiment of the present application provides an information processing apparatus. Since the apparatus embodiment is substantially similar to the first embodiment of the method, the description is relatively simple, and reference is made to the description of the method embodiment for relevant points. The device embodiments described below are merely illustrative.
Referring to fig. 4, a schematic diagram of an information processing apparatus according to a second embodiment of the present application is shown.
The information processing device is applied to a webpage server and comprises:
a first request message obtaining unit 401, configured to obtain a first request message sent by a web page request end and used for obtaining a target web page;
a first content address information obtaining unit 402, configured to provide, for the first request message, first content address information for obtaining element content in the target web page to the web page request end, where the first content address information corresponds to address information of the web page server end;
a second request message obtaining unit 403, configured to obtain a second request message for obtaining the element content, where the second request message is sent by the web page request end and is specific to the first content address information;
An element content obtaining unit 404, configured to obtain, for the second request message, the element content according to the first content address information;
an element content providing unit 405, configured to provide the element content to the web page request end.
Optionally, the information processing apparatus further includes:
a second content website information obtaining unit, configured to obtain, for the first request message, second content website information, where the second content website information is address information included in initial webpage data obtained by the webpage server and used to make the target webpage;
a first content address information generating unit, configured to generate the first content address information according to the second content website information;
a correspondence establishing unit, configured to establish a correspondence between the first content address information and the second content address information;
the element content obtaining unit 404 is specifically configured to obtain, for the second request message, the element content according to the first content address information and the correspondence between the first content address information and the second content address information.
Optionally, for the second request message, the obtaining the element content according to the first content address information and the correspondence between the first content address information and the second content address information includes:
the second content address information is obtained according to the first content address information and the corresponding relation between the first content address information and the second content address information;
and acquiring the element content according to the second content address information.
Optionally, the obtaining the element content according to the second content address information includes: and acquiring the element content according to the first source address information of the element content contained in the second content address information.
Optionally, the obtaining the element content according to the second content address information includes:
the second source address information of the element content is obtained according to the second content address information, and the second source address information of the element content corresponds to the address information;
the second source address information of the element content is provided for the webpage request end;
The second source address information which is sent by the webpage request end and aims at the element content is obtained, and a third request message which is used for obtaining the element content is obtained;
and the element content is acquired according to the second source address information of the element content aiming at the third request message.
Optionally, the obtaining the second source address information of the element content according to the second content address information includes:
the first source address information of the element content is obtained according to the second content address information;
and generating second source address information of the element content according to the first source address information of the element content.
Optionally, the method further comprises: establishing a corresponding relation between the second source address information of the element content and the first source address information of the element content;
the obtaining the element content according to the second source address information of the element content aiming at the third request message includes:
the first source address information of the element content is obtained according to the second source address information of the element content and the corresponding relation between the second source address information of the element content and the first source address information of the element content aiming at the third request message;
And acquiring the element content according to the first source address information of the element content.
Optionally, the first source address information of the element content is address information of a device storing the element content.
Optionally, the information processing apparatus further includes:
the target webpage data generation unit is used for replacing address information contained in the initial webpage data of the target webpage with the first content website information to generate target webpage data of the target webpage;
the providing, for the first request message, first content address information for obtaining element content in the target web page to the web page request end includes: and providing the target webpage data of the target webpage for the webpage request end aiming at the first request message.
Optionally, the first content address information includes domain name information of the web server.
Optionally, the information processing apparatus further includes: the transmission channel establishment unit is used for establishing a transmission channel between the webpage server and the webpage request end aiming at the first request message;
the element content providing unit is specifically configured to provide the element content to the web page request end through a transmission channel between the web page server end and the web page request end. In the information processing apparatus provided in the second embodiment of the present application, first, after a first request message sent by a web page request end for obtaining a target web page is obtained at a web page server end, first content address information for obtaining element content in the target web page is provided to the web page request end for the first request message, where the first content address information corresponds to address information of the web page server end; then, the webpage server side obtains second request information which is sent by the webpage request side and aims at the first content address information and is used for obtaining the element content, and obtains the element content according to the first content address information and aiming at the second request information; and finally, the web page server side provides the element content to the web page request side. According to the information processing device, when the target webpage is opened, the element content in the target webpage is directly obtained without a webpage request end, so that CPU resources consumed by the webpage request end when the webpage is opened are reduced.
Third embodiment
The third embodiment of the present application provides an electronic device, corresponding to the information processing method provided in the first embodiment of the present application.
As shown in fig. 5, the electronic device includes:
a processor 501; and
the memory 502 is configured to store a computer program, and after the apparatus is powered on and the computer program is executed by the processor, the information processing method provided in the first embodiment of the present application is executed.
The information processing electronic device provided in the third embodiment of the present application, first, after obtaining a first request message sent by a web page request end and used for obtaining a target web page at a web page server end, provides first content address information for obtaining element content in the target web page to the web page request end with respect to the first request message, where the first content address information corresponds to address information of the web page server end; then, the webpage server side obtains second request information which is sent by the webpage request side and aims at the first content address information and is used for obtaining the element content, and obtains the element content according to the first content address information and aiming at the second request information; and finally, the web page server side provides the element content to the web page request side. According to the information processing electronic equipment, when the target webpage is opened, the element content in the target webpage is directly obtained without a webpage request end, so that CPU resources consumed by the webpage request end when the webpage is opened are reduced.
It should be noted that, for the detailed description of the electronic device provided in the third embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, which is not repeated here.
Fourth embodiment
The fourth embodiment of the present application provides a storage medium storing a computer program that is executed by a processor to perform the information processing method provided in the first embodiment of the present application, corresponding to the information processing method provided in the first embodiment of the present application. The information processing storage medium provided in the fourth embodiment of the present application, first, after obtaining a first request message sent by a web page request end and used for obtaining a target web page at a web page server end, provides first content address information for obtaining element content in the target web page to the web page request end with respect to the first request message, where the first content address information corresponds to address information of the web page server end; then, the webpage server side obtains second request information which is sent by the webpage request side and aims at the first content address information and is used for obtaining the element content, and obtains the element content according to the first content address information and aiming at the second request information; and finally, the web page server side provides the element content to the web page request side. According to the information processing storage medium, when the target webpage is opened, the element content in the target webpage is directly obtained without a webpage request end, so that CPU resources consumed by the webpage request end when the webpage is opened are reduced.
It should be noted that, for the detailed description of the storage device provided in the fourth embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, which is not repeated here.
While the preferred embodiment has been described, it is not intended to limit the invention thereto, and any person skilled in the art may make variations and modifications without departing from the spirit and scope of the invention, so that the scope of the invention shall be defined by the claims.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
1. Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer readable media, as defined herein, does not include non-transitory computer readable media (transmission media), such as modulated data signals and carrier waves.
2. It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (16)

1. An information processing method, characterized by comprising:
the method comprises the steps that a webpage server side obtains a first request message which is sent by a webpage request side and used for obtaining a target webpage;
the webpage server side obtains second content address information aiming at the first request message, wherein the second content address information is address information contained in initial webpage data which is obtained by the webpage server side and used for manufacturing the target webpage;
the web page server generates first content address information according to the second content address information;
the web page server establishes a corresponding relation between the first content address information and the second content address information; the webpage server side obtains the first content address information and a second request message for obtaining element content, wherein the second request message is sent by the webpage request side and aims at the first content address information;
The web server obtains the element content according to the first content address information aiming at the second request message, and the method comprises the following steps: the webpage server acquires the element content according to the first content address information and the corresponding relation between the first content address information and the second content address information aiming at the second request message;
and the webpage server side provides the element content for the webpage request side.
2. The information processing method according to claim 1, wherein the web server obtains the element content according to the first content address information and the correspondence between the first content address information and the second content address information for the second request message, including:
the webpage server side obtains the second content address information according to the first content address information and the corresponding relation between the first content address information and the second content address information;
and the webpage server acquires the element content according to the second content address information.
3. The information processing method according to claim 2, wherein the web server obtains the element content according to the second content address information, including: and the webpage server acquires the element content according to the first source address information of the element content contained in the second content address information.
4. The information processing method according to claim 2, wherein the web server obtains the element content according to the second content address information, including:
the webpage server side obtains second source address information of the element content according to the second content address information, wherein the second source address information of the element content corresponds to the address information of the webpage server side;
the webpage server side provides the webpage request side with second source address information of the element content;
the webpage server side obtains second source address information aiming at the element content and sent by the webpage request side, and third request information for obtaining the element content;
and the webpage server acquires the element content according to the second source address information of the element content aiming at the third request message.
5. The information processing method according to claim 4, wherein the web server obtains second source address information of the element content according to the second content address information, including:
the web page server obtains first source address information of the element content according to the second content address information;
And the webpage server generates second source address information of the element content according to the first source address information of the element content.
6. The information processing method according to claim 5, characterized by further comprising: the web page server establishes a corresponding relation between the second source address information of the element content and the first source address information of the element content;
the web server obtains the element content according to the second source address information of the element content aiming at the third request message, and the method comprises the following steps:
the web page server obtains the first source address information of the element content according to the second source address information of the element content and the corresponding relation between the second source address information of the element content and the first source address information of the element content aiming at the third request message;
and the webpage server acquires the element content according to the first source address information of the element content.
7. The information processing method according to any one of claims 3, 5, and 6, wherein the first source address information of the element content is address information of a device storing the element content.
8. The information processing method according to claim 1, characterized by further comprising:
the web page server replaces address information contained in the initial web page data of the target web page with the first content address information to generate target web page data of the target web page;
the web page server provides, for the first request message, first content address information for obtaining element content in the target web page to the web page request terminal, including: and providing the target webpage data of the target webpage for the webpage request end aiming at the first request message.
9. The information processing method according to claim 1, wherein the first content address information includes domain name information of the web server.
10. The information processing method according to claim 1, characterized by further comprising: the web page server establishes a transmission channel between the web page server and the web page request terminal aiming at the first request message;
the web page server provides the element content to the web page request end, which comprises the following steps: the web page server side provides the element content to the web page request side through a transmission channel between the web page server side and the web page request side.
11. The information processing method according to claim 1, wherein the web server includes a first device, the first device being a device configured with means for generating the first content address information.
12. The information processing method according to claim 11, wherein the web server obtains the element content according to the first content address information for the second request message, including: the first device obtains the element content from the device storing the element content according to the first content address information aiming at the second request message.
13. The information processing method according to claim 12, wherein the web server provides the element content to the web request terminal, comprising: the first device provides the element content to the web page request end.
14. An information processing apparatus applied to a web server, comprising:
the first request message obtaining unit is used for obtaining a first request message which is sent by the webpage request end and used for obtaining the target webpage;
a second content address information obtaining unit, configured to obtain, for the first request message, second content address information, where the second content address information is address information included in initial web page data obtained by the web page server and used to make the target web page;
The first content address information generating unit is used for generating first content address information according to the second content address information by the webpage server;
the corresponding relation establishing unit is used for establishing a corresponding relation between the first content address information and the second content address information by the webpage server;
a second request message obtaining unit, configured to obtain a second request message for obtaining element content, where the second request message is sent by the web page request end and is specific to the first content address information;
an element content obtaining unit, configured to obtain, for the second request message, the element content according to the first content address information, where the element content includes: the webpage server acquires the element content according to the first content address information and the corresponding relation between the first content address information and the second content address information aiming at the second request message;
and the element content providing unit is used for providing the element content to the webpage request end.
15. An electronic device, comprising:
a processor; and
a memory for storing a computer program, the apparatus being adapted to perform the information processing method of any one of claims 1-13 after power-up and running the computer program by means of said processor.
16. A storage medium storing a computer program to be executed by a processor to perform the information processing method according to any one of claims 1 to 13.
CN201911198200.1A 2019-11-29 2019-11-29 Information processing method, device, electronic equipment and storage medium Active CN112883298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911198200.1A CN112883298B (en) 2019-11-29 2019-11-29 Information processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911198200.1A CN112883298B (en) 2019-11-29 2019-11-29 Information processing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112883298A CN112883298A (en) 2021-06-01
CN112883298B true CN112883298B (en) 2024-03-01

Family

ID=76038322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911198200.1A Active CN112883298B (en) 2019-11-29 2019-11-29 Information processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112883298B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299931A (en) * 2011-09-19 2011-12-28 莫雅静 Webpage content sending method and agent server
WO2015014189A1 (en) * 2013-08-02 2015-02-05 优视科技有限公司 Method and device for accessing website
CN104392008A (en) * 2014-12-19 2015-03-04 北京奇虎科技有限公司 Webpage data acquisition method, browser client end and CDN (content distribution network) server
CN104426985A (en) * 2013-09-06 2015-03-18 腾讯科技(深圳)有限公司 Method, device and system for displaying webpage
CN105930528A (en) * 2016-06-03 2016-09-07 腾讯科技(深圳)有限公司 Webpage cache method and server
CN106897336A (en) * 2016-06-28 2017-06-27 阿里巴巴集团控股有限公司 Web page files sending method, webpage rendering intent and device, webpage rendering system
CN107203541A (en) * 2016-03-17 2017-09-26 台达电子企业管理(上海)有限公司 Page loading method and its page loading device
CN107800769A (en) * 2017-09-15 2018-03-13 北京麒麟合盛网络技术有限公司 A kind of webpage deployment method and device
CN108717435A (en) * 2018-05-16 2018-10-30 腾讯科技(深圳)有限公司 Webpage loading method, information processing method, computer equipment and storage medium
CN109522492A (en) * 2018-10-12 2019-03-26 北京奇虎科技有限公司 A kind of webpage content display control method, device, equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8838728B2 (en) * 2007-05-22 2014-09-16 Nokia Corporation Method, system, apparatus, network entity and computer program product for providing a user with an editable webpage
US20120192063A1 (en) * 2011-01-20 2012-07-26 Koren Ziv On-the-fly transformation of graphical representation of content

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299931A (en) * 2011-09-19 2011-12-28 莫雅静 Webpage content sending method and agent server
WO2015014189A1 (en) * 2013-08-02 2015-02-05 优视科技有限公司 Method and device for accessing website
CN104426985A (en) * 2013-09-06 2015-03-18 腾讯科技(深圳)有限公司 Method, device and system for displaying webpage
CN104392008A (en) * 2014-12-19 2015-03-04 北京奇虎科技有限公司 Webpage data acquisition method, browser client end and CDN (content distribution network) server
CN107203541A (en) * 2016-03-17 2017-09-26 台达电子企业管理(上海)有限公司 Page loading method and its page loading device
CN105930528A (en) * 2016-06-03 2016-09-07 腾讯科技(深圳)有限公司 Webpage cache method and server
CN106897336A (en) * 2016-06-28 2017-06-27 阿里巴巴集团控股有限公司 Web page files sending method, webpage rendering intent and device, webpage rendering system
CN107800769A (en) * 2017-09-15 2018-03-13 北京麒麟合盛网络技术有限公司 A kind of webpage deployment method and device
CN108717435A (en) * 2018-05-16 2018-10-30 腾讯科技(深圳)有限公司 Webpage loading method, information processing method, computer equipment and storage medium
CN109522492A (en) * 2018-10-12 2019-03-26 北京奇虎科技有限公司 A kind of webpage content display control method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
动态网页分发加速技术研究;张铃丽;石磊;;计算机技术与发展(08);全文 *

Also Published As

Publication number Publication date
CN112883298A (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN106534243B (en) Caching, requesting and responding method based on HTTP protocol and corresponding device
US20130067530A1 (en) DNS-Based Content Routing
US11445005B2 (en) Expedited sub-resource loading
CN110442815B (en) Page generation method, system, device and computer readable storage medium
US9088462B2 (en) Common web accessible data store for client side page processing
CN111385316B (en) Resource refreshing method, access method and device
US9876879B2 (en) Distributed network page generation
CN105100294A (en) Webpage acquiring method, system, network server, browser and GSLB
US8516041B1 (en) Pre-fetching asynchronously requested content
CN108769189B (en) Cross-network-domain resource access method and device
CN109634753B (en) Data processing method, device, terminal and storage medium for switching browser kernels
CN110933193B (en) Domain name resolution method and device, electronic equipment and computer readable storage medium
CN111797334B (en) Website access method and device, electronic equipment and storage medium
CN112883298B (en) Information processing method, device, electronic equipment and storage medium
CN106919595B (en) Cookie mapping method and device and electronic equipment
CN107239475B (en) File calling method and device
CN113301081B (en) Data processing method and device for content distribution network and electronic equipment
CN109600403B (en) Method and device for sending information
EP3989082A1 (en) Multimedia file storage and access method
CN111835778B (en) Method and equipment for realizing cross-domain access of first-level domain name
CN110636374A (en) Method and device for searching information
JP2010181946A (en) Communication system, terminal equipment, content obtaining method, and program
CN109213943B (en) Webpage loading method and device, terminal equipment, processor and storage medium
CN110020076B (en) Method and device for crawling webpage data
CN112887760A (en) Video processing method and device

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
GR01 Patent grant
GR01 Patent grant