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

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

Info

Publication number
CN112883298A
CN112883298A CN201911198200.1A CN201911198200A CN112883298A CN 112883298 A CN112883298 A CN 112883298A CN 201911198200 A CN201911198200 A CN 201911198200A CN 112883298 A CN112883298 A CN 112883298A
Authority
CN
China
Prior art keywords
address information
content
webpage
element content
request message
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
CN201911198200.1A
Other languages
Chinese (zh)
Other versions
CN112883298B (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

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/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

Landscapes

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

Abstract

The 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 provides first content address information for acquiring element content in the target webpage to the webpage request end aiming at the first request message, wherein the first content address information corresponds to the address information of the webpage server end; the webpage server side obtains a second request message which is sent by the webpage request side and aims at the first content address information and is used for obtaining the element content; the webpage server side 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 to the webpage request side. The information processing method provided by the application can reduce CPU resources consumed by the webpage request terminal when the webpage is opened.

Description

Information processing method and 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 a webpage request end, the webpage request end sends a webpage access request message to a webpage server end, after the webpage server end receives the webpage access request message, an HTML (hypertext Markup Language) file corresponding to the webpage is sent to the webpage request end, the webpage request end accesses the HTML file, webpage elements corresponding to a URL (uniform resource locator) in the HTML file are loaded, rendering of elements such as characters, pictures, forms and sounds on the webpage is completed, and therefore the webpage is generated and opened.
Generally, an HTML file corresponding to a web page often includes a plurality of URLs (Uniform Resource locators), and the URLs often correspond to a plurality of Domain names, and in order to generate and open the web page, a web page request end needs to perform processes of DNS (Domain Name System) resolution, TCP (Transmission Control Protocol) handshake and HTTP (hypertext Transfer Protocol) handshake in sequence, so that a large amount of CPU (Central Processing Unit) resources of the web page request end are consumed.
Disclosure of Invention
The application provides an information processing method, an information processing device, electronic equipment and a storage medium, which are used for reducing CPU (Central processing Unit) resources consumed by a webpage request end when a webpage is opened.
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 provides first content address information for acquiring element content in the target webpage to the webpage request end aiming at the first request message, wherein the first content address information corresponds to the address information of the webpage server end;
the webpage server side obtains a second request message which is sent by the webpage request side and aims at the first content address information and is used for obtaining the element content;
the webpage server side 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 to the webpage request side.
Optionally, the method further includes:
the webpage server 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 and used for making the target webpage;
the webpage server generates the first content address information according to the second content website information;
the webpage server side 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 for the second request message, and the method includes: 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, the acquiring, by the web server, the element content according to the first content address information and the corresponding relationship between the first content address information and the second content address information for the second request message 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 acquiring, 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 acquiring, 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 provides second source address information of the element content to the webpage request end;
the webpage server side obtains second source address information aiming at the element content sent by the webpage request side and third request information used 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 page server, second source address information of the element content according to the second content address information includes:
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.
Optionally, the method further includes: the webpage server side establishes a corresponding relation between second source address information of the element content and 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 for the third request message, and the method includes:
the webpage server side obtains first source address information of the element content according to 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 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 includes:
the webpage server replaces 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 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 terminal, and includes: and aiming at the first request message, providing target webpage data of the target webpage to the webpage request end.
Optionally, the first content address information includes domain name information of the web page server.
Optionally, the method further includes: the webpage server establishes a transmission channel between the webpage server and the webpage request terminal aiming at the first request message;
the web page server provides the element content to the web page request terminal, and the method comprises the following steps: and the webpage server provides the element content to the webpage request end through a transmission channel between the webpage server and the webpage request end.
Optionally, the web server includes a first device, where the first device is a device configured with a means for generating the first content address information.
Optionally, the acquiring, by the web server, the element content according to the first content address information for the second request message includes: and the first equipment acquires the element content from the equipment for storing the element content according to the first content address information aiming at the second request message.
Optionally, the providing, by the web page server, the element content to the web page request terminal includes: and the first equipment provides the element content to the webpage request end.
In another aspect of the present application, an information processing apparatus applied to a web server includes:
a first request message obtaining unit, configured to obtain a target webpage sent by a webpage requesting end for obtaining the target webpage
A first request message;
a first content address information obtaining unit, configured to provide, to the web page request end, first content address information used for obtaining element content in the target web page for the first request message, 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, which is sent by the web page request end and is used for obtaining the element content and is directed to the first content address information;
an element content acquiring unit, configured to acquire the element content according to the first content address information for the second request message;
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, an electronic device is provided, including:
a processor; and
and the memory is used for storing a computer program, and the equipment executes the information processing method provided by the application after being powered on and running the computer program through the processor.
In another aspect of the present application, a storage medium is provided, which stores a computer program executed by a processor to perform the information processing method provided in the present application.
Compared with the prior art, the method has the following advantages:
the information processing method comprises the steps that firstly, after a webpage server side obtains a first request message which is sent by a webpage request side 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 side according to the first request message, and the first content address information corresponds to address information of the webpage server side; then, the web page server side obtains a second request message which is sent by the web page request side and is used for acquiring the element content aiming at the first content address information, and acquires the element content aiming at the second request message according to the first content address information; and finally, the webpage server provides the element content to the webpage request end. According to the information processing method, when the target webpage is opened, the element content in the target webpage does not need to be directly obtained through the webpage request end, and therefore 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 scene embodiment of an information processing method provided in the present application.
Fig. 1B is a second schematic diagram of a scene embodiment of an information processing method provided in the present application.
Fig. 2 is a flowchart of an information processing method provided in a first embodiment of the present application.
Fig. 3 is a flowchart of a method for obtaining the content of the element 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 capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
In order to show the present application more clearly, an application scenario of the information processing method provided by the present application is introduced first. The scene embodiment provided by the present application is applied to a scene in which a web server interacts with a web request server, as shown in fig. 1A, which is a first schematic diagram of a scene embodiment of an information processing method provided by the present application. Since the embodiments of the present application scenario may relate to a plurality of different request messages and a plurality of different content address information, in order to better distinguish the plurality of different request messages and the plurality of different content address information, the embodiments of the present application scenario call the plurality of different request messages as an nth request message and an mth content address information, respectively.
The existing basic process for opening a certain target webpage is as follows: firstly, a user inputs website information of a webpage through a webpage request end, or clicks a website link corresponding to the website information; secondly, the webpage server establishes a transmission channel between the webpage request end and the webpage 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; and finally, loading element contents in the webpage by the webpage request end through accessing the webpage file, and generating and opening a target webpage. In the process of loading element contents by accessing a webpage file at a webpage request end, part of element contents (such as character element contents and the like) can be directly loaded by accessing the webpage file, but part of element contents (such as video resource element contents, image element contents, sound element contents, form element contents and the like) are often not directly provided in the webpage file, and the element contents only give content address information of the element contents in the webpage file. When the web page request end loads the element contents, a transmission channel needs to be established between the web page request end and the device for storing the element contents according to the content address information of the element contents, and the element contents are further obtained from the device for storing the element contents.
The basic idea of opening a certain target webpage by the information method provided by the application is as follows: a web page request end sends a request message for acquiring a target web page to a web page server end, and the request message is marked as a first request message in the embodiment of the application; after the webpage server obtains a first request message which is sent by the webpage request end and used for obtaining a target webpage, content address information which is used for obtaining element content in the target webpage is provided for the webpage request end aiming at the first request message and is recorded as first content address information, and the first content address information corresponds to the address information of the webpage server; the webpage server provides the first content address information to the webpage request end, and the webpage request end obtains the first content address information and sends a request message for obtaining element content to the webpage server end aiming at the first content address information, and the request message is marked as a second request message; the webpage server side obtains a second request message 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 message; the webpage server side provides the element content to a webpage request side; and after the webpage request end obtains the element content, loading the element content, and generating and opening a target webpage.
In the scene embodiment of the information processing method provided by the application, the web page request terminal may be a web page browser, and the web page service terminal includes the 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 scenario embodiment of the information processing method provided in the present application, please refer to fig. 1B, which is a second schematic diagram of the scenario embodiment of the information processing method provided in the present application, for a specific process of opening a certain target webpage by the information 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 first obtains second content website information for the first request message, where the second content website information is address information included in initial webpage data for making a target webpage 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, the web page request terminal 101 is provided with first content address information for acquiring element content in the target web page. When the first content address information for acquiring the element content in the target webpage is provided to the webpage request terminal 101, the address information included in the initial webpage data of the target webpage is replaced with the first content website information to generate the target webpage data of the target webpage, and thus, the first content address information for acquiring the element content in the target webpage provided to the webpage request terminal 101 specifically includes: and aiming at the first request message, providing target webpage data of the target webpage to a webpage request end. The target web page data is data in a target web page file for creating the target web page.
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 request terminal 101 through a transmission channel between the first device 102 and the web page request terminal 101.
After obtaining the first content address information, the web page request terminal 101 further sends a second request message for obtaining the element content and aiming at the first content address information.
The first device 102 obtains a second request message sent by the web page request terminal 101 for the first content address information and used for obtaining the element content, and obtains the element content according to the first content address information for the second request message. Specifically, the obtaining, by the first device 102, the element content according to the first content address information for the second request message includes: the first device 102, aiming at the second request message, first obtains second content address information according to the first content address information and the corresponding relationship between the first content address information and the second content address information; and then obtains the element content from the device 103 storing the element content according to the second content address information.
It should be noted that, when acquiring the element content from the device 103 for storing the element content according to the second content address information, there are two specific cases as follows: the first case is: the first device 102 acquires the element content from the device 103 that stores the element content, based on the first source address information of the element content included 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 webpage request end 101; the first device 102 obtains second source address information for the element content sent by the web page request terminal 101 and a third request message for obtaining the element content; the first device 102 acquires the element content from the device 103 storing the element content according to the second source address information of the element content with respect to the third request message. The obtaining, by the first device 102, the second source address information of the element content according to the second content address information includes: the first device 102 obtains the first source address information of the element content according to the second content address information, the first device 102 generates the second source address information of the element content according to the first source address information of the element content, and establishes a corresponding relationship between the second source address information of the element content and the first source address information of the element content by the first device 102; correspondingly, the obtaining, by the first device 102, the element content according to the second source address information of the element content for the third request message includes: the first device 102 obtains, for the third request message, the first source address information of the element content according to the second source address information of the element content and the correspondence between the second source address information of the element content and the first source address information of the element content; the first device 102 acquires the element content from the device 103 that stores the element content, based on the first source address information of the element content.
In the embodiment of the application scenario, 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, it is necessary to acquire the element content through a transmission channel between the first device 102 and the device 103 storing the element content. No matter the transmission channel between the first device 102 and the device 103 for storing element content is used to obtain the element content, or the transmission channel between the first device 102 and the web page request end 101 has a preset delay, so that the information processing method provided in the embodiments of the present application can be further ensured, multiplexing of the transmission channel can be realized, and thus the CPU overhead of the web page request end 101 and the first device 102 can be further saved.
After the first device 102 obtains the element content from the device 103 for storing the element content, the element content is provided to the web page request terminal 101 through a transmission channel between the first device 102 and the web page request terminal 101. After obtaining the element content, the web page request terminal 101 loads the element content, and generates and opens a target web page.
The information processing method provided by the application can also be applied to other scenes, such as: the method and the device are applied to a scene of a server side independently, and the application scene of the information processing method in the embodiment of the application is not particularly limited.
The above embodiments of application scenarios of the information processing method 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 a first embodiment of the present application.
In step S201, the web server obtains a first request message sent by the web request end for acquiring the target web page.
The web server includes a first device, where the first device is a device configured with a device for generating first content address information, 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 server provides, for the first request message, first content address information for acquiring element content in the target web page to the web request end, where the first content address information corresponds to address information of the web 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 generally URL information. That is, in the first embodiment of the present application, the domain name information in the URL corresponding to the first content address information is the domain name information in the URL corresponding to the address information of the web server.
In the first embodiment of the present application, before providing the first content address information for acquiring the element content in the target webpage to the webpage request end, the replacing, by the webpage service end, the address information included in the initial webpage data of the target webpage with the first content website information to generate the target webpage data of the target webpage, where, for the first request message, the providing, by the webpage service end, the first content address information for acquiring the element content in the target webpage to the webpage request end includes: and aiming at the first request message, providing target webpage data of the target webpage to a webpage request end.
In the first embodiment of the present application, the web page data is data in a web page file, 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, table element content, and the like.
In step S203, the web server obtains a second request message for acquiring element content, which is sent by the web request end and is directed to the first content address information.
Before the web page server obtains the address information aiming at the first content sent by the web page request terminal, the first content address information is generated, specifically, the web page server obtains second content website information aiming at the first request information, and the second content website information is address information contained in initial web page data which is obtained by the web page server and used for making a target web page; the webpage server generates first content address information according to the second content website information; and the webpage 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.
The webpage server side obtains element contents as follows according to the first content address information aiming at the second request message: the first device acquires the element content from the device storing the element content according to the first content address information for the second request message. Specifically, the general process of the web server side for acquiring the element content according to the first content address information for the second request message is as follows: and the webpage server side 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.
The specific process of acquiring the element content by the web page server according to the first content address information and the corresponding relationship between the first content address information and the second content address information aiming at the second request message is as follows: 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 page server side acquires the element content according to the second content address information, the following two situations 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. And the first source address information of the element content is address information of the equipment for storing the element content.
Referring to fig. 3, a flowchart of a method for obtaining element content according to a first embodiment of the present application is shown.
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 side 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 server provides the second source address information of the element content to the web requester.
In step S303, the web server obtains the second source address information for the element content sent by the web request end, and a 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 the first embodiment of the present application, when the web page server generates the second source address information of the element content according to the first source address information of the element content, the web page server further establishes a corresponding relationship 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 page server obtains the element content according to the second source address information of the element content for the third request message, including: the webpage server side obtains first source address information of the element content according to 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 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.
In step S205, the web server provides the element content to the web requester.
In the first embodiment of the present application, after the web page server obtains the first request message sent by the web page request terminal and used for obtaining the target web page, the web page server establishes a transmission channel between the web page server and the web page request terminal according to the first request message. Therefore, the web page server provides the element content to the web page request terminal, specifically: the webpage server provides element content to the webpage request end through a transmission channel between the webpage server and the webpage request end.
In the first embodiment of the present application, the providing, by the web server, element content to the web request side includes: the first device provides the element content to the web page request side.
The information processing method comprises the steps that firstly, after a webpage server side obtains a first request message which is sent by a webpage request side 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 side according to the first request message, and the first content address information corresponds to address information of the webpage server side; then, the web page server side obtains a second request message which is sent by the web page request side and is used for acquiring the element content aiming at the first content address information, and acquires the element content aiming at the second request message according to the first content address information; and finally, the webpage server provides the element content to the webpage request end. According to the information processing method, when the target webpage is opened, the element content in the target webpage does not need to be directly obtained through the webpage request end, and therefore 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 with this, a second embodiment of the present application provides an information processing apparatus. Since the apparatus embodiment is substantially similar to the method first embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiments 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, to the web page request end, first content address information for obtaining element content in the target web page for the first request message, where the first content address information corresponds to address information of the web page service end;
a second request message obtaining unit 403, configured to obtain a second request message, which is sent by the web page request end and is used for obtaining the element content and is directed to the first content address information;
an element content obtaining unit 404, configured to obtain, according to the first content address information, the element content for the second request message;
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, which is obtained by the webpage server and used for making 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 relationship establishing unit configured to establish a correspondence relationship between the first content address information and the second content address information;
the element content obtaining unit 404 is specifically configured to, for the second request message, obtain the element content according to the first content address information and the corresponding relationship between the first content address information and the second content address information.
Optionally, the obtaining, for the second request message, the element content according to the first content address information and the corresponding relationship 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:
obtaining 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;
the second source address information of the element content is provided to the webpage request end;
the second source address information aiming at the element content sent by the webpage request end and a third request message for acquiring the element content are obtained;
and the third request message is used for acquiring the element content according to the second source address information of the element content.
Optionally, the obtaining, according to the second content address information, second source address information of the element content includes:
obtaining first source address information of the element content 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 includes: establishing a corresponding relation between second source address information of the element content and first source address information of the element content;
the obtaining, for the third request message, the element content according to the second source address information of the element content includes:
the third request message is subjected to corresponding relation between second source address information of the element content and the first source address information of the element content, so that first source address information of the element content is obtained;
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:
a target webpage data generating unit, configured to replace address information included in initial webpage data of the target webpage with the first content website information, and generate target webpage data of the target webpage;
the providing, to the web page request end, first content address information for obtaining element content in the target web page for the first request message includes: and aiming at the first request message, providing target webpage data of the target webpage to the webpage request end.
Optionally, the first content address information includes domain name information of the web page server.
Optionally, the information processing apparatus further includes: a transmission channel establishing unit, configured to establish, by the web page server, a transmission channel between the web page server and the web page request terminal for the first request message;
and the element content providing unit is specifically used for providing the element content to the webpage request end by the webpage server end through a transmission channel between the webpage server end and the webpage request end. In the information processing apparatus provided in the second embodiment of the present application, first, after a web page server obtains a first request message sent by a web page request end and used for acquiring a target web page, first content address information used for acquiring element content in the target web page is provided 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; then, the web page server side obtains a second request message which is sent by the web page request side and is used for acquiring the element content aiming at the first content address information, and acquires the element content aiming at the second request message according to the first content address information; and finally, the webpage server provides the element content to the webpage request end. According to the information processing device, when the target webpage is opened, the element content in the target webpage does not need to be directly obtained through the webpage request end, and therefore CPU resources consumed by the webpage request end when the webpage is opened are reduced.
Third embodiment
A 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 used for storing a computer program, and the information processing method provided in the first embodiment of the present application is executed after the apparatus is powered on and the computer program is executed by the processor.
In the information processing electronic device provided in the third embodiment of the present application, first, after a web page server obtains a first request message sent by a web page request end and used for acquiring a target web page, first content address information used for acquiring element content in the target web page is provided to the web page request end according to the first request message, where the first content address information corresponds to address information of the web page server; then, the web page server side obtains a second request message which is sent by the web page request side and is used for acquiring the element content aiming at the first content address information, and acquires the element content aiming at the second request message according to the first content address information; and finally, the webpage server provides the element content to the webpage request end. According to the information processing electronic equipment, when the target webpage is opened, the element content in the target webpage does not need to be directly obtained through the webpage request end, and therefore 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, and details are not repeated here.
Fourth embodiment
In correspondence with the information processing method provided in the first embodiment of the present application, a fourth embodiment of the present application provides a storage medium storing a computer program that is executed by a processor to execute the information processing method provided in the first embodiment of the present application. First, after a web page server obtains a first request message sent by a web page request end for acquiring a target web page, first content address information for acquiring element content in the target web page is provided to the web page request end according to the first request message, wherein the first content address information corresponds to address information of the web page server; then, the web page server side obtains a second request message which is sent by the web page request side and is used for acquiring the element content aiming at the first content address information, and acquires the element content aiming at the second request message according to the first content address information; and finally, the webpage server provides the element content to the webpage request end. The information processing storage medium provided by the application does not need to directly obtain the element content in the target webpage through the webpage request end when the target webpage is opened, so that the CPU resource consumed by the webpage request end when the webpage is opened is 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, and details are not described here again.
Although the present invention has been described with reference to the preferred embodiments, it should be understood that the scope of the present invention is not limited to the embodiments described above, and that various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the present invention.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
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 computer storage media 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 that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
2. As will be appreciated by one skilled in the art, 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 (17)

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 provides first content address information for acquiring element content in the target webpage to the webpage request end aiming at the first request message, wherein the first content address information corresponds to the address information of the webpage server end;
the webpage server side obtains a second request message which is sent by the webpage request side and aims at the first content address information and is used for obtaining the element content;
the webpage server side 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 to the webpage request side.
2. The information processing method according to claim 1, further comprising:
the webpage server 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 and used for making the target webpage;
the webpage server generates the first content address information according to the second content website information;
the webpage server side 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 for the second request message, and the method includes: 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.
3. The information processing method according to claim 2, wherein the acquiring, by the web server, 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 with respect to the second request message 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.
4. The information processing method according to claim 3, wherein the web server obtains the element content according to the second content address information, and 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.
5. The information processing method according to claim 3, wherein the web server obtains the element content according to the second content address information, and 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 provides second source address information of the element content to the webpage request end;
the webpage server side obtains second source address information aiming at the element content sent by the webpage request side and third request information used 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.
6. The information processing method according to claim 5, wherein the obtaining, by the web server, second source address information of the element content according to the second content address information includes:
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.
7. The information processing method according to claim 6, further comprising: the webpage server side establishes a corresponding relation between second source address information of the element content and 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 for the third request message, and the method includes:
the webpage server side obtains first source address information of the element content according to 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 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.
8. The information processing method according to claim 4, 6, or 7, wherein the first source address information of the element content is address information of a device that stores the element content.
9. The information processing method according to claim 2, further comprising:
the webpage server replaces 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 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 terminal, and includes: and aiming at the first request message, providing target webpage data of the target webpage to the webpage request end.
10. The information processing method according to claim 1, wherein the first content address information includes domain name information of the web server.
11. The information processing method according to claim 1, further comprising: the webpage server establishes a transmission channel between the webpage server and the webpage request terminal aiming at the first request message;
the web page server provides the element content to the web page request terminal, and the method comprises the following steps: and the webpage server provides the element content to the webpage request end through a transmission channel between the webpage server and the webpage request end.
12. The information processing method according to claim 1, wherein the web server includes a first device, and the first device is a device provided with a means for generating the first content address information.
13. The information processing method according to claim 12, wherein the web server obtains the element content according to the first content address information for the second request message, including: and the first equipment acquires the element content from the equipment for storing the element content according to the first content address information aiming at the second request message.
14. The information processing method of claim 13, wherein the web server provides the element content to the web requester, and comprises: and the first equipment provides the element content to the webpage request end.
15. An information processing apparatus applied to a web server, comprising:
a first request message obtaining unit, 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, configured to provide, to the web page request end, first content address information used for obtaining element content in the target web page for the first request message, 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, which is sent by the web page request end and is used for obtaining the element content and is directed to the first content address information;
an element content acquiring unit, configured to acquire the element content according to the first content address information for the second request message;
and the element content providing unit is used for providing the element content to the webpage request end.
16. An electronic device, comprising:
a processor; and
a memory for storing a computer program which, when the apparatus is powered on and the computer program is run by the processor, performs the information processing method of any one of claims 1 to 15.
17. A storage medium, characterized in that the storage medium stores a computer program that is executed by a processor to execute the information processing method of any one of claims 1 to 15.
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 true CN112883298A (en) 2021-06-01
CN112883298B 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 (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080294750A1 (en) * 2007-05-22 2008-11-27 Nokia Corporation Method, system, apparatus, network entity and computer program product for providing a user with an editable webpage
CN102299931A (en) * 2011-09-19 2011-12-28 莫雅静 Webpage content sending method and agent server
US20120192063A1 (en) * 2011-01-20 2012-07-26 Koren Ziv On-the-fly transformation of graphical representation of content
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

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080294750A1 (en) * 2007-05-22 2008-11-27 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
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
张铃丽;石磊;: "动态网页分发加速技术研究", 计算机技术与发展, no. 08 *

Also Published As

Publication number Publication date
CN112883298B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
US9923977B2 (en) Transferring cookie data to another domain
TWI654860B (en) Hybrid application client resource calling method, client and system
CN110442815B (en) Page generation method, system, device and computer readable storage medium
CN105100294A (en) Webpage acquiring method, system, network server, browser and GSLB
CN111385316B (en) Resource refreshing method, access method and device
US9876879B2 (en) Distributed network page generation
US20210258365A1 (en) Expedited sub-resource loading
US8516041B1 (en) Pre-fetching asynchronously requested content
CN108769189B (en) Cross-network-domain resource access method and device
US9906626B2 (en) Resource demand-based network page generation
CN108021564B (en) Method and equipment for redirecting page
CN110362547A (en) Coding, parsing, storage method and the device of journal file
CN113612686A (en) Traffic scheduling method and device and electronic equipment
CN110933193B (en) Domain name resolution method and device, electronic equipment and computer readable storage medium
CN107423312B (en) Live broadcast data playing method and device
US10044788B2 (en) Native client multimedia redirection
CN107239475B (en) File calling method and device
CN106919595B (en) Cookie mapping method and device and electronic equipment
CN112883298B (en) Information processing method, device, electronic equipment and storage medium
CN113301081B (en) Data processing method and device for content distribution network and electronic equipment
CN109600403B (en) Method and device for sending information
US20240015131A1 (en) Processing Method and Device for External Link Rewriting
CN113626741A (en) Method and equipment for loading webpage of mobile client
CN111835778B (en) Method and equipment for realizing cross-domain access of first-level domain name
US20220075928A1 (en) Rendering method for on-demand loading of pdf file on network

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