WO2013091346A1 - Webpage content preloading method, device and system - Google Patents

Webpage content preloading method, device and system Download PDF

Info

Publication number
WO2013091346A1
WO2013091346A1 PCT/CN2012/075779 CN2012075779W WO2013091346A1 WO 2013091346 A1 WO2013091346 A1 WO 2013091346A1 CN 2012075779 W CN2012075779 W CN 2012075779W WO 2013091346 A1 WO2013091346 A1 WO 2013091346A1
Authority
WO
WIPO (PCT)
Prior art keywords
webpage
user
access
request
subsequent
Prior art date
Application number
PCT/CN2012/075779
Other languages
French (fr)
Chinese (zh)
Inventor
林文旭
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013091346A1 publication Critical patent/WO2013091346A1/en

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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Definitions

  • the present invention relates to the field of the Internet, and in particular, to a webpage content preloading method, apparatus, and system.
  • B/S architecture namely browser and server architecture
  • the user interface (UI, User Interface) is presented by the WWW browser, and the main transaction logic is implemented on the server side, which greatly simplifies the client load and reduces system maintenance and upgrade.
  • the cost and workload reduce the overall cost of the user.
  • the user interface is also called the front end, and the server side is also called the background.
  • certain links such as: alarm data, collection task network metadata, and collection task logs, a large amount of data update is often required, and the amount of updated data is required.
  • the larger the response time of the front end for getting and loading data from the background the longer the user waits and the poor user experience when operating on the front end.
  • a large amount of webpage data is preloaded by deploying an Edge Fragment (ESI) in a Web server or deploying a front-end page cache on a client.
  • EAI Edge Fragment
  • the browser does not have to read data from the web server frequently, thereby reducing the time for the browser to load data from the web server.
  • the embodiment of the invention provides a webpage content preloading method, which implements preloading of webpage content based on user behavior analysis, reduces waiting time of the user in front end operation in the application system based on the B/S architecture, and improves user experience.
  • An embodiment of the present invention provides a webpage content preloading method, including: Responding to the webpage access request of the user, loading the webpage requested by the user from the server; analyzing the webpage, and collecting feature metadata of the webpage;
  • the preloading webpage is a webpage with the highest probability of subsequent request access based on the webpage requested by the user;
  • the preloading policy table includes a correspondence relationship between the feature metadata of the webpage and the preloaded webpage;
  • the subsequent access request is sent by the user on the basis of the webpage requested by the user;
  • An embodiment of the present invention provides a webpage content preloading apparatus, including:
  • a first response unit configured to load a webpage accessed by the user request from a server in response to a webpage access request of the user
  • a feature collection unit configured to analyze the webpage, and collect feature metadata of the webpage
  • a policy unit configured to query a preloading policy table, and obtain a preloaded webpage corresponding to the feature metadata of the webpage
  • the webpage is a webpage with the highest probability of subsequent access requesting on the basis of the webpage requested by the user
  • the preloading policy table includes the corresponding relationship between the feature metadata of the webpage and the preloaded webpage
  • a cache unit configured to cache the preloaded webpage in a cache
  • a second response unit configured to receive a subsequent webpage access request of the user, to query whether a webpage accessed by the subsequent webpage access request request is cached in the cache; and the subsequent access request is that the user requests access by the user Issued on the basis of a web page;
  • a loading unit configured to: when the cache has the webpage requested by the subsequent webpage access request, upload the webpage accessed by the subsequent webpage access request from the cache.
  • An embodiment of the present invention provides a method for establishing a preloading policy table, including:
  • the plurality of feature metadata is analyzed to obtain a plurality of webpage access records of the user; the plurality of webpage access records of the user are sorted according to the chronological order of the access, and the plurality of webpages accessed by the user are obtained at the access time. Association relationship And obtaining, according to the association relationship, a webpage with the highest probability of subsequent access on the basis of the user accessing any one of the plurality of webpages;
  • a communication system based on a browser/server architecture comprising: a browser and a server, the browser is configured to receive a service request including web address information, and load, from the server, a request corresponding to the monthly service request Web page;
  • the server is configured to send the webpage data corresponding to the service request to the browser; the browser is further configured to: analyze the webpage, collect feature metadata of the webpage; and query a preloading policy table, Obtaining a preloaded webpage corresponding to the feature metadata of the webpage; the preloading webpage is a webpage with the highest probability of subsequent request access on the basis of the webpage requested by the user; the preloading policy table includes Corresponding relationship between the feature metadata of the webpage and the preloaded webpage;
  • the embodiment of the present invention determines the page that the user is most likely to access next time by collecting the feature metadata of the webpage and the query preloading policy table, and caches the user's possible access in advance when the user is normally browsed.
  • the next page data when the user requests the next page, directly reads the data from the cache, overcoming the problem that the user waits for too long after the user operates the front end, because the browser needs to read a large amount of data from the server. Improve the user experience.
  • FIG. 1 is a schematic diagram of a network management system according to an embodiment of the present invention
  • 2 is a flowchart of a communication method based on a browser/server architecture according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a preloading policy table according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a webpage content preloading method according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a method for updating a preloading policy table according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a webpage content preloading apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a communication system based on a browser/server architecture according to an embodiment of the present invention
  • FIG. 8 is a flowchart of a method for establishing a preloading policy table according to an embodiment of the present invention. detailed description
  • HTTP Hyper Text Transfer Protocol
  • the HTTP protocol defines how the Web client requests a Web page from a Web server, and how the server passes the Web page to the client.
  • the HTTP protocol uses a request/response model. In a complete web browsing process, the following four steps are followed between the web browser and the web server following the HTTP protocol:
  • the web browser Before web browsing, the web browser first establishes a connection with the web server through the network.
  • the connection is completed by TCP.
  • the protocol and the IP protocol jointly build the Internet, that is, the famous TCP/IP protocol family, so the Internet is It is called a TCP/IP network.
  • HTTP is a higher-level application layer protocol than TCP. According to the rules, only the lower layer protocol can be established before the connection of the layer protocol can be established. Therefore, the TCP connection must be established first.
  • the port number of the general TCP connection is 80.
  • the web browser sends a web page request message to the web server.
  • the web page request message includes: the requested method, the URL, the protocol version, the request header, and the request data.
  • the request method has GET, POST, HEAD, PUT, DELETE, OPTIONS, TRACE, CONNECT, and the GET method is generally used for web browsing;
  • the URL Uniform Resource Locator
  • the request header consists of a key/value pair, one pair per line, and the keyword and value are separated by the English colon ":”.
  • the request header notification server has information about the client request. Typical request headers are:
  • User-Agent The type of browser that generated the request
  • Accept a list of content types identifiable by the client
  • Host The host name of the request, allowing multiple domain names to be in the same IP address, that is, the virtual host.
  • Request data is not used in the GET method, but in the POST method.
  • the web server parses the web page request message, locates the request resource, and writes the page data to the TCP socket, which is read by the client.
  • the page data returned by the web server consists of a status line, a response header, a blank line, and a response data.
  • the web browser loads and displays the page according to the received page data.
  • the first embodiment of the present invention provides a communication method based on a browser/server architecture.
  • the method is applied to a network management system or an enterprise network management system.
  • the network management system hereinafter referred to as the network management
  • the network management is A software-based distributed network application system, whose purpose is to manage the network and make the network operate efficiently; the functions of the network management are generally divided into five management functions: performance management, configuration management, security management, billing management, and fault management;
  • the objects of network management generally include routers, switches, and HUBs.
  • the main body of network management is the network administrator.
  • the enterprise network management system is also a software-based distributed network application system. The main difference between the enterprise network management system and the network management is that the management object of the enterprise network management system is generally a service.
  • FIG. 1 is a schematic diagram of a network management system according to an embodiment of the present invention.
  • a client is configured to respond to a user operation, and a client is communicatively coupled to a server through a network, and the network may be a local area network or the Internet or both.
  • the client can be a general-purpose personal computer including a processor, temporary and permanent storage devices, an input/output subsystem, and a bus that can form a communication channel between the general-purpose personal computer components, such as an Ethernet interface; the client can also It is a handheld device, a set-top terminal, a mobile phone, a PDA, etc., and multiple clients can be communicatively coupled to the network.
  • the user can utilize the browser, and the browser can be installed on the local client or its remote end.
  • the browser sends a request to the server over the network, requesting that the specified content be obtained from the server's data storage device.
  • the server responds to the browser's request and sends the specified content to the browser over the network.
  • Step 201 The browser receives a service request including the web address information, and sends an HTTP request packet including the web address information and the user parameter to the server. ;
  • the service request may be a request initiated by the user directly inputting the web address in the browser client, or may be a request initiated by the "application side" after the user triggers or sets the service through the webpage.
  • Step 202 The server receives an HTTP request packet sent by the browser, and returns corresponding page data to the browser according to the HTTP request packet.
  • the server parses the HTTP request message, locates the request resource, and writes the corresponding page data to the TCP socket.
  • the browser reads.
  • Step 203 The browser receives the page data returned by the server, parses the page data, and displays the page.
  • the page data returned by the server consists of a status line, a response header, a blank line, and response data.
  • the browser after receiving the page data returned by the server, the browser first parses the status line to view a status code indicating whether the request is successful; and then parses each response header, and the response header informs that the following is a number of bytes.
  • Step 204 The browser analyzes the displayed webpage, and collects the feature metadata of the webpage.
  • the user feature metadata includes: a user name, a network element, a function classification, and a URL, where the user The name refers specifically to the user name of the administrator currently operating at the front end of the network management system; the network element represents which network element in the network is currently operating, such as a router, switch, or HUB; the function classification indicates the current network management page. Functions, such as performance management, configuration management, security management, accounting management, or fault management.
  • URL Uniform Resource Locator
  • URL Uniform Resource Locator
  • the user feature metadata includes: a username, a service, a function classification, and a URL.
  • the user name refers specifically to the user name of the administrator currently operating in the front end of the enterprise network management system; the service specifically refers to which type of front end of the enterprise network management system is currently being used. Services perform operations, such as video conferencing services, cloud computing services, etc.; functional classification indicates what operations are performed on the current service, such as configuration, testing, etc.; URL refers to the resource address of the page accessed by the current user in the server.
  • a part of the user feature metadata such as a user name and a function category, is included in a response header of the page data, and a part of the data, for example, the URL is included in the HTTP request message, and is in the HTTP message.
  • the user character metadata can be obtained by parsing the URL and the response data header corresponding to the HTTP message.
  • Step 205 The browser queries the preloading policy table according to the collected feature metadata, and obtains a preloaded webpage corresponding to the feature metadata of the webpage.
  • the preloading webpage is based on the webpage requested by the user.
  • the preloading policy table includes the corresponding relationship between the feature metadata of the webpage and the preloaded webpage;
  • the pre-loading policy table is a URL association table pre-defined according to the operation habits of most users in the network management system, and stores the correspondence between the feature metadata of the current webpage of the user and the pre-loaded webpage.
  • the preloaded webpage is one or more webpages with the highest probability that the user is most likely to visit or subsequently access after the current webpage is accessed.
  • the server performs statistics on the URLs of multiple operations of multiple users in the front end based on the method of probability statistics. For each webpage accessed by the user, the statistical user accesses the webpage, and then the most Frequently accessed, that is, the URL of a webpage with the most access times.
  • the UL is the URL of the preloaded webpage, and associates the UL with the URL of the currently visited webpage of the user, and adds it to the preloading policy table. It can be understood that, in another embodiment, there may be multiple pre-loaded webpages. Specifically, for each webpage accessed by the user, the user may count the most frequently accessed, ie, the number of visits, after accessing the webpage.
  • FIG. 3 is a schematic diagram of a preloading policy table according to an embodiment of the present invention.
  • the preload policy table consists of two parts: the currently accessed URL and the URL of the preloaded web page.
  • the URL in the collected feature metadata may be used as a key value, and a pre-loading policy table is used to find a pre-corresponding corresponding to the URL by using a hash index method.
  • the URL of the web page is loaded, and then the preloaded data is obtained from the server according to the URL of the preloaded webpage found.
  • the Hash index method has the advantage of quick search as a specific search method, which can improve the matching speed. Understandably, the hash index method is not a match.
  • the only way to implement the hash index is as an example and should not be construed as limiting the embodiments of the present invention.
  • Step 206 The browser caches the obtained preloaded webpage in the cache.
  • the cache here may be a browser-local cache or other cache that is physically or logically connected to the browser.
  • the communication method provided by the embodiment of the present invention further includes:
  • Step 207 The browser receives the next service request, determines whether the requested page data has been preloaded into the cache, and if so, loads the page data from the cache, and displays the page.
  • the communication method provided by the embodiment of the present invention further includes:
  • Step 204a The browser uploads the collected user feature metadata to the server, so that the server updates the preloading policy table according to the uploaded user feature metadata.
  • the network management system and the enterprise network management system collect the user's feature metadata and the query preloading policy table to determine the next most likely page to be accessed by the user, and ensure that the user browses the service normally.
  • the next page data that the user may access is cached in advance, so that when the user requests the next page, the data is directly read from the cache, which overcomes the problem that the user needs to read from the server after the user operates in the front end of the network management system.
  • the user experience is improved; further, by analyzing the collected feature metadata and updating the preloading policy table based on the analysis result, the user's preference may be The preloaded policy table is updated in real time to achieve the best user experience.
  • the preloading of webpage content is mainly completed by a browser. In practical applications, these steps are not limited to using a browser.
  • the implementation of the technical solution provided by the embodiment of the present invention is not limited to the network management or enterprise network management, and may be implemented by another entity, such as a browser control or a module.
  • the system can be extended to all applications that use the B/S architecture, such as Internet web browsing.
  • the second embodiment of the present invention provides a webpage content preloading method. As shown in FIG. 4, the webpage content preloading method provided by the second embodiment of the present invention includes:
  • Step 401 In response to a webpage access request of the user, load a webpage requested by the user from the server; specifically, loading the server from the server according to the HTTP communication mechanism of the webpage browsing introduced previously.
  • the process of requesting the accessed webpage data by the user is: after receiving the webpage access request of the user, the browser sends an HTTP request packet containing the webpage information to the server, and the server parses the HTTP request packet sent by the browser.
  • the HTTP request message locates the request resource, and writes the corresponding page data to the TCP socket, which is read by the browser.
  • the webpage access request may be a request initiated by the user directly inputting the web address in the browser client, or may be a request initiated by the "application side" after the user triggers or sets the service through the webpage; in an embodiment,
  • the webpage access request may further include a user parameter, and the user parameter may specifically include: a screen size of the client device, a display format supported by the device, and a computing capability of the device.
  • Step 402 Analyze the webpage requested by the user to collect the feature metadata of the webpage.
  • the webpage data returned by the server is composed of a status line, a response header, a blank line, and a response data.
  • the feature metadata of the webpage may include: a function of the webpage and a URL of the webpage; wherein the function of the webpage may be obtained by UL parsing the webpage, for example, the number of bars of the webpage to determine the webpage Hierarchy (from the beginning of the URL to the end of the question mark, no question mark to the end of the space), there are 3 slashes here, this means that the page is a third-level page; parsing the content between the slashes, you can get keywords, such as news , lady, the type or function of this page is female, news.
  • the feature metadata of the webpage may include: a user name, a network element, a function classification, and a UL, where the user name specifically refers to a user name of an administrator currently operating at the front end of the network management;
  • the NE indicates which network element in the network is currently operating, such as a router, switch, or HUB.
  • the function classification indicates the current network management page functions, such as performance management, configuration management, security management, accounting management, or fault. Management, etc.; URL (Uniform Resource Locator), also known as web address, refers to the resource address of the page accessed by the current user in the server.
  • the feature metadata of the web page includes: a username, a service, a function classification, and a URL.
  • the user name refers specifically to the user name of the administrator currently operating in the front end of the enterprise network management system; the service specifically refers to which service is currently being operated by the front end of the enterprise network management system, for example, a video conference service, a cloud computing service, etc.;
  • the classification indicates what kind of operation is performed on the current service, such as configuration, testing, etc.;
  • the URL refers to the page accessed by the current user on the server.
  • the resource address in refers specifically to the user name of the administrator currently operating in the front end of the enterprise network management system
  • the service specifically refers to which service is currently being operated by the front end of the enterprise network management system, for example, a video conference service, a cloud computing service, etc.
  • the classification indicates what kind of operation is performed on the current service, such as configuration, testing, etc.
  • the URL refers to the page accessed by the current user on the server.
  • the feature metadata of the webpage is included in the response header of the page data, and a part of the data, for example, the URL is included in the HTTP request packet, and the UL in the HTTP packet is The response data header corresponding to the HTTP message is parsed, and the feature metadata of the web page can be obtained.
  • Step 403 Query a preloading policy table, and obtain a preloaded webpage corresponding to the feature metadata of the webpage.
  • the preloading webpage is a webpage with the highest probability of subsequent request access on the basis of the webpage requested by the user. ;
  • the preloading policy table stores the correspondence between the feature metadata of the webpage and the preloaded webpage; in one embodiment, the preloading policy table is pre-defined based on the user's operating habits.
  • a URL association table which stores a correspondence between a UL of each user currently visiting a webpage and a URL of a preloaded webpage, where the preloaded webpage is based on the user accessing the current webpage, and the probability of subsequent access is the largest or the most One or more web pages that are likely to be accessed.
  • the URL of the multiple operations of the multiple users in the front end may be counted according to the method of probability statistics. For each webpage accessed by each user, the user is counted after accessing the webpage. Next, the most frequently accessed, that is, the URL of the most visited webpage, which is the URL of the preloaded webpage, associates the URL with the URL of the currently visited webpage of the user, and adds it to the preloading policy table. It can be understood that, in another embodiment, there may be multiple pre-loaded webpages. Specifically, for each webpage accessed by the user, the user may count the most frequently accessed, ie, the number of visits, after accessing the webpage.
  • FIG. 3 is a schematic diagram of a preloading policy table provided by an embodiment of the present invention. According to Figure 3, the preload policy table consists of two parts: the currently accessed URL and the URL of the preloaded web page.
  • the URL in the collected feature metadata may be used as a key value, and a pre-loading policy table is used to find a pre-corresponding corresponding to the URL by using a hash index method.
  • the URL of the web page is loaded, and then the preloaded data is obtained from the server according to the URL of the preloaded webpage found.
  • the Hash index method has the advantage of quick search as a specific search method, which can improve the matching speed. It is to be understood that the method of the hash index is not the only implementation of the matching, and the manner of the hash index is not to be construed as limiting the embodiment of the present invention.
  • Step 404 Cache the obtained preloaded webpage in a cache.
  • the cache here may be a browser-local cache or other cache that is physically or logically connected to the browser.
  • Step 405 Receive a subsequent access request of the user, and query whether a webpage accessed by the access request request is cached in the cache; and the subsequent access request is sent by the user on the basis of the webpage requested by the user;
  • Step 406 if yes, loading the webpage accessed by the subsequent webpage access request request from the cache.
  • the communication method provided by the embodiment of the present invention further includes:
  • Step 407 if no, loading a webpage requested by the user from the server.
  • the communication method provided by the embodiment of the present invention further includes:
  • Step 408 Update the preloading policy table according to the plurality of feature metadata of the webpage accessed by the user.
  • the preloading policy table is updated according to the plurality of feature metadata of the webpage that is subsequently accessed by the user, and specifically includes:
  • Step 501 Obtain a plurality of feature metadata of a webpage that the user subsequently accesses
  • Step 502 Analyze the plurality of feature metadata to obtain a plurality of webpage access records of the user.
  • Step 503 Sort the plurality of webpage access records of the user according to a chronological order of the access, and obtain the user access. The relationship between multiple web pages in terms of access time;
  • Step 504 Based on the association relationship, obtain, according to the association relationship, a webpage that has the greatest probability of subsequent access on the basis of the user accessing any one of the plurality of webpages;
  • Step 505 Establish an association relationship between a Uniform Resource Locator URL of the webpage of any one of the plurality of webpages and a URL of the webpage with the highest probability of subsequent access.
  • the preloading policy table is updated according to the plurality of feature metadata of the webpage accessed by the user, and the method may be as follows: after the server obtains the feature metadata of the webpage accessed by the user, the feature element is obtained according to the feature element.
  • the data has the following logical meaning:
  • Webmaster "User” operates “URL” on the “Function Classification” of "Network Element”.
  • Enterprise Network Management System "User” operates “URL” on the "Function Classification” of "Service”; therefore, each user An operation can be abstracted into the above logical meaning. According to the logical meaning, the user's operation can be changed into a set of operation records sorted by time.
  • the preloading policy table is updated by sorting each user's operation record, associating the user with the most operations and the next operation association.
  • the feature metadata of the webpage and the query preloading policy table are used to determine the page that the user is most likely to access next time, and the user may access the cache in advance when the user is normally browsed.
  • the next page data makes the user read the data directly from the cache when requesting the next page, which overcomes the problem that the user waits too long because the browser needs to read a large amount of data from the server when the user operates in the front end.
  • the user experience is improved.
  • the preloading policy table can be updated in real time according to the user's preference to achieve the best. user experience.
  • Embodiment 3 of the present invention provides a webpage content preloading apparatus, including:
  • the first response unit 610 is configured to: in response to the webpage access request of the user, load a webpage requested by the user from the server;
  • a feature collection unit 620 configured to analyze the webpage, and collect feature metadata of the webpage
  • the policy unit 630 is configured to acquire a preloaded webpage corresponding to the feature metadata of the webpage; a webpage with the highest probability of subsequent access requests based on the webpage requested by the user; the preloading policy table includes the corresponding relationship between the feature metadata of the webpage and the preloaded webpage;
  • a cache unit 640 configured to cache the preloaded webpage in a cache
  • the second response unit 650 is configured to receive a subsequent webpage access request of the user, and query whether the webpage accessed by the subsequent webpage access request request is cached in the cache; the subsequent access request is a webpage requested by the user at the user Issued on the basis of
  • the loading unit 660 is configured to: when the cache has the webpage requested by the subsequent webpage access request, load the webpage accessed by the subsequent webpage access request from the cache.
  • the loading unit 660 is further configured to: when the cache does not have the webpage accessed by the subsequent webpage access request, request the webpage accessed by the subsequent webpage access request from the server.
  • the specific working steps of the first response unit 610 may refer to step 401.
  • the specific work of the feature collecting unit 620 may refer to step 402.
  • the specific working steps of the policy unit 630 may be performed.
  • the specific working steps of the buffer unit 640 may refer to step 404.
  • the specific working steps of the second response unit 650 may refer to step 405.
  • the specific working steps of the loading unit 660 may refer to step 406.
  • the third embodiment of the present invention determines the next most likely page to be accessed by the user by collecting feature metadata of the webpage and querying the preloading policy table.
  • the user may access the cache in advance.
  • the next page data when the user requests the next page, directly reads the data from the cache, overcoming the problem that the user waits too long when the user needs to read a large amount of data from the server when the user operates in the front end. Improve the user experience.
  • Embodiment 4 As shown in FIG. 7, a fourth embodiment of the present invention provides a communication system based on a browser/server architecture, including: a browser and a server, where:
  • the browser is configured to receive a webpage access request of the user, load the webpage requested by the user from the server, and collect the feature metadata of the webpage by analyzing the page information, and query the preloading policy table based on the collected feature metadata. Obtaining a preloaded webpage corresponding to the feature metadata of the webpage, and buffering the obtained preloaded webpage into a cache; further, the browser is further configured to: receive a subsequent webpage access request of the user, and query whether the cache is cached a subsequent webpage access request requesting access to the webpage; if yes, loading the webpage accessed by the subsequent webpage access request request from the cache.
  • the subsequent access request is sent by the user on the basis of the webpage requested by the user;
  • the webpage access request may be a request initiated by the user directly by inputting a web address in the browser client, or may be a webpage of the user.
  • the server is configured to send webpage data corresponding to the webpage access request received by the browser to the browser.
  • the browser mainly includes: a first receiving module 710, a preloading module 720, a second receiving module 730, and a loading module 740.
  • the first receiving module 710 is configured to receive a webpage access request of the user, and load the webpage requested by the user from the server. It should be noted that the first receiving module 710 obtains webpage data requested by the user from the server according to the HTTP communication mechanism of the webpage browsing introduced earlier.
  • the preloading module 720 is configured to analyze the page loaded by the first receiving module 710, collect the feature metadata of the webpage, and obtain the next batch of page data that the user may access by querying the preloading policy table according to the collected feature metadata. Finally, the obtained page data is cached. Further, the preloading module 720 specifically includes: The collecting unit 7201 is configured to analyze a page loaded by the first receiving module 710, and collect feature metadata of the webpage;
  • the page data returned by the server is composed of a status line, a response header, a blank line, and a response data.
  • the feature metadata of the webpage may include: a user name, a network element, a function classification, and a UL, where the user name specifically refers to a user name of an administrator currently operating at the front end of the network management;
  • the NE indicates which network element in the network is currently operating, such as a router, switch, or HUB.
  • the function classification indicates the current network management page functions, such as performance management, configuration management, security management, accounting management, or fault. Management, etc.; URL (Uniform Resource Locator), also known as web address, refers to the resource address of the page accessed by the current user in the server.
  • the feature metadata of the webpage includes: a username, a service, a function classification, and a URL.
  • the user name refers specifically to the user name of the administrator currently operating in the front end of the enterprise network management system; the service specifically refers to which service is currently being operated by the front end of the enterprise network management system, for example, a video conference service, a cloud computing service, etc.; Classification indicates what operations are performed on the current service, such as configuration, testing, etc.; URL refers to the resource address of the page accessed by the current user in the server.
  • the feature metadata of the webpage such as the user name and the function classification
  • a part of the data such as the UL
  • the collecting unit can obtain the feature element of the webpage. data.
  • the querying unit 7202 is configured to query the preloading policy table according to the collected feature metadata, and obtain a preloaded webpage corresponding to the feature metadata of the webpage;
  • the preloading webpage is a basis of the webpage requested by the user to visit The page with the highest probability of subsequent request access; the preloading strategy table package Corresponding relationship between the feature metadata of the webpage and the preloaded webpage;
  • the pre-loading policy table is a URL association table pre-defined according to the operating habits of each user in the network management system, and stores the correspondence between the URL of the currently accessed webpage and the UL of the pre-loaded webpage.
  • Loading a web page is one or more web pages that the user is most likely to access after visiting the current web page.
  • statistics are performed on the URL of multiple operations of each user in the front end. For each webpage accessed by the user, after counting the webpage, the statistical user is most often followed. Access, that is, the UL of a webpage with the most access times, which is the URL of the preloaded webpage, associates the URL with the UL of the currently accessed webpage of the user, and adds it to the preloading policy table. It can be understood that, in another embodiment, there may be multiple pre-loaded webpages. Specifically, for each webpage accessed by the user, the user may count the most frequently accessed, ie, the number of visits, after accessing the webpage.
  • FIG. 3 is a schematic diagram of a preloading policy table according to an embodiment of the present invention.
  • the preload policy table consists of two parts: the URL currently accessed and the U L of the preloaded web page.
  • the URL in the collected feature metadata may be used as a key value, and a pre-loading policy table is used to find a pre-corresponding corresponding to the URL by using a hash index method.
  • the URL of the web page is loaded, and then the preloaded data is obtained from the server according to the URL of the preloaded webpage found.
  • the Hash index method has the advantage of quick search as a specific search method, which can improve the matching speed. It is to be understood that the method of the hash index is not the only implementation of the search. Therefore, the manner of the hash index is not to be construed as limiting the embodiment of the present invention.
  • the storage unit 7203 is configured to cache the preloaded webpage acquired by the query unit 7202.
  • the storage unit 7203 may be a browser-local cache or other cache that is physically or logically connected to the browser.
  • the preloading module 720 further includes: an uploading unit 7204, configured to upload the webpage feature metadata collected by the collecting unit 7201 to the server, so that the server according to the The feature metadata of the webpage is updated, and the preloading policy table is updated.
  • the server is further configured to: update the preloading policy table according to the feature metadata of the webpage uploaded by the uploading unit 7204. Specifically, the server implements the update of the preload policy table by the following steps:
  • the second receiving module 730 is configured to receive a subsequent webpage access request of the user, and query whether the webpage accessed by the subsequent webpage access request request is cached in the cache; the subsequent access request is based on the webpage requested by the user by the user. dispatched.
  • the loading module 740 is configured to: when the cache has the webpage requested by the subsequent webpage access request request, load the webpage accessed by the subsequent webpage access request request from the cache.
  • the loading module 740 is further configured to: when the cache does not have the webpage requested by the subsequent webpage access request, upload the webpage accessed by the subsequent webpage access request request from the server.
  • the browser/server architecture-based communication system collects feature data of the webpage based on the webpage, and uses a preloading module to cache a page that the user may access in advance while ensuring that the user browses the service normally.
  • the data so that when the user requests the next page, the data is directly read from the cache, which overcomes the problem that the user waits for too long after the user operates the front end, because the browser needs to read a large amount of data from the server, and improves the problem.
  • User experience Further, by analyzing the collected feature metadata and updating the preloading policy table based on the analysis result, the preloading policy table can be updated in real time according to the user's preference to achieve the best user experience.
  • Embodiment 5 of the present invention provides a method for establishing a preloading policy table, including:
  • Step 801 Obtain a plurality of feature metadata corresponding to multiple webpages accessed by the user;
  • Step 802 Analyze the plurality of feature metadata to obtain a plurality of webpage access records of the user.
  • Step 803 Sort the plurality of webpage access records of the user according to a chronological order of the access, and obtain the user access The relationship between multiple web pages in terms of access time;
  • Step 804 Based on the association relationship, obtain, according to the association relationship, a webpage that has the greatest probability of subsequent access on the basis of the user accessing any one of the plurality of webpages;
  • Step 805 Establish an association relationship between a Uniform Resource Locator URL of any one of the plurality of webpages and a URL of the webpage with the highest probability of subsequent access.
  • the fifth embodiment of the present invention collects and analyzes the feature metadata of the webpage accessed by the user, and establishes a preloading policy table according to the user's preference based on the analysis result, so as to facilitate the subsequent access to the webpage directly from the preloading strategy. Get the preloaded page in the table.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

Disclosed in an embodiment of the present invention is a webpage content preloading method, comprising: acquiring the characteristic metadata of a webpage according to the webpage information a user is currently accessing; searching a preloading policy table according to the acquired characteristic metadata and obtaining the preloaded data; and loading the obtained preloaded data to a cache. Also disclosed in the embodiment of the present invention are a webpage content preloading device, preloading policy table establishment method and communication system. In the above technical solution, a cache module stores in advance the data of the next webpage a user may access, without interrupting the current webpage browsing of the user, enabling the user to directly read data from the cache when requesting the next webpage, solving the problem in a network management system that a user has to wait a long time after performing a foreground operation because a browser needs to read a large amount of data from a server, thus improving user experience.

Description

一种网页内容预加载方法、 装置及系统  Webpage content preloading method, device and system
技术领域 Technical field
本发明涉及互联网领域, 尤其涉及一种网页内容预加载方法、装置及系统。  The present invention relates to the field of the Internet, and in particular, to a webpage content preloading method, apparatus, and system.
背景技术 Background technique
现在大部分关键应用, 如电信管理系统、 IT月良务管理系统、 企业网应用 系统为了提供可用性、 节省部署成本, 都采用 B/S的架构, 即浏览器和服务器 架构。 在这种结构下, 用户工作界面(UI, User Interface )是通过 WWW浏览 器来呈现, 而主要事务逻辑在服务器端 (Server)实现, 这样就大大简化了客户 端负荷, 减轻了系统维护与升级的成本和工作量, 降低了用户的总体成本, 其 中, 用户工作界面又称为前端, 服务器端又称为后台。 但在当前的网络管理系 统及企业管理等应用系统中, 由于在某些环节, 例如: 告警数据、 采集任务网 元数据、 采集任务日志等, 经常需要进行大量的数据更新, 而更新的数据量越 大, 前端用于从后台获取和加载数据的响应时间就越长,从而导致在前端进行 操作时, 用户等待的时间较长, 用户体验差。  Most of the key applications, such as telecom management systems, IT management systems, and enterprise network applications, use B/S architecture, namely browser and server architecture, to provide availability and save deployment costs. In this structure, the user interface (UI, User Interface) is presented by the WWW browser, and the main transaction logic is implemented on the server side, which greatly simplifies the client load and reduces system maintenance and upgrade. The cost and workload reduce the overall cost of the user. The user interface is also called the front end, and the server side is also called the background. However, in current network management systems and enterprise management applications, due to certain links, such as: alarm data, collection task network metadata, and collection task logs, a large amount of data update is often required, and the amount of updated data is required. The larger the response time of the front end for getting and loading data from the background, the longer the user waits and the poor user experience when operating on the front end.
在现有的基于 B/S的架构的应用系统中, 一般通过在 Web服务器中部署 页面片段緩存(Edge Side Includes, ESI )或者在客户端部署前端页面緩存的 方式, 预先加载大量的网页数据到緩存中, 使浏览器不必从 Web服务器频繁 读取数据, 从而减少浏览器从 Web服务器加载数据的时间。  In an existing B/S-based application system, a large amount of webpage data is preloaded by deploying an Edge Fragment (ESI) in a Web server or deploying a front-end page cache on a client. In the cache, the browser does not have to read data from the web server frequently, thereby reducing the time for the browser to load data from the web server.
采用现有技术方案由于无法确定用户最可能访问的数据,因此需要部署大 量的緩存空间,从而系统的复杂度和成本大幅提高,难以在实际中大规模商用, 无法有效地解决基于 B/S架构的应用系统中部分操作耗时太长的问题。 发明内容  The prior art solution cannot determine the data that the user is most likely to access, so a large amount of cache space needs to be deployed, so that the complexity and cost of the system are greatly increased, and it is difficult to be commercially large-scale in practice, and the B/S-based architecture cannot be effectively solved. Part of the application system takes too long to operate. Summary of the invention
本发明实施例提供一种网页内容预加载方法,基于用户行为分析实现网页 内容的预加载, 减少用户在基于 B/S架构的应用系统中, 进行前端操作时的等 待时间, 提高用户体验。  The embodiment of the invention provides a webpage content preloading method, which implements preloading of webpage content based on user behavior analysis, reduces waiting time of the user in front end operation in the application system based on the B/S architecture, and improves user experience.
本发明实施例提供一种网页内容预加载方法, 包括: 响应用户的网页访问请求, 从服务器加载所述用户请求访问的网页; 分析所述网页, 采集所述网页的特征元数据; An embodiment of the present invention provides a webpage content preloading method, including: Responding to the webpage access request of the user, loading the webpage requested by the user from the server; analyzing the webpage, and collecting feature metadata of the webpage;
查询预加载策略表, 获取与所述网页的特征元数据对应的预加载网页; 所 述预加载网页为在所述用户请求访问的网页的基础上,后续请求访问的概率最 大的网页;所述预加载策略表包含有所述网页的特征元数据和所述预加载网页 的对应关系;  Querying a preloading policy table, and acquiring a preloaded webpage corresponding to the feature metadata of the webpage; the preloading webpage is a webpage with the highest probability of subsequent request access based on the webpage requested by the user; The preloading policy table includes a correspondence relationship between the feature metadata of the webpage and the preloaded webpage;
将所述预加载网页緩存在緩存中;  Cache the preloaded web page in a cache;
接收所述用户的后续网页访问请求,查询緩存中是否緩存有所述后续网页 访问请求请求访问的网页;所述后续访问请求是所述用户在所述用户请求访问 的网页的基础上发出的;  Receiving a subsequent webpage access request of the user, and querying, in the cache, whether the webpage accessed by the subsequent webpage access request request is cached; the subsequent access request is sent by the user on the basis of the webpage requested by the user;
如果是, 从所述緩存中加载所述后续网页访问请求请求访问的网页。 本发明实施例提供一种网页内容预加载装置, 包括:  If so, the webpage accessed by the subsequent webpage access request request is loaded from the cache. An embodiment of the present invention provides a webpage content preloading apparatus, including:
第一响应单元, 用于响应用户的网页访问请求,从服务器加载所述用户请 求访问的网页;  a first response unit, configured to load a webpage accessed by the user request from a server in response to a webpage access request of the user;
特征采集单元, 用于分析所述网页, 采集所述网页的特征元数据; 策略单元, 用于查询预加载策略表, 获取与所述网页的特征元数据对应的 预加载网页; 所述预加载网页为在所述用户请求访问的网页的基础上,后续请 求访问的概率最大的网页;所述预加载策略表包含有所述网页的特征元数据和 所述预加载网页的对应关系;  a feature collection unit, configured to analyze the webpage, and collect feature metadata of the webpage; a policy unit, configured to query a preloading policy table, and obtain a preloaded webpage corresponding to the feature metadata of the webpage; The webpage is a webpage with the highest probability of subsequent access requesting on the basis of the webpage requested by the user; the preloading policy table includes the corresponding relationship between the feature metadata of the webpage and the preloaded webpage;
緩存单元, 用于将所述预加载网页緩存在緩存中;  a cache unit, configured to cache the preloaded webpage in a cache;
第二响应单元, 用于接收所述用户的后续网页访问请求, 查询緩存中是否 緩存有所述后续网页访问请求请求访问的网页;所述后续访问请求是所述用户 在所述用户请求访问的网页的基础上发出的;  a second response unit, configured to receive a subsequent webpage access request of the user, to query whether a webpage accessed by the subsequent webpage access request request is cached in the cache; and the subsequent access request is that the user requests access by the user Issued on the basis of a web page;
加载单元, 用于当所述緩存中有所述后续网页访问请求请求访问的网页 时, 从所述緩存中加载所述后续网页访问请求请求访问的网页。  a loading unit, configured to: when the cache has the webpage requested by the subsequent webpage access request, upload the webpage accessed by the subsequent webpage access request from the cache.
本发明实施例提供一种建立预加载策略表的方法, 包括:  An embodiment of the present invention provides a method for establishing a preloading policy table, including:
获得用户访问的多个网页对应的多个特征元数据;  Obtaining a plurality of feature metadata corresponding to the plurality of web pages accessed by the user;
分析所述多个特征元数据, 得到所述用户的多次网页访问记录; 对所述用户的多次网页访问记录按照访问的时间先后顺序排序,得到所述 用户访问的多个网页在访问时间上的关联关系; 基于所述关联关系,统计得到所述用户在访问所述多个网页中的任一个网 页的基础上, 后续访问的概率最大的网页; The plurality of feature metadata is analyzed to obtain a plurality of webpage access records of the user; the plurality of webpage access records of the user are sorted according to the chronological order of the access, and the plurality of webpages accessed by the user are obtained at the access time. Association relationship And obtaining, according to the association relationship, a webpage with the highest probability of subsequent access on the basis of the user accessing any one of the plurality of webpages;
建立所述多个网页中的任一个网页的统一资源定位符 URL和所述后续访 问的概率最大的网页的 URL之间的关联关系。  Establishing an association relationship between a Uniform Resource Locator URL of any one of the plurality of web pages and a URL of the webpage with the highest probability of subsequent access.
本发明一种基于浏览器 /服务器架构的通信系统, 包括: 浏览器和服务器, 所述浏览器用于,接收包含有网址信息的服务请求,从所述服务器加载与所述 月良务请求对应的网页;  A communication system based on a browser/server architecture, comprising: a browser and a server, the browser is configured to receive a service request including web address information, and load, from the server, a request corresponding to the monthly service request Web page;
所述服务器, 用于将所述服务请求对应的网页数据发送给所述浏览器; 所述浏览器还用于, 分析所述网页, 采集所述网页的特征元数据; 查询预加载策略表, 获取与所述网页的特征元数据对应的预加载网页; 所 述预加载网页为在所述用户请求访问的网页的基础上,后续请求访问的概率最 大的网页;所述预加载策略表包含有所述网页的特征元数据和所述预加载网页 的对应关系;  The server is configured to send the webpage data corresponding to the service request to the browser; the browser is further configured to: analyze the webpage, collect feature metadata of the webpage; and query a preloading policy table, Obtaining a preloaded webpage corresponding to the feature metadata of the webpage; the preloading webpage is a webpage with the highest probability of subsequent request access on the basis of the webpage requested by the user; the preloading policy table includes Corresponding relationship between the feature metadata of the webpage and the preloaded webpage;
将所述预加载网页緩存在緩存中;  Cache the preloaded web page in a cache;
接收所述用户的后续网页访问请求,查询緩存中是否緩存有所述后续网页 访问请求请求访问的网页;所述后续访问请求是用户在所述用户请求访问的网 页的基础上发出的; 如果是,从所述緩存中加载所述后续网页访问请求请求访 问的网页。  Receiving a subsequent webpage access request of the user, and querying, in the cache, whether the webpage accessed by the subsequent webpage access request request is cached; the subsequent access request is sent by the user on the basis of the webpage requested by the user; Loading the webpage accessed by the subsequent webpage access request request from the cache.
本发明实施例通过以上技术方案,通过采集网页的特征元数据和查询预加 载策略表来确定用户下一次最可能访问的页面,并在保证用户正常浏览业务的 情况下,提前緩存用户可能访问的一下个页面数据,使得用户请求下一个页面 时, 直接从緩存中读取数据, 克服了用户在前端进行操作后, 由于浏览器需要 从服务器读取大量数据而造成用户等待时间过长的问题, 提高了用户的体验。 附图说明  The embodiment of the present invention determines the page that the user is most likely to access next time by collecting the feature metadata of the webpage and the query preloading policy table, and caches the user's possible access in advance when the user is normally browsed. The next page data, when the user requests the next page, directly reads the data from the cache, overcoming the problem that the user waits for too long after the user operates the front end, because the browser needs to read a large amount of data from the server. Improve the user experience. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明实施例提供的一种网管架构图; 图 2为本发明实施例提供的基于浏览器 /服务器架构的通信方法流程图; 图 3为本发明实施例提供的一种预加载策略表的示意图; FIG. 1 is a schematic diagram of a network management system according to an embodiment of the present invention; 2 is a flowchart of a communication method based on a browser/server architecture according to an embodiment of the present invention; FIG. 3 is a schematic diagram of a preloading policy table according to an embodiment of the present invention;
图 4为本发明实施例提供的网页内容预加载方法流程图;  4 is a flowchart of a webpage content preloading method according to an embodiment of the present invention;
图 5为本发明实施例提供的预加载策略表更新方法流程图;  FIG. 5 is a flowchart of a method for updating a preloading policy table according to an embodiment of the present invention;
图 6为本发明实施例提供的一种网页内容预加载装置示意图;  6 is a schematic diagram of a webpage content preloading apparatus according to an embodiment of the present invention;
图 7为本发明实施例提供的基于浏览器 /服务器架构的通信系统示意图; 图 8为本发明实施例提供的一种建立预加载策略表的方法流程图。 具体实施方式  FIG. 7 is a schematic diagram of a communication system based on a browser/server architecture according to an embodiment of the present invention; FIG. 8 is a flowchart of a method for establishing a preloading policy table according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative work are within the scope of the present invention.
为使本领域一般技术人员更好的了解本发明实施例提供的技术方案,对网 页浏览的 HTTP(Hyper Text Transfer Protocol ,超文本传输协议)通信机制做一个 简单的介绍:  In order to enable a person skilled in the art to better understand the technical solution provided by the embodiment of the present invention, a simple introduction is made to the HTTP (Hyper Text Transfer Protocol) communication mechanism for web browsing:
HTTP互联网上应用最为广泛的一种网络协议, 所有的 WWW文件都必须 遵守这个标准。 HTTP协议定义了 Web客户端如何从 Web服务器请求 Web页面, 以及服务器如何把 Web页面传送给客户端, HTTP协议采用了请求 /响应模型。 在一次完整的网页浏览过程中, Web浏览器与 Web服务器之间将遵循 HTTP协 议完成下列 4个步骤:  One of the most widely used network protocols on the HTTP Internet, all WWW files must comply with this standard. The HTTP protocol defines how the Web client requests a Web page from a Web server, and how the server passes the Web page to the client. The HTTP protocol uses a request/response model. In a complete web browsing process, the following four steps are followed between the web browser and the web server following the HTTP protocol:
( 1 )建立 TCP连接;  (1) establishing a TCP connection;
在进行网页浏览之前, Web浏览器首先要通过网络与 Web服务器建立连 接, 该连接是通过 TCP来完成的, 该协议与 IP协议共同构建 Internet, 即著名的 TCP/IP协议族, 因此 Internet又被称作是 TCP/IP网络。 HTTP是比 TCP更高层次 的应用层协议, 根据规则, 只有低层协议建立之后才能, 才能进行更层协议的 连接, 因此, 首先要建立 TCP连接, 一般 TCP连接的端口号是 80;  Before web browsing, the web browser first establishes a connection with the web server through the network. The connection is completed by TCP. The protocol and the IP protocol jointly build the Internet, that is, the famous TCP/IP protocol family, so the Internet is It is called a TCP/IP network. HTTP is a higher-level application layer protocol than TCP. According to the rules, only the lower layer protocol can be established before the connection of the layer protocol can be established. Therefore, the TCP connection must be established first. The port number of the general TCP connection is 80.
( 2 ) Web浏览器向 Web服务器发送网页请求消息;  (2) the web browser sends a webpage request message to the web server;
一旦建立了 TCP连接, Web浏览器就会向 Web服务器发送网页请求消息, 网页请求消息包含: 请求的方法、 URL、 协议版本、 请求头部和请求数据。 其 中, 请求方法有 GET、 POST, HEAD, PUT, DELETE, OPTIONS, TRACE, CONNECT,而网页浏览时一般只用 GET方法; URL( Uniform Resource Locator, 统一资源定位符)也被称为网页地址, 是因特网上标准的资源的地址; 请求头 部由关键字 /值对组成, 每行一对, 关键字和值用英文冒号 ":" 分隔。 请求头 部通知服务器有关于客户端请求的信息, 典型的请求头有: Once the TCP connection is established, the web browser sends a web page request message to the web server. The web page request message includes: the requested method, the URL, the protocol version, the request header, and the request data. Its The request method has GET, POST, HEAD, PUT, DELETE, OPTIONS, TRACE, CONNECT, and the GET method is generally used for web browsing; the URL (Uniform Resource Locator) is also called the web address, The address of a standard resource on the Internet; the request header consists of a key/value pair, one pair per line, and the keyword and value are separated by the English colon ":". The request header notification server has information about the client request. Typical request headers are:
User-Agent: 产生请求的浏览器类型;  User-Agent: The type of browser that generated the request;
Accept: 客户端可识别的内容类型列表;  Accept: a list of content types identifiable by the client;
Host: 请求的主机名, 允许多个域名同处一个 IP地址, 即虚拟主机。  Host: The host name of the request, allowing multiple domain names to be in the same IP address, that is, the virtual host.
请求数据不在 GET方法中使用, 而是在 POST方法中使用。  Request data is not used in the GET method, but in the POST method.
( 3 ) Web服务器接收请求并返回页面数据;  (3) the web server receives the request and returns the page data;
Web服务器解析网页请求消息, 定位请求资源, 并将页面数据写到 TCP套 接字, 由客户端读取。 Web服务器返回的页面数据由状态行、 响应头部、 空行 和响应数据 4部分组成。  The web server parses the web page request message, locates the request resource, and writes the page data to the TCP socket, which is read by the client. The page data returned by the web server consists of a status line, a response header, a blank line, and a response data.
( 4 ) Web浏览器根据收到的页面数据, 加载和显示页面。  (4) The web browser loads and displays the page according to the received page data.
实施例一, 本发明实施例一提供一种基于浏览器 /服务器架构的通信方法, 该方法应用于网络管理系统或企业网管理系统中, 需要说明的是, 网络管理系 统, 以下简称网管, 是一个以软件为主的分布式网络应用系统, 其目的是管理 网络, 使网络高效正常运行; 网管的功能一般分为性能管理, 配置管理, 安全 管理,计费管理和故障管理等五大管理功能;网管管理的对象一般包括路由器, 交换机, HUB等; 网管的操作主体为网络管理员。 与网管类似, 企业网管理系 统也是一个以软件为主的分布式网络应用系统,企业网管理系统与网管的主要 区别就在于, 企业网管理系统的管理对象一般是服务。  The first embodiment of the present invention provides a communication method based on a browser/server architecture. The method is applied to a network management system or an enterprise network management system. It should be noted that the network management system, hereinafter referred to as the network management, is A software-based distributed network application system, whose purpose is to manage the network and make the network operate efficiently; the functions of the network management are generally divided into five management functions: performance management, configuration management, security management, billing management, and fault management; The objects of network management generally include routers, switches, and HUBs. The main body of network management is the network administrator. Similar to the network management, the enterprise network management system is also a software-based distributed network application system. The main difference between the enterprise network management system and the network management is that the management object of the enterprise network management system is generally a service.
图 1所示为本发明实施例提供的一种网管架构图,根据图 1 ,客户端用于响 应用户的操作,客户端通过网络与服务器通信耦合, 该网络可以为局域网或互 联网或两者的组合; 客户端可以是通用个人计算机, 其包括处理器、 暂时和永 久性存储设备、 输入 /输出子系统, 以及可构成通用个人计算机组件间通信通 道的总线,例如以太网接口;客户端还可以为手持设备、机顶终端、手机、 PDA 等,且多个客户端可与网络通信耦合。 当位于客户端的用户要从服务器获取数 据时, 该用户可以利用浏览器, 浏览器可以安装在本地客户端或其远端。 浏览 器通过网络向服务器发送请求, 要求从服务器的数据存储装置获取指定内容, 服务器响应浏览器的请求, 并通过网络向浏览器发送该指定内容。 FIG. 1 is a schematic diagram of a network management system according to an embodiment of the present invention. According to FIG. 1, a client is configured to respond to a user operation, and a client is communicatively coupled to a server through a network, and the network may be a local area network or the Internet or both. The client can be a general-purpose personal computer including a processor, temporary and permanent storage devices, an input/output subsystem, and a bus that can form a communication channel between the general-purpose personal computer components, such as an Ethernet interface; the client can also It is a handheld device, a set-top terminal, a mobile phone, a PDA, etc., and multiple clients can be communicatively coupled to the network. When a user on the client wants to get data from the server, the user can utilize the browser, and the browser can be installed on the local client or its remote end. The browser sends a request to the server over the network, requesting that the specified content be obtained from the server's data storage device. The server responds to the browser's request and sends the specified content to the browser over the network.
图 2为本发明实施例一提供的基于浏览器 /服务器架构的通信方法的流程 图。 参考图 2, 本发明实施例提供的网页内容加载方法具体包括如下步骤: 步骤 201 , 浏览器接收包含有网址信息的服务请求, 并向服务器发送包含 有该网址信息和用户参数的 HTTP请求报文;  2 is a flow chart of a communication method based on a browser/server architecture according to Embodiment 1 of the present invention. Referring to FIG. 2, the webpage content loading method provided by the embodiment of the present invention specifically includes the following steps: Step 201: The browser receives a service request including the web address information, and sends an HTTP request packet including the web address information and the user parameter to the server. ;
所述服务请求,可以是用户直接通过在浏览器客户端输入网址而发起的请 求, 也可以是用户通过网页触发或设置业务后, 由 "应用侧" 发起的请求。  The service request may be a request initiated by the user directly inputting the web address in the browser client, or may be a request initiated by the "application side" after the user triggers or sets the service through the webpage.
步骤 202, 服务器接收浏览器发送的 HTTP请求报文, 并根据该 HTTP请求 报文向浏览器返回对应的页面数据;  Step 202: The server receives an HTTP request packet sent by the browser, and returns corresponding page data to the browser according to the HTTP request packet.
根据之前介绍的网页浏览的 HTTP通信机制, 服务器在接收到浏览器发送 的 HTTP请求报文后, 解析该 HTTP请求报文, 定位请求资源, 并将对应的页面 数据写到 TCP套接字, 由浏览器读取。  According to the HTTP communication mechanism of the web browsing described above, after receiving the HTTP request message sent by the browser, the server parses the HTTP request message, locates the request resource, and writes the corresponding page data to the TCP socket. The browser reads.
步骤 203 , 浏览器接收服务器返回的页面数据, 解析所述页面数据, 并显 示页面;  Step 203: The browser receives the page data returned by the server, parses the page data, and displays the page.
服务器返回的页面数据由状态行、响应头部、 空行和响应数据 4部分组成。 具体地, 在一个实施例中, 浏览器接收到服务器返回的页面数据后, 首先解析 状态行, 查看表明请求是否成功的状态代码; 然后解析每一个响应头, 响应头 告知以下为若干字节的 HTML文档和文档的字符集; 最后浏览器读取响应数据 HTML, 根据 HTML的语法对其进行格式化, 并在浏览器窗口中显示。  The page data returned by the server consists of a status line, a response header, a blank line, and response data. Specifically, in an embodiment, after receiving the page data returned by the server, the browser first parses the status line to view a status code indicating whether the request is successful; and then parses each response header, and the response header informs that the following is a number of bytes. The character set of the HTML document and the document; Finally, the browser reads the response data HTML, formats it according to the syntax of the HTML, and displays it in a browser window.
步骤 204, 浏览器分析显示的网页, 采集所述网页的特征元数据; 针对网管的特性,在一个实施例中,用户特征元数据包括: 用户名、 网元、 功能分类和 URL, 其中, 用户名具体指当前在网管前端进行操作的管理员的用 户名; 网元代表网管前端当前正在对网络中的哪一种网元进行操作, 比如路由 器, 交换机或者 HUB等; 功能分类表示当前网管页面的功能, 比如性能管理、 配置管理、安全管理、计费管理或故障管理等; URL( Uniform Resource Locator, 统一资源定位符)也被称为网页地址,是指当前用户访问的页面在服务器中的 资源地址。  Step 204: The browser analyzes the displayed webpage, and collects the feature metadata of the webpage. For the characteristics of the network management, in one embodiment, the user feature metadata includes: a user name, a network element, a function classification, and a URL, where the user The name refers specifically to the user name of the administrator currently operating at the front end of the network management system; the network element represents which network element in the network is currently operating, such as a router, switch, or HUB; the function classification indicates the current network management page. Functions, such as performance management, configuration management, security management, accounting management, or fault management. URL (Uniform Resource Locator) is also called a web address. It refers to the resources of the page accessed by the current user in the server. address.
针对企业网管理系统的特性, 在另一个实施例中, 用户特征元数据包括: 用户名、 服务、 功能分类和 URL。 用户名具体指当前在企业网管理系统前端进 行操作的管理员的用户名;服务具体指企业网管理系统前端当前正在对哪一种 服务进行操作, 比如, 视频会议服务、 云计算服务等; 功能分类表示对当前服 务进行何种操作, 比如配置、 测试等; URL是指当前用户访问的页面在服务器 中的资源地址。 For another feature of the enterprise network management system, in another embodiment, the user feature metadata includes: a username, a service, a function classification, and a URL. The user name refers specifically to the user name of the administrator currently operating in the front end of the enterprise network management system; the service specifically refers to which type of front end of the enterprise network management system is currently being used. Services perform operations, such as video conferencing services, cloud computing services, etc.; functional classification indicates what operations are performed on the current service, such as configuration, testing, etc.; URL refers to the resource address of the page accessed by the current user in the server.
具体地, 这些用户特征元数据中的一部分, 比如用户名、 功能分类包含在 页面数据的响应头部中,还有一部分数据,比如: URL包含在 HTTP请求报文中, 通过对 HTTP报文中的 URL以及 HTTP报文对应的响应数据头部进行解析,可以 得到所述用户特征元数据。  Specifically, a part of the user feature metadata, such as a user name and a function category, is included in a response header of the page data, and a part of the data, for example, the URL is included in the HTTP request message, and is in the HTTP message. The user character metadata can be obtained by parsing the URL and the response data header corresponding to the HTTP message.
步骤 205, 浏览器根据采集的特征元数据, 查询预加载策略表, 获取与所 述网页的特征元数据对应的预加载网页;所述预加载网页为在所述用户请求访 问的网页的基础上,后续请求访问的概率最大的网页; 所述预加载策略表包含 有所述网页的特征元数据和所述预加载网页的对应关系;  Step 205: The browser queries the preloading policy table according to the collected feature metadata, and obtains a preloaded webpage corresponding to the feature metadata of the webpage. The preloading webpage is based on the webpage requested by the user. The webpage with the highest probability of subsequent access requests; the preloading policy table includes the corresponding relationship between the feature metadata of the webpage and the preloaded webpage;
需要说明的是,预加载策略表是根据网管中大部分用户的操作习惯而预先 制定的一个 URL关联表,它存储了用户当前访问网页网页的特征元数据和所述 预加载网页的对应关系, 所述预加载网页为用户在访问完当前网页后,接下来 最有可能访问或后续访问的概率最大的一个或多个网页。  It should be noted that the pre-loading policy table is a URL association table pre-defined according to the operation habits of most users in the network management system, and stores the correspondence between the feature metadata of the current webpage of the user and the pre-loaded webpage. The preloaded webpage is one or more webpages with the highest probability that the user is most likely to visit or subsequently access after the current webpage is accessed.
具体地, 在一个实施例中, 服务器基于概率统计的方法, 对多个用户在前 端的多次操作的 URL进行统计,对于用户访问的每个网页, 统计用户在访问该 网页后, 接下来最常访问, 即访问次数最多的一个网页的 URL, 该 U L即为预 加载网页的 URL,将该 U L和用户当前访问网页的 URL关联, 并添加到预加载 策略表。 当然可以理解的是, 在另一个实施例中, 预加载网页可以有多个, 具 体地, 对于用户访问的每个网页, 可以统计用户在访问该网页后, 接下来最常 访问, 即访问次数最多的多个网页的 U L, 比如 3个, 将所述多个 URL和用户 当前访问网页的 URL关联, 并添加到预加载策略表中。 图 3所示为本发明实施 例提供的一种预加载策略表的示意图。 根据图 3 , 预加载策略表包括两部分: 当前访问的 URL和预加载网页的 URL。  Specifically, in an embodiment, the server performs statistics on the URLs of multiple operations of multiple users in the front end based on the method of probability statistics. For each webpage accessed by the user, the statistical user accesses the webpage, and then the most Frequently accessed, that is, the URL of a webpage with the most access times. The UL is the URL of the preloaded webpage, and associates the UL with the URL of the currently visited webpage of the user, and adds it to the preloading policy table. It can be understood that, in another embodiment, there may be multiple pre-loaded webpages. Specifically, for each webpage accessed by the user, the user may count the most frequently accessed, ie, the number of visits, after accessing the webpage. The UL of the plurality of web pages, for example, three, associates the plurality of URLs with the URL of the currently accessed webpage of the user, and adds to the preloading policy table. FIG. 3 is a schematic diagram of a preloading policy table according to an embodiment of the present invention. According to Figure 3, the preload policy table consists of two parts: the currently accessed URL and the URL of the preloaded web page.
在一个实施例中,在进行查询时, 可以将采集的特征元数据中的 URL作为 键(key )值, 采用 hash (哈希) 索引的方法从预加载策略表查找出与该 URL 对应的预加载网页的 URL, 然后根据查找出的预加载网页的 URL,从服务器获 取预加载数据。需要说明的是, Hash索引的方法作为一个具体的查找方式具有 迅速查找的优势, 能提高匹配速度。 可以理解的是 hash索引的方法并不是匹配 的唯一实现方式,故 hash索引的方式作为一个举例不应理解为对本发明实施例 的限定。 In an embodiment, when the query is performed, the URL in the collected feature metadata may be used as a key value, and a pre-loading policy table is used to find a pre-corresponding corresponding to the URL by using a hash index method. The URL of the web page is loaded, and then the preloaded data is obtained from the server according to the URL of the preloaded webpage found. It should be noted that the Hash index method has the advantage of quick search as a specific search method, which can improve the matching speed. Understandably, the hash index method is not a match. The only way to implement the hash index is as an example and should not be construed as limiting the embodiments of the present invention.
步骤 206, 浏览器将获取的预加载网页緩存在緩存中;  Step 206: The browser caches the obtained preloaded webpage in the cache.
具体地, 这里的緩存, 可以是浏览器本地的緩存, 也可以是与浏览器物理 或逻辑连接的其他緩存。  Specifically, the cache here may be a browser-local cache or other cache that is physically or logically connected to the browser.
进一步地, 本发明实施例提供的通信方法还包括:  Further, the communication method provided by the embodiment of the present invention further includes:
步骤 207, 浏览器接收下一个服务请求, 判断所请求页面数据是否已经预 加载到緩存中, 如果是, 则从緩存中加载所述页面数据, 并显示页面。  Step 207: The browser receives the next service request, determines whether the requested page data has been preloaded into the cache, and if so, loads the page data from the cache, and displays the page.
进一步地, 为了根据用户的偏好对预加载策略表进行实时更新, 达到最佳 的用户体验, 本发明实施例提供的通信方法还包括:  Further, in order to perform the real-time update of the pre-loading policy table according to the user's preference to achieve an optimal user experience, the communication method provided by the embodiment of the present invention further includes:
步骤 204a, 浏览器将采集的用户特征元数据上传到服务器, 以使服务器根 据上传的用户特征元数据, 更新预加载策略表。  Step 204a: The browser uploads the collected user feature metadata to the server, so that the server updates the preloading policy table according to the uploaded user feature metadata.
本发明实施例一通过以上技术方案,在网管及企业网管理系统中,通过采 集用户的特征元数据和查询预加载策略表来确定用户下一次最可能访问的页 面, 并在保证用户正常浏览业务的情况下,提前緩存用户可能访问的一下个页 面数据, 使得用户请求下一个页面时, 直接从緩存中读取数据, 克服了网管系 统中用户在前端进行操作后 ,由于浏览器需要从服务器读取大量数据而造成用 户等待时间过长的问题, 提高了用户的体验; 进一步地, 通过对采集的特征元 数据进行分析, 并基于分析的结果, 更新预加载策略表, 可以针对用户的偏好 对预加载策略表进行实时更新, 达到最佳的用户体验。  According to the foregoing technical solution, the network management system and the enterprise network management system collect the user's feature metadata and the query preloading policy table to determine the next most likely page to be accessed by the user, and ensure that the user browses the service normally. In case, the next page data that the user may access is cached in advance, so that when the user requests the next page, the data is directly read from the cache, which overcomes the problem that the user needs to read from the server after the user operates in the front end of the network management system. Taking a large amount of data and causing the user to wait too long, the user experience is improved; further, by analyzing the collected feature metadata and updating the preloading policy table based on the analysis result, the user's preference may be The preloaded policy table is updated in real time to achieve the best user experience.
基于本发明实施例一的描述, 本领域技术人员应当理解,在本发明实施例 一中, 主要由浏览器来完成了网页内容的预加载, 在实际应用中, 这些步骤并 不限于用浏览器来完成,还可以由浏览器之外的另一个实体, 例如浏览器控件 或者模块来实现, 同时, 可以理解的是, 本发明实施例提供的技术方案的应用 场景并不限于网管或企业网管理系统, 可以扩展到所有采用 B/S架构的应用系 统, 比如因特网网页的浏览中。 基于这一思想, 本发明实施例二提供一种网页 内容预加载方法, 如图 4所示, 本发明实施例二提供的网页内容预加载方法包 括:  Based on the description of the first embodiment of the present invention, those skilled in the art should understand that in the first embodiment of the present invention, the preloading of webpage content is mainly completed by a browser. In practical applications, these steps are not limited to using a browser. The implementation of the technical solution provided by the embodiment of the present invention is not limited to the network management or enterprise network management, and may be implemented by another entity, such as a browser control or a module. The system can be extended to all applications that use the B/S architecture, such as Internet web browsing. Based on this idea, the second embodiment of the present invention provides a webpage content preloading method. As shown in FIG. 4, the webpage content preloading method provided by the second embodiment of the present invention includes:
步骤 401 , 响应用户的网页访问请求,从服务器加载用户请求访问的网页; 具体地, 根据之前介绍的网页浏览的 HTTP通信机制, 从服务器加载所述 用户请求访问的网页数据的过程为: 浏览器接收到用户的网页访问请求后, 向 服务器发送包含有该网址信息的 HTTP请求报文, 服务器在接收到浏览器发送 的 HTTP请求报文后, 解析该 HTTP请求报文, 定位请求资源, 并将对应的页面 数据写到 TCP套接字, 由浏览器读取。 Step 401: In response to a webpage access request of the user, load a webpage requested by the user from the server; specifically, loading the server from the server according to the HTTP communication mechanism of the webpage browsing introduced previously. The process of requesting the accessed webpage data by the user is: after receiving the webpage access request of the user, the browser sends an HTTP request packet containing the webpage information to the server, and the server parses the HTTP request packet sent by the browser. The HTTP request message locates the request resource, and writes the corresponding page data to the TCP socket, which is read by the browser.
所述网页访问请求,可以是用户直接通过在浏览器客户端输入网址而发起 的请求,也可以是用户通过网页触发或设置业务后, 由 "应用侧"发起的请求; 在一个实施例中, 所述网页访问请求还可以包含用户参数, 该用户参数具体可 以包括: 客户端设备的屏幕大小、设备支持的显示格式及设备的计算能力等信 息。  The webpage access request may be a request initiated by the user directly inputting the web address in the browser client, or may be a request initiated by the "application side" after the user triggers or sets the service through the webpage; in an embodiment, The webpage access request may further include a user parameter, and the user parameter may specifically include: a screen size of the client device, a display format supported by the device, and a computing capability of the device.
步骤 402, 分析用户请求访问的网页, 采集该网页的特征元数据; 需要说明的是, 服务器返回的网页数据由状态行、 响应头部、 空行和响应 数据 4部分组成。  Step 402: Analyze the webpage requested by the user to collect the feature metadata of the webpage. It should be noted that the webpage data returned by the server is composed of a status line, a response header, a blank line, and a response data.
在一个实施例中, 网页的特征元数据可以包括: 所述网页的功能和所述网 页的 URL; 其中, 网页的功能可以通过对网页的 U L解析得到, 例如, 网页的 杠的数量来判断网页层次 (从 URL开头到问号结束, 没有问号则到空格结束), 此处共有 3个斜杠, 则说明此网页为第三层网页; 解析斜杠之间的内容, 可以 获得关键字, 比如 news、 lady, 则说明此网页的类型或功能为女性、 新闻。  In an embodiment, the feature metadata of the webpage may include: a function of the webpage and a URL of the webpage; wherein the function of the webpage may be obtained by UL parsing the webpage, for example, the number of bars of the webpage to determine the webpage Hierarchy (from the beginning of the URL to the end of the question mark, no question mark to the end of the space), there are 3 slashes here, this means that the page is a third-level page; parsing the content between the slashes, you can get keywords, such as news , lady, the type or function of this page is female, news.
在一个实施例中,针对网管的特性, 网页的特征元数据可以包括:用户名、 网元、 功能分类和 U L, 其中, 用户名具体指当前在网管前端进行操作的管理 员的用户名; 网元代表网管前端当前正在对网络中的哪一种网元进行操作, 比 如路由器, 交换机或者 HUB等; 功能分类表示当前网管页面的功能, 比如性能 管理、 配置管理、 安全管理、计费管理或故障管理等; URL ( Uniform Resource Locator, 统一资源定位符 )也被称为网页地址, 是指当前用户访问的页面在服 务器中的资源地址。  In an embodiment, for the characteristics of the network management, the feature metadata of the webpage may include: a user name, a network element, a function classification, and a UL, where the user name specifically refers to a user name of an administrator currently operating at the front end of the network management; The NE indicates which network element in the network is currently operating, such as a router, switch, or HUB. The function classification indicates the current network management page functions, such as performance management, configuration management, security management, accounting management, or fault. Management, etc.; URL (Uniform Resource Locator), also known as web address, refers to the resource address of the page accessed by the current user in the server.
针对企业网管理系统的特性,在另一个实施例中,网页的特征元数据包括: 用户名、 服务、 功能分类和 URL。 用户名具体指当前在企业网管理系统前端进 行操作的管理员的用户名;服务具体指企业网管理系统前端当前正在对哪一种 服务进行操作, 比如, 视频会议服务、 云计算服务等; 功能分类表示对当前服 务进行何种操作, 比如配置、 测试等; URL是指当前用户访问的页面在服务器 中的资源地址。 For another feature of the enterprise network management system, in another embodiment, the feature metadata of the web page includes: a username, a service, a function classification, and a URL. The user name refers specifically to the user name of the administrator currently operating in the front end of the enterprise network management system; the service specifically refers to which service is currently being operated by the front end of the enterprise network management system, for example, a video conference service, a cloud computing service, etc.; The classification indicates what kind of operation is performed on the current service, such as configuration, testing, etc.; the URL refers to the page accessed by the current user on the server. The resource address in .
具体地, 这些网页的特征元数据比如用户名、功能分类包含在页面数据的 响应头部中, 还有一部分数据, 比如: URL包含在 HTTP请求报文中, 通过对 HTTP报文中的 U L以及 HTTP报文对应的响应数据头部进行解析,可以得到所 述网页的特征元数据。  Specifically, the feature metadata of the webpage, such as the user name and the function classification, is included in the response header of the page data, and a part of the data, for example, the URL is included in the HTTP request packet, and the UL in the HTTP packet is The response data header corresponding to the HTTP message is parsed, and the feature metadata of the web page can be obtained.
步骤 403 , 查询预加载策略表, 获取与所述网页的特征元数据对应的预加 载网页; 所述预加载网页为在所述用户请求访问的网页的基础上,后续请求访 问的概率最大的网页;  Step 403: Query a preloading policy table, and obtain a preloaded webpage corresponding to the feature metadata of the webpage. The preloading webpage is a webpage with the highest probability of subsequent request access on the basis of the webpage requested by the user. ;
需要说明的是,所述预加载策略表存储了所述网页的特征元数据和所述预 加载网页的对应关系; 在一个实施例中,预加载策略表是基于用户的操作习惯 而预先制定的一个 URL关联表,它存储了每一个用户当前访问网页的 U L和预 加载网页的 URL的对应关系,所述预加载网页为所述用户在访问当前网页的基 础上, 后续访问的概率最大或者最有可能访问的一个或多个网页。  It should be noted that the preloading policy table stores the correspondence between the feature metadata of the webpage and the preloaded webpage; in one embodiment, the preloading policy table is pre-defined based on the user's operating habits. a URL association table, which stores a correspondence between a UL of each user currently visiting a webpage and a URL of a preloaded webpage, where the preloaded webpage is based on the user accessing the current webpage, and the probability of subsequent access is the largest or the most One or more web pages that are likely to be accessed.
具体地, 在一个实施例中, 可以基于概率统计的方法, 对多个用户在前端 的多次操作的 URL进行统计,对于每个用户访问的每个网页, 统计该用户在访 问该网页后, 接下来最常访问, 即访问次数最多的一个网页的 URL, 该 U L 即为预加载网页的 URL,将该 URL和用户当前访问网页的 URL关联, 并添加到 预加载策略表。 当然可以理解的是, 在另一个实施例中, 预加载网页可以有多 个, 具体地, 对于用户访问的每个网页, 可以统计用户在访问该网页后, 接下 来最常访问, 即访问次数最多的多个网页的 URL, 比如 3个, 将所述多个 URL 和用户当前访问网页的 URL关联, 并添加到预加载策略表中。 图 3所示为本发 明实施例提供的一种预加载策略表的示意图。 根据图 3 , 预加载策略表包括两 部分: 当前访问的 URL和预加载网页的 URL。  Specifically, in an embodiment, the URL of the multiple operations of the multiple users in the front end may be counted according to the method of probability statistics. For each webpage accessed by each user, the user is counted after accessing the webpage. Next, the most frequently accessed, that is, the URL of the most visited webpage, which is the URL of the preloaded webpage, associates the URL with the URL of the currently visited webpage of the user, and adds it to the preloading policy table. It can be understood that, in another embodiment, there may be multiple pre-loaded webpages. Specifically, for each webpage accessed by the user, the user may count the most frequently accessed, ie, the number of visits, after accessing the webpage. The URLs of the plurality of web pages, for example, three, associate the plurality of URLs with the URL of the currently accessed webpage of the user, and add to the preloading policy table. FIG. 3 is a schematic diagram of a preloading policy table provided by an embodiment of the present invention. According to Figure 3, the preload policy table consists of two parts: the currently accessed URL and the URL of the preloaded web page.
在一个实施例中,在进行查询时, 可以将采集的特征元数据中的 URL作为 键(key )值, 采用 hash (哈希) 索引的方法从预加载策略表查找出与该 URL 对应的预加载网页的 URL, 然后根据查找出的预加载网页的 URL,从服务器获 取预加载数据。需要说明的是, Hash索引的方法作为一个具体的查找方式具有 迅速查找的优势, 能提高匹配速度。 可以理解的是 hash索引的方法并不是匹配 的唯一实现方式,故 hash索引的方式作为一个举例不应理解为对本发明实施例 的限定。 步骤 404, 将获取的预加载网页緩存在緩存中; In an embodiment, when the query is performed, the URL in the collected feature metadata may be used as a key value, and a pre-loading policy table is used to find a pre-corresponding corresponding to the URL by using a hash index method. The URL of the web page is loaded, and then the preloaded data is obtained from the server according to the URL of the preloaded webpage found. It should be noted that the Hash index method has the advantage of quick search as a specific search method, which can improve the matching speed. It is to be understood that the method of the hash index is not the only implementation of the matching, and the manner of the hash index is not to be construed as limiting the embodiment of the present invention. Step 404: Cache the obtained preloaded webpage in a cache.
具体地, 这里的緩存, 可以是浏览器本地的緩存, 也可以是与浏览器物理 或逻辑连接的其他緩存。  Specifically, the cache here may be a browser-local cache or other cache that is physically or logically connected to the browser.
步骤 405 , 接收所述用户的后续访问请求, 查询緩存中是否緩存有该访问 请求请求访问的网页;所述后续访问请求是用户在所述用户请求访问的网页的 基础上发出的;  Step 405: Receive a subsequent access request of the user, and query whether a webpage accessed by the access request request is cached in the cache; and the subsequent access request is sent by the user on the basis of the webpage requested by the user;
步骤 406,如果是,从緩存中加载所述后续网页访问请求请求访问的网页。 进一步地, 本发明实施例提供的通信方法还包括:  Step 406, if yes, loading the webpage accessed by the subsequent webpage access request request from the cache. Further, the communication method provided by the embodiment of the present invention further includes:
步骤 407, 如果否, 从所述服务器加载用户请求访问的网页。  Step 407, if no, loading a webpage requested by the user from the server.
进一步地, 为了根据用户的偏好对预加载策略表进行实时更新, 达到最佳 的用户体验, 本发明实施例提供的通信方法还包括:  Further, in order to perform the real-time update of the pre-loading policy table according to the user's preference to achieve an optimal user experience, the communication method provided by the embodiment of the present invention further includes:
步骤 408, 根据用户后续访问的网页的多个特征元数据, 更新预加载策略 表。  Step 408: Update the preloading policy table according to the plurality of feature metadata of the webpage accessed by the user.
在一个实施例中, 如图 5所示, 根据用户后续访问的网页的多个特征元数 据, 更新预加载策略表, 具体包括:  In an embodiment, as shown in FIG. 5, the preloading policy table is updated according to the plurality of feature metadata of the webpage that is subsequently accessed by the user, and specifically includes:
步骤 501 , 获得所述用户后续访问的网页的多个特征元数据;  Step 501: Obtain a plurality of feature metadata of a webpage that the user subsequently accesses;
步骤 502, 分析所述多个特征元数据,得到所述用户的多次网页访问记录; 步骤 503 ,对所述用户的多次网页访问记录按照访问的时间先后顺序排序, 得到所述用户访问的多个网页在访问时间上的关联关系;  Step 502: Analyze the plurality of feature metadata to obtain a plurality of webpage access records of the user. Step 503: Sort the plurality of webpage access records of the user according to a chronological order of the access, and obtain the user access. The relationship between multiple web pages in terms of access time;
步骤 504, 基于所述关联关系, 统计得到所述用户在访问所述多个网页中 的任一个网页的基础上, 后续访问的概率最大的网页;  Step 504: Based on the association relationship, obtain, according to the association relationship, a webpage that has the greatest probability of subsequent access on the basis of the user accessing any one of the plurality of webpages;
步骤 505 , 建立所述多个网页中的任一个网页的统一资源定位符 URL和所 述后续访问的概率最大的网页的 URL之间的关联关系。  Step 505: Establish an association relationship between a Uniform Resource Locator URL of the webpage of any one of the plurality of webpages and a URL of the webpage with the highest probability of subsequent access.
在另一个实施例中,根据用户后续访问的网页的多个特征元数据, 更新预 加载策略表,也可以通过以下方式: 服务器每次获得用户访问的网页的特征元 数据之后, 根据该特征元数据得到以下逻辑意义:  In another embodiment, the preloading policy table is updated according to the plurality of feature metadata of the webpage accessed by the user, and the method may be as follows: after the server obtains the feature metadata of the webpage accessed by the user, the feature element is obtained according to the feature element. The data has the following logical meaning:
网管: "用户" 在 "网元" 的" 功能分类" 上操作了" URL" 企业网管理系统: "用户" 在 "服务" 的" 功能分类" 上操作了" URL" ; 因此, 用户的每一次操作都可以抽象成以上逻辑意义, 根据该逻辑意义, 可以将用户的操作变成以时间为排序的一组操作记录, 在形成预加载策略时, 对每个用户的操作记录进行排序,将用户出现最多的几个操作及出现下一个操 作关联, 从而更新预加载策略表。 Webmaster: "User" operates "URL" on the "Function Classification" of "Network Element". Enterprise Network Management System: "User" operates "URL" on the "Function Classification" of "Service"; therefore, each user An operation can be abstracted into the above logical meaning. According to the logical meaning, the user's operation can be changed into a set of operation records sorted by time. When the preloading strategy is formed, The preloading policy table is updated by sorting each user's operation record, associating the user with the most operations and the next operation association.
本发明实施例二通过以上技术方案,通过采集网页的特征元数据和查询预 加载策略表来确定用户下一次最可能访问的页面,并在保证用户正常浏览业务 的情况下,提前緩存用户可能访问的一下个页面数据,使得用户请求下一个页 面时, 直接从緩存中读取数据, 克服了用户在前端进行操作时, 由于浏览器需 要从服务器读取大量数据而造成用户等待时间过长的问题, 提高了用户的体 验; 进一步地, 通过对采集的特征元数据进行分析, 并基于分析的结果, 更新 预加载策略表, 可以针对用户的偏好对预加载策略表进行实时更新, 达到最佳 的用户体验。  In the second embodiment of the present invention, the feature metadata of the webpage and the query preloading policy table are used to determine the page that the user is most likely to access next time, and the user may access the cache in advance when the user is normally browsed. The next page data makes the user read the data directly from the cache when requesting the next page, which overcomes the problem that the user waits too long because the browser needs to read a large amount of data from the server when the user operates in the front end. The user experience is improved. Further, by analyzing the collected feature metadata and updating the preloading policy table based on the analysis result, the preloading policy table can be updated in real time according to the user's preference to achieve the best. user experience.
实施例三, 如图 6所示, 本发明实施例三提供一种网页内容预加载装置, 包括:  Embodiment 3 As shown in FIG. 6, Embodiment 3 of the present invention provides a webpage content preloading apparatus, including:
第一响应单元 610, 用于响应用户的网页访问请求, 从服务器加载所述用 户请求访问的网页;  The first response unit 610 is configured to: in response to the webpage access request of the user, load a webpage requested by the user from the server;
特征采集单元 620, 用于分析所述网页, 采集所述网页的特征元数据; 策略单元 630, 用于获取与所述网页的特征元数据对应的预加载网页; 所 述预加载网页为在所述用户请求访问的网页的基础上,后续请求访问的概率最 大的网页;所述预加载策略表包含有所述网页的特征元数据和所述预加载网页 的对应关系;  a feature collection unit 620, configured to analyze the webpage, and collect feature metadata of the webpage; the policy unit 630 is configured to acquire a preloaded webpage corresponding to the feature metadata of the webpage; a webpage with the highest probability of subsequent access requests based on the webpage requested by the user; the preloading policy table includes the corresponding relationship between the feature metadata of the webpage and the preloaded webpage;
緩存单元 640, 用于将所述预加载网页緩存在緩存中;  a cache unit 640, configured to cache the preloaded webpage in a cache;
第二响应单元 650, 用于接收所述用户的后续网页访问请求, 查询緩存中 是否緩存有所述后续网页访问请求请求访问的网页;所述后续访问请求是用户 在所述用户请求访问的网页的基础上发出的;  The second response unit 650 is configured to receive a subsequent webpage access request of the user, and query whether the webpage accessed by the subsequent webpage access request request is cached in the cache; the subsequent access request is a webpage requested by the user at the user Issued on the basis of
加载单元 660, 用于当所述緩存中有所述后续网页访问请求请求访问的网 页时, 从所述緩存中加载所述后续网页访问请求请求访问的网页。  The loading unit 660 is configured to: when the cache has the webpage requested by the subsequent webpage access request, load the webpage accessed by the subsequent webpage access request from the cache.
进一步地, 在一个实施例中, 加载单元 660还用于, 当所述緩存中没有所 述后续网页访问请求请求访问的网页时,从所述服务器加载所述后续网页访问 请求请求访问的网页。  Further, in an embodiment, the loading unit 660 is further configured to: when the cache does not have the webpage accessed by the subsequent webpage access request, request the webpage accessed by the subsequent webpage access request from the server.
需要说明的是, 第一响应单元 610的具体工作步骤可以参照步骤 401 ,特征 采集单元 620的具体工作可以参照步骤 402, 策略单元 630的具体工作步骤可以 参照步骤 403 , 緩存单元 640的具体工作步骤可以参照步骤 404, 第二响应单元 650的具体工作步骤可以参照步骤 405 , 加载单元 660的具体工作步骤可以参照 步骤 406。 It should be noted that the specific working steps of the first response unit 610 may refer to step 401. The specific work of the feature collecting unit 620 may refer to step 402. The specific working steps of the policy unit 630 may be performed. Referring to step 403, the specific working steps of the buffer unit 640 may refer to step 404. The specific working steps of the second response unit 650 may refer to step 405. The specific working steps of the loading unit 660 may refer to step 406.
本发明实施例三通过以上技术方案,通过采集网页的特征元数据和查询预 加载策略表来确定用户下一次最可能访问的页面,在保证用户正常浏览业务的 情况下,提前緩存用户可能访问的一下个页面数据,使得用户请求下一个页面 时, 直接从緩存中读取数据, 克服了用户在前端进行操作时, 由于浏览器需要 从服务器读取大量数据而造成用户等待时间过长的问题, 提高了用户的体验。  The third embodiment of the present invention determines the next most likely page to be accessed by the user by collecting feature metadata of the webpage and querying the preloading policy table. In the case of ensuring that the user browses the service normally, the user may access the cache in advance. The next page data, when the user requests the next page, directly reads the data from the cache, overcoming the problem that the user waits too long when the user needs to read a large amount of data from the server when the user operates in the front end. Improve the user experience.
实施例四, 如图 7所示, 本发明实施例四提供一种基于浏览器 /服务器架构 的通信系统, 包括: 浏览器、 服务器, 其中:  Embodiment 4 As shown in FIG. 7, a fourth embodiment of the present invention provides a communication system based on a browser/server architecture, including: a browser and a server, where:
浏览器, 用于接收用户的网页访问请求,从服务器加载所述用户请求访问 的网页, 同时通过分析该页面信息, 采集网页的特征元数据, 基于采集的特征 元数据, 查询预加载策略表, 获取与该网页的特征元数据对应的预加载网页, 并将获取的预加载网页緩存到緩存中; 进一步地, 浏览器还用于, 接收用户的 后续网页访问请求,查询緩存中是否緩存有该后续网页访问请求请求访问的网 页; 如果是, 从所述緩存中加载所述后续网页访问请求请求访问的网页。 所述 后续访问请求是用户在所述用户请求访问的网页的基础上发出的;所述网页访 问请求, 可以是用户直接通过在浏览器客户端输入网址而发起的请求,也可以 是用户通过网页触发或设置业务后, 由 "应用侧" 发起的请求。  The browser is configured to receive a webpage access request of the user, load the webpage requested by the user from the server, and collect the feature metadata of the webpage by analyzing the page information, and query the preloading policy table based on the collected feature metadata. Obtaining a preloaded webpage corresponding to the feature metadata of the webpage, and buffering the obtained preloaded webpage into a cache; further, the browser is further configured to: receive a subsequent webpage access request of the user, and query whether the cache is cached a subsequent webpage access request requesting access to the webpage; if yes, loading the webpage accessed by the subsequent webpage access request request from the cache. The subsequent access request is sent by the user on the basis of the webpage requested by the user; the webpage access request may be a request initiated by the user directly by inputting a web address in the browser client, or may be a webpage of the user. A request initiated by the "app side" after triggering or setting up a business.
服务器, 用于将浏览器接收的网页访问请求对应的网页数据发送给浏览 器。  The server is configured to send webpage data corresponding to the webpage access request received by the browser to the browser.
参考图 7, 本发明实施例的通信系统中, 浏览器主要包括: 第一接收模块 710、 预加载模块 720、 第二接收模块 730和加载模块 740。  Referring to FIG. 7, in the communication system of the embodiment of the present invention, the browser mainly includes: a first receiving module 710, a preloading module 720, a second receiving module 730, and a loading module 740.
其中, 第一接收模块 710, 用于接收用户的网页访问请求, 从服务器加载 所述用户请求访问的网页。 需要说明的是, 第一接收模块 710根据之前介绍的 网页浏览的 HTTP通信机制从服务器获得用户请求访问的网页数据。  The first receiving module 710 is configured to receive a webpage access request of the user, and load the webpage requested by the user from the server. It should be noted that the first receiving module 710 obtains webpage data requested by the user from the server according to the HTTP communication mechanism of the webpage browsing introduced earlier.
预加载模块 720, 用于分析第一接收模块 710加载的页面,采集网页的特征 元数据, 并根据采集的特征元数据, 通过查询预加载策略表, 获取用户下一批 可能访问的页面数据, 最后将获取的页面数据緩存。 进一步的, 所述预加载模 块 720具体包括: 采集单元 7201 , 用于分析第一接收模块 710加载的页面, 采集所述网页的 特征元数据; The preloading module 720 is configured to analyze the page loaded by the first receiving module 710, collect the feature metadata of the webpage, and obtain the next batch of page data that the user may access by querying the preloading policy table according to the collected feature metadata. Finally, the obtained page data is cached. Further, the preloading module 720 specifically includes: The collecting unit 7201 is configured to analyze a page loaded by the first receiving module 710, and collect feature metadata of the webpage;
根据之前介绍的网页浏览的 HTTP通信机制, 服务器返回的页面数据由状 态行、 响应头部、 空行和响应数据 4部分组成。 具体地, 在一个实施例中, 网 页的特征元数据可以包括: 所述网页的功能和所述网页的 URL; 其中, 网页的 功能可以通过对网 页 的 URL解析得到 , 例如, 网 页 的 URL为 /news/lady/default.j sp?user=abc&refer=http://www.163.com/lady , 才艮据斜杠的数 量来判断网页层次 (从 URL开头到问号结束, 没有问号则到空格结束), 此处共 有 3个斜杠, 则说明此网页为第三层网页; 解析斜杠之间的内容, 可以获得关 键字, 比如 news、 lady, 则说明此网页的类型或功能为女性、 新闻。  According to the HTTP communication mechanism of the web browsing described earlier, the page data returned by the server is composed of a status line, a response header, a blank line, and a response data. Specifically, in an embodiment, the feature metadata of the webpage may include: a function of the webpage and a URL of the webpage; wherein the function of the webpage may be obtained by parsing a URL of the webpage, for example, the URL of the webpage is / News/lady/default.j sp?user=abc&refer=http://www.163.com/lady , to judge the page level according to the number of slashes (from the beginning of the URL to the end of the question mark, no question mark to the end of the space ), there are 3 slashes here, which means that this page is a third-level webpage; parsing the content between slashes, you can get keywords, such as news, lady, then the type or function of this webpage is female, news .
在一个实施例中,针对网管的特性, 网页的特征元数据可以包括:用户名、 网元、 功能分类和 U L, 其中, 用户名具体指当前在网管前端进行操作的管理 员的用户名; 网元代表网管前端当前正在对网络中的哪一种网元进行操作, 比 如路由器, 交换机或者 HUB等; 功能分类表示当前网管页面的功能, 比如性能 管理、 配置管理、 安全管理、计费管理或故障管理等; URL ( Uniform Resource Locator, 统一资源定位符 )也被称为网页地址, 是指当前用户访问的页面在服 务器中的资源地址。  In an embodiment, for the characteristics of the network management, the feature metadata of the webpage may include: a user name, a network element, a function classification, and a UL, where the user name specifically refers to a user name of an administrator currently operating at the front end of the network management; The NE indicates which network element in the network is currently operating, such as a router, switch, or HUB. The function classification indicates the current network management page functions, such as performance management, configuration management, security management, accounting management, or fault. Management, etc.; URL (Uniform Resource Locator), also known as web address, refers to the resource address of the page accessed by the current user in the server.
针对企业网管理系统的特性,在另一个实施例中,网页的特征元数据包括: 用户名、 服务、 功能分类和 URL。 用户名具体指当前在企业网管理系统前端进 行操作的管理员的用户名;服务具体指企业网管理系统前端当前正在对哪一种 服务进行操作, 比如, 视频会议服务、 云计算服务等; 功能分类表示对当前服 务进行何种操作, 比如配置、 测试等; URL是指当前用户访问的页面在服务器 中的资源地址。  For another feature of the enterprise network management system, in another embodiment, the feature metadata of the webpage includes: a username, a service, a function classification, and a URL. The user name refers specifically to the user name of the administrator currently operating in the front end of the enterprise network management system; the service specifically refers to which service is currently being operated by the front end of the enterprise network management system, for example, a video conference service, a cloud computing service, etc.; Classification indicates what operations are performed on the current service, such as configuration, testing, etc.; URL refers to the resource address of the page accessed by the current user in the server.
具体地, 这些网页的特征元数据比如用户名、功能分类包含在页面数据的 响应头部中, 还有一部分数据, 比如 U L包含在 HTTP请求报文中, 采集单元 可以得到所述网页的特征元数据。  Specifically, the feature metadata of the webpage, such as the user name and the function classification, is included in the response header of the page data, and a part of the data, such as the UL, is included in the HTTP request packet, and the collecting unit can obtain the feature element of the webpage. data.
查询单元 7202, 用于根据采集的特征元数据, 查询预加载策略表, 获取与 所述网页的特征元数据对应的预加载网页;所述预加载网页为在所述用户请求 访问的网页的基础上,后续请求访问的概率最大的网页; 所述预加载策略表包 含有所述网页的特征元数据和所述预加载网页的对应关系; The querying unit 7202 is configured to query the preloading policy table according to the collected feature metadata, and obtain a preloaded webpage corresponding to the feature metadata of the webpage; the preloading webpage is a basis of the webpage requested by the user to visit The page with the highest probability of subsequent request access; the preloading strategy table package Corresponding relationship between the feature metadata of the webpage and the preloaded webpage;
需要说明的是,预加载策略表是根据网管中每个用户的操作习惯而预先制 定的一个 URL关联表,它存储了用户当前访问网页的 URL和预加载网页的 U L 的对应关系, 所述预加载网页为用户在访问完当前网页后,接下来最有可能访 问的一个或多个网页。  It should be noted that the pre-loading policy table is a URL association table pre-defined according to the operating habits of each user in the network management system, and stores the correspondence between the URL of the currently accessed webpage and the UL of the pre-loaded webpage. Loading a web page is one or more web pages that the user is most likely to access after visiting the current web page.
具体地, 在一个实施例中, 基于概率统计的方法, 对每个用户在前端的多 次操作的 URL进行统计,对于用户访问的每个网页,统计用户在访问该网页后, 接下来最常访问, 即访问次数最多的一个网页的 U L, 该 URL即为预加载网页 的 URL, 将该 URL和用户当前访问网页的 U L关联, 并添加到预加载策略表。 当然可以理解的是, 在另一个实施例中, 预加载网页可以有多个, 具体地, 对 于用户访问的每个网页, 可以统计用户在访问该网页后, 接下来最常访问, 即 访问次数最多的多个网页的 URL, 比如 3个, 将所述多个 URL和用户当前访问 网页的 URL关联, 并添加到预加载策略表中。 图 3所示为本发明实施例提供的 一种预加载策略表的示意图。 根据图 3, 预加载策略表包括两部分: 当前访问 的 URL和预加载网页的 U L。  Specifically, in an embodiment, based on the method of probability statistics, statistics are performed on the URL of multiple operations of each user in the front end. For each webpage accessed by the user, after counting the webpage, the statistical user is most often followed. Access, that is, the UL of a webpage with the most access times, which is the URL of the preloaded webpage, associates the URL with the UL of the currently accessed webpage of the user, and adds it to the preloading policy table. It can be understood that, in another embodiment, there may be multiple pre-loaded webpages. Specifically, for each webpage accessed by the user, the user may count the most frequently accessed, ie, the number of visits, after accessing the webpage. The URLs of the plurality of web pages, for example, three, associate the plurality of URLs with the URL of the currently accessed webpage of the user, and add to the preloading policy table. FIG. 3 is a schematic diagram of a preloading policy table according to an embodiment of the present invention. According to Figure 3, the preload policy table consists of two parts: the URL currently accessed and the U L of the preloaded web page.
在一个实施例中,在进行查询时, 可以将采集的特征元数据中的 URL作为 键(key )值, 采用 hash (哈希) 索引的方法从预加载策略表查找出与该 URL 对应的预加载网页的 URL, 然后根据查找出的预加载网页的 URL,从服务器获 取预加载数据。需要说明的是, Hash索引的方法作为一个具体的查找方式具有 迅速查找的优势, 能提高匹配速度。 可以理解的是 hash索引的方法并不是查找 的唯一实现方式,故 hash索引的方式作为一个举例不应理解为对本发明实施例 的限定。  In an embodiment, when the query is performed, the URL in the collected feature metadata may be used as a key value, and a pre-loading policy table is used to find a pre-corresponding corresponding to the URL by using a hash index method. The URL of the web page is loaded, and then the preloaded data is obtained from the server according to the URL of the preloaded webpage found. It should be noted that the Hash index method has the advantage of quick search as a specific search method, which can improve the matching speed. It is to be understood that the method of the hash index is not the only implementation of the search. Therefore, the manner of the hash index is not to be construed as limiting the embodiment of the present invention.
存储单元 7203 , 用于緩存查询单元 7202获取的预加载网页;  The storage unit 7203 is configured to cache the preloaded webpage acquired by the query unit 7202.
具体地,存储单元 7203可以是浏览器本地的緩存,也可以是与浏览器物理 或逻辑连接的其他緩存。  Specifically, the storage unit 7203 may be a browser-local cache or other cache that is physically or logically connected to the browser.
进一步地, 为了根据用户的偏好对预加载策略表进行实时更新,预加载模 块 720还包括: 上传单元 7204, 用于将采集单元 7201采集的网页特征元数据上 传到服务器,以使服务器根据所述网页的特征元数据,更新所述预加载策略表。  Further, in order to update the preloading policy table in real time according to the user's preference, the preloading module 720 further includes: an uploading unit 7204, configured to upload the webpage feature metadata collected by the collecting unit 7201 to the server, so that the server according to the The feature metadata of the webpage is updated, and the preloading policy table is updated.
相应地, 为了对预加载策略表进行定期更新, 服务器还用于, 根据上传单 元 7204上传的网页的特征元数据, 更新预加载策略表。 具体地, 服务器通过以下步骤实现预加载策略表的更新: Correspondingly, in order to periodically update the preloading policy table, the server is further configured to: update the preloading policy table according to the feature metadata of the webpage uploaded by the uploading unit 7204. Specifically, the server implements the update of the preload policy table by the following steps:
( 1 )获得所述用户后续访问的网页的多个特征元数据;  (1) obtaining a plurality of feature metadata of a webpage subsequently accessed by the user;
( 2 )分析所述多个特征元数据, 得到所述用户的多次网页访问记录; (2) analyzing the plurality of feature metadata to obtain a plurality of webpage access records of the user;
( 3 )对所述用户的多次网页访问记录按照访问的时间先后顺序排序, 得 到所述用户访问的多个网页在访问时间上的关联关系; (3) sorting the plurality of webpage access records of the user according to the chronological order of the access, and obtaining the association relationship of the plurality of webpages accessed by the user in the access time;
( 4 )基于所述关联关系, 统计得到所述用户在访问所述多个网页中的任 一个网页的基础上, 后续访问的概率最大的网页;  (4) based on the association relationship, obtaining, by the user, a webpage having the highest probability of subsequent access on the basis of accessing any one of the plurality of webpages;
( 5 )建立所述多个网页中的任一个网页的统一资源定位符 URL和所述后 续访问的概率最大的网页的 URL之间的关联关系。  (5) establishing an association relationship between a Uniform Resource Locator URL of any one of the plurality of web pages and a URL of the webpage having the highest probability of subsequent access.
第二接收模块 730, 用于接收用户的后续网页访问请求, 查询緩存中是否 緩存有该后续网页访问请求请求访问的网页;所述后续访问请求是用户在所述 用户请求访问的网页的基础上发出的。  The second receiving module 730 is configured to receive a subsequent webpage access request of the user, and query whether the webpage accessed by the subsequent webpage access request request is cached in the cache; the subsequent access request is based on the webpage requested by the user by the user. dispatched.
加载模块 740, 用于当所述緩存中有所述后续网页访问请求请求访问的网 页时, 从所述緩存中加载所述后续网页访问请求请求访问的网页。  The loading module 740 is configured to: when the cache has the webpage requested by the subsequent webpage access request request, load the webpage accessed by the subsequent webpage access request request from the cache.
进一步地, 加载模块 740还用于, 当所述緩存中没有所述后续网页访问请 求请求访问的网页时,从所述服务器加载所述后续网页访问请求请求访问的网 页。  Further, the loading module 740 is further configured to: when the cache does not have the webpage requested by the subsequent webpage access request, upload the webpage accessed by the subsequent webpage access request request from the server.
本发明实施例四提供的基于浏览器 /服务器架构的通信系统, 基于网页的 特征元数据的采集, 通过预加载模块, 在保证用户正常浏览业务的情况下, 提 前緩存用户可能访问的一下个页面数据,从而使得用户请求下一个页面时, 直 接从緩存中读取数据,克服了用户在前端进行操作后, 由于浏览器需要从服务 器读取大量数据而造成用户等待时间过长的问题,提高了用户的体验; 进一步 地, 通过对采集的特征元数据进行分析, 并基于分析的结果, 更新预加载策略 表,可以针对用户的偏好对预加载策略表进行实时更新,达到最佳的用户体验。  The browser/server architecture-based communication system provided by the fourth embodiment of the present invention collects feature data of the webpage based on the webpage, and uses a preloading module to cache a page that the user may access in advance while ensuring that the user browses the service normally. The data, so that when the user requests the next page, the data is directly read from the cache, which overcomes the problem that the user waits for too long after the user operates the front end, because the browser needs to read a large amount of data from the server, and improves the problem. User experience; Further, by analyzing the collected feature metadata and updating the preloading policy table based on the analysis result, the preloading policy table can be updated in real time according to the user's preference to achieve the best user experience.
实施例五, 如图 8所示, 本发明实施例五提供一种建立预加载策略表的方 法, 包括:  Embodiment 5 As shown in FIG. 8, Embodiment 5 of the present invention provides a method for establishing a preloading policy table, including:
步骤 801 , 获得用户访问的多个网页对应的多个特征元数据;  Step 801: Obtain a plurality of feature metadata corresponding to multiple webpages accessed by the user;
步骤 802, 分析所述多个特征元数据,得到所述用户的多次网页访问记录; 步骤 803 ,对所述用户的多次网页访问记录按照访问的时间先后顺序排序, 得到所述用户访问的多个网页在访问时间上的关联关系; 步骤 804, 基于所述关联关系, 统计得到所述用户在访问所述多个网页中 的任一个网页的基础上, 后续访问的概率最大的网页; Step 802: Analyze the plurality of feature metadata to obtain a plurality of webpage access records of the user. Step 803: Sort the plurality of webpage access records of the user according to a chronological order of the access, and obtain the user access The relationship between multiple web pages in terms of access time; Step 804: Based on the association relationship, obtain, according to the association relationship, a webpage that has the greatest probability of subsequent access on the basis of the user accessing any one of the plurality of webpages;
步骤 805 , 建立所述多个网页中的任一个网页的统一资源定位符 URL和所 述后续访问的概率最大的网页的 URL之间的关联关系。  Step 805: Establish an association relationship between a Uniform Resource Locator URL of any one of the plurality of webpages and a URL of the webpage with the highest probability of subsequent access.
本发明实施例五通过以上技术方案,通过统计和分析用户访问的网页的特 征元数据, 并基于分析的结果, 针对用户的偏好建立预加载策略表, 方便后续 访问该网页时直接从预加载策略表中获取预加载网页。  The fifth embodiment of the present invention, through the above technical solution, collects and analyzes the feature metadata of the webpage accessed by the user, and establishes a preloading policy table according to the user's preference based on the analysis result, so as to facilitate the subsequent access to the webpage directly from the preloading strategy. Get the preloaded page in the table.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算 机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM )或随机存储记忆体( Random Access Memory, RAM )等。  A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium, the program When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其限 制; 尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员 应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其 中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技术方案的 本质脱离本发明各实施例技术方案的范围。  Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; and the modifications or substitutions do not deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1、 一种网页内容预加载方法, 其特征在于, 包括: A webpage content preloading method, comprising:
响应用户的网页访问请求, 从服务器加载所述用户请求访问的网页; 分析所述网页, 采集所述网页的特征元数据;  Responding to the webpage access request of the user, loading the webpage requested by the user from the server; analyzing the webpage, and collecting feature metadata of the webpage;
查询预加载策略表, 获取与所述网页的特征元数据对应的预加载网页; 所 述预加载网页为在所述用户请求访问的网页的基础上,后续请求访问的概率最 大的网页;所述预加载策略表包含有所述网页的特征元数据和所述预加载网页 的对应关系;  Querying a preloading policy table, and acquiring a preloaded webpage corresponding to the feature metadata of the webpage; the preloading webpage is a webpage with the highest probability of subsequent request access based on the webpage requested by the user; The preloading policy table includes a correspondence relationship between the feature metadata of the webpage and the preloaded webpage;
将所述预加载网页緩存在緩存中;  Cache the preloaded web page in a cache;
接收所述用户的后续网页访问请求,查询緩存中是否緩存有所述后续网页 访问请求请求访问的网页;所述后续网页访问请求是所述用户在所述用户请求 访问的网页的基础上发出的;  Receiving a subsequent webpage access request of the user, and querying, in the cache, whether the webpage accessed by the subsequent webpage access request request is cached; the subsequent webpage access request is sent by the user on the basis of the webpage requested by the user to visit ;
如果是, 从所述緩存中加载所述后续网页访问请求请求访问的网页。  If so, the webpage accessed by the subsequent webpage access request request is loaded from the cache.
2、 如权利要求 1所述的方法, 其特征在于, 还包括: 如果否, 从所述服 务器加载所述后续网页访问请求请求访问的网页。 2. The method of claim 1, further comprising: if not, loading a webpage accessed by the subsequent webpage access request from the server.
3、 如权利要求 1或 2所述的方法, 其特征在于, 还包括:  3. The method according to claim 1 or 2, further comprising:
获得所述用户后续访问的网页的多个特征元数据;  Obtaining a plurality of feature metadata of the webpage subsequently accessed by the user;
分析所述多个特征元数据, 得到所述用户的多次网页访问记录; 对所述用户的多次网页访问记录按照访问的时间先后顺序排序,得到所述 用户访问的多个网页在访问时间上的关联关系;  The plurality of feature metadata is analyzed to obtain a plurality of webpage access records of the user; the plurality of webpage access records of the user are sorted according to the chronological order of the access, and the plurality of webpages accessed by the user are obtained at the access time. Association relationship
基于所述关联关系,统计得到所述用户在访问所述多个网页中的任一个网 页的基础上, 后续访问的概率最大的网页; 建立所述多个网页中的任一个网页的统一资源定位符 URL 和所述后续访 问的概率最大的网页的 URL之间的关联关系。 And obtaining, according to the association relationship, a webpage with the highest probability of subsequent access on the basis of the user accessing any one of the plurality of webpages; Establishing an association relationship between a uniform resource locator URL of any one of the plurality of web pages and a URL of the webpage with the highest probability of subsequent access.
4、 如权利要求 1-3任一项所述的方法, 其特征在于, 所述緩存, 为浏览 器本地的緩存, 或者与浏览器物理或逻辑连接的其他緩存。  The method according to any one of claims 1-3, wherein the cache is a cache local to the browser or another cache physically or logically connected to the browser.
5、 一种网页内容预加载装置, 其特征在于, 包括:  5. A web content preloading device, comprising:
第一响应单元, 用于响应用户的网页访问请求,从服务器加载所述用户请 求访问的网页;  a first response unit, configured to load a webpage accessed by the user request from a server in response to a webpage access request of the user;
特征采集单元, 用于分析所述网页, 采集所述网页的特征元数据; 策略单元, 用于查询预加载策略表, 获取与所述网页的特征元数据对应的 预加载网页; 所述预加载网页为在所述用户请求访问的网页的基础上,后续请 求访问的概率最大的网页;所述预加载策略表包含有所述网页的特征元数据和 所述预加载网页的对应关系;  a feature collection unit, configured to analyze the webpage, and collect feature metadata of the webpage; a policy unit, configured to query a preloading policy table, and obtain a preloaded webpage corresponding to the feature metadata of the webpage; The webpage is a webpage with the highest probability of subsequent access requesting on the basis of the webpage requested by the user; the preloading policy table includes the corresponding relationship between the feature metadata of the webpage and the preloaded webpage;
緩存单元, 用于将所述预加载网页緩存在緩存中;  a cache unit, configured to cache the preloaded webpage in a cache;
第二响应单元, 用于接收所述用户的后续网页访问请求, 查询緩存中是否 緩存有所述后续网页访问请求请求访问的网页;所述后续访问请求是所述用户 在所述用户请求访问的网页的基础上发出的;  a second response unit, configured to receive a subsequent webpage access request of the user, to query whether a webpage accessed by the subsequent webpage access request request is cached in the cache; and the subsequent access request is that the user requests access by the user Issued on the basis of a web page;
加载单元, 用于当所述緩存中有所述后续网页访问请求请求访问的网页 时, 从所述緩存中加载所述后续网页访问请求请求访问的网页。  a loading unit, configured to: when the cache has the webpage requested by the subsequent webpage access request, upload the webpage accessed by the subsequent webpage access request from the cache.
6、 如权利要求 5所述的装置, 其特征在于, 所述加载单元还用于, 当所 述緩存中没有所述后续网页访问请求请求访问的网页时,从所述服务器加载所 述后续网页访问请求请求访问的网页。  The device of claim 5, wherein the loading unit is further configured to: load the subsequent webpage from the server when the webpage requested by the subsequent webpage access request request is not in the cache Access the web page requesting access.
7、 一种建立预加载策略表的方法, 其特征在于, 包括: 获得用户访问的多个网页对应的多个特征元数据; 7. A method for establishing a preloading policy table, comprising: Obtaining a plurality of feature metadata corresponding to the plurality of web pages accessed by the user;
分析所述多个特征元数据, 得到所述用户的多次网页访问记录;  Analyzing the plurality of feature metadata to obtain a plurality of webpage access records of the user;
对所述用户的多次网页访问记录按照访问的时间先后顺序排序,得到所述 用户访问的多个网页在访问时间上的关联关系;  The multiple webpage access records of the user are sorted according to the chronological order of the access, and the association relationship of the plurality of webpages accessed by the user in the access time is obtained;
基于所述关联关系,统计得到所述用户在访问所述多个网页中的任一个网 页的基础上, 后续访问的概率最大的网页;  And obtaining, according to the association relationship, a webpage with the highest probability of subsequent access on the basis of the user accessing any one of the plurality of webpages;
建立所述多个网页中的任一个网页的统一资源定位符 URL 和所述后续访 问的概率最大的网页的 URL之间的关联关系。  Establishing an association relationship between a Uniform Resource Locator URL of any one of the plurality of web pages and a URL of the webpage with the highest probability of subsequent access.
8、 如权利要求 7所述的方法, 其特征在于, 所述网页的特征元数据包括: 所述网页的功能和所述网页的 URL。  8. The method according to claim 7, wherein the feature metadata of the webpage comprises: a function of the webpage and a URL of the webpage.
9、 一种基于浏览器 /服务器架构的通信系统, 包括: 浏览器和服务器, 其 特征在于, 所述浏览器用于, 接收包含有网址信息的服务请求, 从所述服务器 加载与所述服务请求对应的网页;  A communication system based on a browser/server architecture, comprising: a browser and a server, wherein the browser is configured to receive a service request including web address information, and load and request the service from the server Corresponding web page;
所述服务器, 用于将所述服务请求对应的网页数据发送给所述浏览器; 所述浏览器还用于, 分析所述网页, 采集所述网页的特征元数据; 查询预加载策略表, 获取与所述网页的特征元数据对应的预加载网页; 所 述预加载网页为在所述用户请求访问的网页的基础上,后续请求访问的概率最 大的网页;所述预加载策略表包含有所述网页的特征元数据和所述预加载网页 的对应关系;  The server is configured to send the webpage data corresponding to the service request to the browser; the browser is further configured to: analyze the webpage, collect feature metadata of the webpage; and query a preloading policy table, Obtaining a preloaded webpage corresponding to the feature metadata of the webpage; the preloading webpage is a webpage with the highest probability of subsequent request access on the basis of the webpage requested by the user; the preloading policy table includes Corresponding relationship between the feature metadata of the webpage and the preloaded webpage;
将所述预加载网页緩存在緩存中;  Cache the preloaded web page in a cache;
接收所述用户的后续网页访问请求,查询緩存中是否緩存有所述后续网页 访问请求请求访问的网页;所述后续访问请求是所述用户在所述用户请求访问 的网页的基础上发出的; 如果是,从所述緩存中加载所述后续网页访问请求请 求访问的网页。 Receiving a subsequent webpage access request of the user, and querying, in the cache, whether the webpage accessed by the subsequent webpage access request request is cached; the subsequent access request is that the user requests access by the user The web page is issued on the basis of the web page; if so, the web page accessed by the subsequent web page access request request is loaded from the cache.
1 0、 如权利要求 9所述的系统, 其特征在于, 所述浏览器还用于, 将采集 的网页的特征元数据上传到服务器, 以使服务器统计网页的特征元数据, 更新 所述预加载策略表。  The system of claim 9, wherein the browser is further configured to: upload feature metadata of the collected webpage to a server, so that the server collects feature metadata of the webpage, and updates the pre- Load the policy table.
PCT/CN2012/075779 2011-12-22 2012-05-19 Webpage content preloading method, device and system WO2013091346A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110434586.9A CN102446222B (en) 2011-12-22 2011-12-22 Method, device and system of webpage content preloading
CN201110434586.9 2011-12-22

Publications (1)

Publication Number Publication Date
WO2013091346A1 true WO2013091346A1 (en) 2013-06-27

Family

ID=46008718

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/075779 WO2013091346A1 (en) 2011-12-22 2012-05-19 Webpage content preloading method, device and system

Country Status (2)

Country Link
CN (1) CN102446222B (en)
WO (1) WO2013091346A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10169477B2 (en) 2013-12-30 2019-01-01 Samsung Electronics Co., Ltd. Method and system for rendering a web page free of inappropriate URLs
CN110855778A (en) * 2019-11-13 2020-02-28 首都经济贸易大学 Data loading method, device and system based on network sniffer

Families Citing this family (75)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446222B (en) * 2011-12-22 2014-12-10 华为技术有限公司 Method, device and system of webpage content preloading
CN103530292B (en) * 2012-07-02 2016-05-25 阿里巴巴集团控股有限公司 Webpage display process and device
CN103678307B (en) * 2012-08-31 2016-07-13 腾讯科技(深圳)有限公司 Page display method and client
CN103677554B (en) * 2012-09-17 2017-07-21 腾讯科技(深圳)有限公司 A kind of sliding screen smoothly method and device
CN102831249A (en) * 2012-09-19 2012-12-19 河南锐之旗信息技术有限公司 Method for generating static page
CN103777868B (en) * 2012-10-23 2016-08-24 福建星网视易信息系统有限公司 A kind of in units of the page and there is backstage load and the method that swipes of cache logic
CN102968322B (en) * 2012-11-22 2016-05-25 用友优普信息技术有限公司 Data loading device and data load method
CN103152426B (en) * 2013-03-19 2016-12-28 北京奇虎科技有限公司 The server of the webpage of prestrain Client browse, system and method
CN104063392B (en) * 2013-03-20 2018-07-03 腾讯科技(深圳)有限公司 The loading method and device of a kind of reading content
CN103246713B (en) * 2013-04-24 2016-05-11 优视科技有限公司 A kind of Web browser method and device
CN103312785B (en) * 2013-05-16 2016-10-26 新浪网技术(中国)有限公司 A kind of determination method and device of access relation
CN103279538B (en) * 2013-06-03 2016-09-28 北京奇虎科技有限公司 Prestrain accesses the server of webpage, browser client and method in website
CN103338249B (en) * 2013-06-26 2018-05-25 优视科技有限公司 Caching method and device
WO2015014189A1 (en) 2013-08-02 2015-02-05 优视科技有限公司 Method and device for accessing website
CN104581753B (en) * 2013-10-09 2018-06-26 中国移动通信集团设计院有限公司 A kind of method, apparatus and terminal for calculating webpage loading time delay
CN103530160A (en) * 2013-10-21 2014-01-22 迈普通信技术股份有限公司 Page loading method and device
CN103729438B (en) * 2013-12-30 2017-06-16 优视科技有限公司 Webpage preloads method and device
WO2015058546A1 (en) 2013-10-25 2015-04-30 优视科技有限公司 Webpage preloading method and device
CN103544288B (en) * 2013-10-28 2018-02-13 东莞宇龙通信科技有限公司 Browsing device net page loading control method and device
CN104636392B (en) * 2013-11-13 2018-07-27 腾讯科技(北京)有限公司 Carry out method, system, server and browser that recommendation information issues
CN103559307A (en) * 2013-11-18 2014-02-05 中国农业银行股份有限公司 Caching method and device for query
US8924850B1 (en) 2013-11-21 2014-12-30 Google Inc. Speeding up document loading
CN103744862B (en) * 2013-12-06 2017-02-22 长春吉大工易软件有限公司 Preload optimization method of mobile office application based on Sencha Touch
CN103618936A (en) * 2013-12-16 2014-03-05 乐视致新电子科技(天津)有限公司 Smart television, as well as method and device for pre-downloading link pages in browser of smart television
CN104731817B (en) * 2013-12-23 2019-11-22 腾讯科技(深圳)有限公司 A kind of webpage exhibiting method and device
CN103714172A (en) * 2013-12-31 2014-04-09 华为技术有限公司 Page processing method, device and system
CN105095253B (en) * 2014-05-06 2020-11-24 腾讯科技(深圳)有限公司 Webpage display method and device
CN105094861A (en) * 2014-05-06 2015-11-25 腾讯科技(深圳)有限公司 Webpage application program loading method, device and system
CN105095280B (en) * 2014-05-13 2020-02-14 腾讯科技(深圳)有限公司 Browser caching method and device
CN105450579B (en) * 2014-05-30 2019-03-29 广州市动景计算机科技有限公司 Internet resources pre-add support method, client and middleware server
CN104166569B (en) * 2014-08-15 2017-09-22 北京彩云动力教育科技有限公司 A kind of method and system of front end page loading
CN104361067B (en) * 2014-11-05 2018-07-20 百纳(武汉)信息技术有限公司 A kind of intelligent loading method and system of browsing device net page information
CN104298780B (en) * 2014-11-05 2018-01-12 百纳(武汉)信息技术有限公司 A kind of pre-acquiring method and system of browsing device net page information
CN104580521A (en) * 2015-01-30 2015-04-29 宁波凯智信息科技有限公司 Preloading method and system for client to smoothly access to server data
CN104765812A (en) * 2015-04-02 2015-07-08 天脉聚源(北京)教育科技有限公司 Downloading method and system
CN104731974A (en) * 2015-04-13 2015-06-24 上海新炬网络信息技术有限公司 Dynamic page loading method based on big data stream type calculation
CN105677381B (en) * 2015-05-29 2019-07-12 深圳Tcl数字技术有限公司 Preload the method and device of media file
CN105094524A (en) * 2015-06-17 2015-11-25 深圳市美贝壳科技有限公司 Data refresh method and system for switching application interface
CN104991916B (en) * 2015-06-24 2019-03-01 小米科技有限责任公司 The loading method and device of webpage
CN105117213B (en) * 2015-07-30 2021-10-19 青岛海尔智能家电科技有限公司 Pre-processing method and device based on publish-subscribe mode
CN105242960B (en) * 2015-09-21 2020-02-18 青岛海信电器股份有限公司 Method for processing system function call request and browser
MX2018005255A (en) * 2015-10-28 2018-09-21 Viasat Inc Time-dependent machine-generated hinting.
CN105939208B (en) * 2015-11-26 2019-05-07 杭州迪普科技股份有限公司 The transmission method and device of sampled data
CN105634972A (en) * 2016-01-29 2016-06-01 四川长虹电器股份有限公司 Method for improving access efficiency of Web client
CN107145490B (en) * 2016-03-01 2020-10-30 腾讯科技(深圳)有限公司 Webpage loading and displaying method and webpage loading and displaying device
CN106210007B (en) * 2016-06-30 2019-11-08 北京小米移动软件有限公司 Resource downloading method and device
CN106250529A (en) * 2016-08-05 2016-12-21 成都佳荣科技有限公司 Webpage loading method
CN106294682A (en) * 2016-08-05 2017-01-04 成都佳荣科技有限公司 Webpage intelligence loading method
CN106446174A (en) * 2016-09-28 2017-02-22 江西博瑞彤芸科技有限公司 Method for page loading in application
CN106878372B (en) 2016-11-07 2020-10-02 阿里巴巴集团控股有限公司 Information pushing method and device
CN108073610B (en) * 2016-11-11 2021-03-02 聚好看科技股份有限公司 Method and device for realizing webpage loading
CN108228640A (en) * 2016-12-21 2018-06-29 天脉聚源(北京)科技有限公司 A kind of method and system of internet store webpage loading
CN106685715B (en) * 2016-12-28 2019-11-08 重庆可兰达科技有限公司 The unlimited information flow of client exempts from the method for being segmented load data of pausing
CN106899689B (en) * 2017-03-15 2020-05-05 腾讯科技(深圳)有限公司 Information pre-issuing method and server
CN107016081A (en) * 2017-03-30 2017-08-04 北京小米移动软件有限公司 page loading method and device
US10749988B2 (en) * 2017-04-24 2020-08-18 Google Llc Methods, systems, and media for retrieving content associated with links
CN107229397A (en) * 2017-06-08 2017-10-03 惠州Tcl移动通信有限公司 A kind of method, system, terminal and storage device for improving terminal fluency
CN107404486B (en) * 2017-08-04 2020-05-22 厦门市美亚柏科信息股份有限公司 Method, device, terminal equipment and storage medium for analyzing Http data
CN109429101B (en) * 2017-08-31 2021-03-05 中国电信股份有限公司 Desktop loading method and device of interactive network television
CN107544898A (en) * 2017-09-08 2018-01-05 北京小米移动软件有限公司 Data capture method, device, equipment and storage medium
CN109408751B (en) * 2018-09-27 2022-08-30 腾讯科技(成都)有限公司 Data processing method, terminal, server and storage medium
CN109684575A (en) * 2018-10-30 2019-04-26 平安科技(深圳)有限公司 Processing method and processing device, storage medium, the computer equipment of web data
CN110007978A (en) * 2018-11-20 2019-07-12 阿里巴巴集团控股有限公司 A kind of method, device and equipment preloading the page
CN109889656B (en) * 2018-12-29 2021-04-20 深圳Tcl新技术有限公司 Data reading method, device, equipment and storage medium
CN111767485A (en) * 2019-04-01 2020-10-13 广州精选速购网络科技有限公司 Webpage display method, system, electronic equipment and medium
CN110162720B (en) * 2019-04-16 2023-07-18 平安科技(深圳)有限公司 Webpage loading method and device, computer equipment and storage medium
CN110489696B (en) * 2019-07-31 2023-07-04 上海艾融软件股份有限公司 Cache updating method and device, electronic equipment and storage medium
CN110795655B (en) * 2019-10-30 2022-07-08 中国人民解放军63850部队 Predictive display information loading algorithm based on crawler
CN111460004B (en) * 2020-04-06 2023-04-14 北方工业大学 Data mining method integrating user behaviors and Web page dependency relationship
CN111639276A (en) * 2020-04-23 2020-09-08 北京达佳互联信息技术有限公司 Resource preloading method and device and storage medium
CN111562913B (en) * 2020-04-28 2023-03-14 抖音视界有限公司 Method, device and equipment for pre-creating view component and computer readable medium
CN112035766A (en) * 2020-08-05 2020-12-04 北京三快在线科技有限公司 Webpage access method and device, storage medium and electronic equipment
CN112138371A (en) * 2020-09-15 2020-12-29 北京智明星通科技股份有限公司 Game scene loading method, system and server based on associated access times
CN113204726A (en) * 2021-07-07 2021-08-03 苏州浪潮智能科技有限公司 BS architecture page response time optimization method, device, equipment and medium
CN113515713B (en) * 2021-07-13 2024-04-09 中国工商银行股份有限公司 Webpage caching strategy generation method and device and webpage caching method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030061451A1 (en) * 2001-09-27 2003-03-27 Beyda William J. Method and system for web caching based on predictive usage
US6584498B2 (en) * 1996-09-13 2003-06-24 Planet Web, Inc. Dynamic preloading of web pages
CN1635734A (en) * 2003-12-29 2005-07-06 北京中视联数字系统有限公司 A method for receiving network pages by using buffer in digital television data broadcasting system
CN102033935A (en) * 2010-12-20 2011-04-27 深圳市五巨科技有限公司 Preloading method, preloading device and preloading system of mobile terminal browser
CN102446222A (en) * 2011-12-22 2012-05-09 华为技术有限公司 Method, device and system of webpage content preloading

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3764291B2 (en) * 1999-03-02 2006-04-05 株式会社東芝 Information distribution system, mobile computer, information server device, cache server device, and prefetch cache processing method
JP2003228534A (en) * 2001-11-30 2003-08-15 Ntt Docomo Inc Information delivery system, descriptive data delivery device, content location management device, data conversion device, receiving terminal device and information delivery method
CN102222098A (en) * 2011-06-20 2011-10-19 北京邮电大学 Method and system for pre-fetching webpage

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6584498B2 (en) * 1996-09-13 2003-06-24 Planet Web, Inc. Dynamic preloading of web pages
US20030061451A1 (en) * 2001-09-27 2003-03-27 Beyda William J. Method and system for web caching based on predictive usage
CN1635734A (en) * 2003-12-29 2005-07-06 北京中视联数字系统有限公司 A method for receiving network pages by using buffer in digital television data broadcasting system
CN102033935A (en) * 2010-12-20 2011-04-27 深圳市五巨科技有限公司 Preloading method, preloading device and preloading system of mobile terminal browser
CN102446222A (en) * 2011-12-22 2012-05-09 华为技术有限公司 Method, device and system of webpage content preloading

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10169477B2 (en) 2013-12-30 2019-01-01 Samsung Electronics Co., Ltd. Method and system for rendering a web page free of inappropriate URLs
CN110855778A (en) * 2019-11-13 2020-02-28 首都经济贸易大学 Data loading method, device and system based on network sniffer

Also Published As

Publication number Publication date
CN102446222A (en) 2012-05-09
CN102446222B (en) 2014-12-10

Similar Documents

Publication Publication Date Title
WO2013091346A1 (en) Webpage content preloading method, device and system
US11863408B1 (en) Generating event streams including modified network data monitored by remote capture agents
US11314737B2 (en) Transforming event data using values obtained by querying a data source
US10951474B2 (en) Configuring event stream generation in cloud-based computing environments
US9369520B2 (en) Enhancement of upload and/or download performance based on client and/or server feedback information
US10839038B2 (en) Generating configuration information for obtaining web resources
WO2017166644A1 (en) Data acquisition method and system
US8892680B2 (en) System and method for caching content elements with dynamic URLs
US10630758B2 (en) Method and system for fulfilling server push directives on an edge proxy
WO2008064593A1 (en) A log analyzing method and system based on distributed compute network
WO2015014145A1 (en) Method and device for accelerating sub-resource loading velocity
US20150295775A1 (en) Graphical configuration of event streams for network data capture and processing
US20120054295A1 (en) Method and apparatus for providing or acquiring the contents of a network resource for a mobile device
KR102009020B1 (en) Method and apparatus for providing website authentication data for search engine
CN102523296B (en) Method, device and system for optimizing wireless webpage browsing resources
KR102423039B1 (en) Real-time packet data storing method and apparatus for mass network monitoring
CN113051460A (en) Elasticissearch-based data retrieval method and system, electronic device and storage medium
Chen et al. Optimization research and application of enterprise website based on web service
CN111245880A (en) Behavior trajectory reconstruction-based user experience monitoring method and device
WO2018077138A1 (en) Data configuration method, index management method, related apparatus and computing device
CN113612823A (en) Cache duration adjusting method and device for content distribution network and storage medium
Liu et al. WRT: Constructing Users' Web Request Trees from HTTP Header Logs
CN115729925A (en) Data processing method, device, equipment and storage medium
CN113568982A (en) Method and device for acquiring page access information
Shen et al. Performance comparison of adaptation approaches for mobile information system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12860030

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12860030

Country of ref document: EP

Kind code of ref document: A1