WO2020124720A1 - 一种页面的公共组件的确定方法、服务器及存储介质 - Google Patents

一种页面的公共组件的确定方法、服务器及存储介质 Download PDF

Info

Publication number
WO2020124720A1
WO2020124720A1 PCT/CN2019/071878 CN2019071878W WO2020124720A1 WO 2020124720 A1 WO2020124720 A1 WO 2020124720A1 CN 2019071878 W CN2019071878 W CN 2019071878W WO 2020124720 A1 WO2020124720 A1 WO 2020124720A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
node
common component
determining
common
Prior art date
Application number
PCT/CN2019/071878
Other languages
English (en)
French (fr)
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 网宿科技股份有限公司
Priority to EP19900453.2A priority Critical patent/EP3901790A4/en
Priority to US17/289,429 priority patent/US20210357464A1/en
Publication of WO2020124720A1 publication Critical patent/WO2020124720A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Definitions

  • Embodiments of the present invention relate to the field of network technology, and in particular, to a method for determining a common component of a page, a server, and a storage medium.
  • a dynamic page is a page of different content provided by a Uniform Resource Identifier (URI).
  • URI Uniform Resource Identifier
  • Dynamic pages generally need to be generated after a series of operations such as database query, and the data is set into the front-end template.
  • the client's browser When the server is querying dynamic data, the client's browser will always be in a state of waiting for idleness, creating a sense of delay.
  • a further breakdown of dynamic pages will reveal that there are always common parts between pages of different versions generated by the same URI, that is, there are common components.
  • These public components may include the page logo (Logo) and some other pictures. These common components are basically the same in multiple requests and responses. If these public components can be extracted to form a public page under this URI, the edge caches these public components (called the cache root).
  • the public page that is, the cache root
  • the cache root is first sent to the client to reduce the client's waiting time, and then the cache root is compared with the page returned by the original site, and the difference is used to return the Repairing the cache root can speed up the page display process.
  • the technician realizes the above idea through the following method: when the dynamic page request of the browser passes through the proxy node, first construct a response Hyper Text Markup Language (HyperText MarkupLanguage , HTML) At the beginning of the page, use the ⁇ script> tag and ⁇ style> tag after the beginning ( ⁇ head> tag) to include the public component to be downloaded in advance in the beginning.
  • HTML Hyper Text Markup Language
  • the client sends a request, first send this part of the response to the client's browser.
  • the client parses this part of the response, it will trigger a request for these common components.
  • the content at the beginning of the constructed response that is, the common component
  • the common component is configured by manual configuration.
  • This manual configuration method has the following serious defects: 1 The content of the public components of the page needs to be communicated in advance so that it can be manually configured; 2 The public components of the page will often change. If the public components change, you need to update the configuration and configuration The volume is large, and it is easy to change in time. 3 For handling edge caches of multiple content providers, the manual method of segment detection becomes difficult to manage and unrealistic.
  • the purpose of the embodiments of the present invention is to provide a method for determining a common component of a page, a server, and a storage medium, without manually configuring the common component, which solves the problem of poor feasibility of determining the common component, so that the server can automatically identify the common component.
  • the embodiments of the present invention provide a method for determining a common component of a page, including the following steps: receiving the first page; determining the information of the first page, and a reference corresponding to the identifier of the first page Information of the page; based on the information of the first page and the information of the reference page, determine the common components of the first page and the reference page.
  • Embodiments of the present invention also provide a server, including: at least one processor; and a memory communicatively connected to the at least one processor; and, wherein the memory stores instructions executable by the at least one processor, the instructions are At least one processor executes to enable the at least one processor to execute the method for determining the common component of the page mentioned in the above embodiment.
  • Embodiments of the present invention also provide a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, a method for determining a common component of a page of the foregoing embodiment is implemented.
  • the embodiment of the present invention compares the first page with the reference page, and can determine the common components of the first page and the reference page without manual inquiry and manual configuration, which avoids the manual configuration of common components The problem of poor feasibility.
  • the information of the first page is the document object model DOM node tree of the first page
  • the information of the reference page is the DOM node tree of the reference page
  • determine the common components of the first page and the reference page including: determining the data length of each node in the DOM node tree of the first page, and the DOM node tree of the reference page The data length of each node; compare the data length of the nodes in the DOM node tree of the first page with the data length of the nodes in the DOM node tree of the reference page to determine the DOM node tree of the first page and the DOM of the reference page The common node of the node tree; use the common node as the common component of the first page and the reference page.
  • the data length of the nodes in the DOM node tree of the first page is compared with the data length of the nodes in the DOM node tree of the reference page to determine the common node of the DOM node tree of the first page and the DOM node tree of the reference page , Specifically including: according to the data length of the nodes of the DOM node tree of the first page and the data length of the nodes of the DOM node tree of the reference page, the nodes of the DOM node tree of the first page and the nodes of the DOM node tree of the reference page are divided It is N comparison sets; among them, the data length of the nodes in each comparison set belongs to the same preset range, and N is a positive integer; the nodes belonging to the same comparison set are compared to determine a common node.
  • the nodes of the DOM node tree of the first page and the nodes of the DOM node tree of the reference page are divided into N comparison sets, which can prevent the server from comparing two nodes with a large data length, reducing the number of comparisons. Avoid wasting computing resources
  • compare the nodes belonging to the same comparison set to determine the common node which specifically includes: for each node in each comparison set, perform the following operations: determine whether the node belongs to the DOM node tree of the first page; To determine whether there is a node belonging to the DOM node tree of the reference page whose difference from the node is less than the preset value in the comparison set; if it is determined to exist, the node, and/or the difference from the node is less than the preset value Refer to the node of the DOM node tree of the page as a public node; if it does not belong, determine whether there is a node belonging to the DOM node tree of the first page whose difference from the node is less than the preset value in the comparison set; if it exists, A node, and/or a node belonging to the DOM node tree of the first page whose difference value is less than a preset value is used as a common node.
  • the method for determining the common components of the page further includes: according to the common components of the first page and the reference page, determining A first common component set corresponding to the identifier of a page; according to the first common component set, a cache root corresponding to the identifier of the first page is generated.
  • the server generates the cache root corresponding to the identifier according to the common component set, so that when the server receives the page request sent by the client, it first sends the cache root corresponding to the identifier in the page request to the client. Reduce the sense of delay.
  • the method of determining the common component of the page further includes: determining a second common component set corresponding to the identifier of the first page; wherein, The second common component set is a common component set corresponding to the identifier of the first page determined last time; it is determined that the number of components in the first common component set is less than the number of components in the second common component set.
  • the method for determining the common components of the page further includes: determining a cache corresponding to the identifier of the first page The root has not expired; or, it is determined that the current learning period of the identifier of the first page has not ended.
  • the server learns the common components of the page according to a certain learning period, or sets the validity period for the cache root, it can reduce the influence of the information of the page received before the page before the modification on the accuracy of the learning result.
  • the method for determining the common components of the page further includes: updating the first according to the information of the first page The information of the reference page corresponding to the identifier of the page.
  • the method of determining the common components of the page further includes: if the information of the reference page is determined to be empty, the information of the first page is used as the Information about the reference page in the process of public components.
  • the method for determining the common components of the page further includes: step a: receiving the first page request sent by the client; wherein, the first page request includes the identifier of the page requested to be accessed; step b : Determine whether there is a cache root corresponding to the identifier of the page requested to be accessed; if yes, perform step c; otherwise, proceed to step d; step c: send the cache root corresponding to the identifier of the page requested to be accessed to the client, Then perform step d; step d: determine the second page request according to the first page request, and send the second page request to the source server.
  • the method for determining the common components of the page further includes: determining a repair instruction according to the cache root corresponding to the identifier of the first page and the page requesting access; and sending the repair instruction to the client.
  • the identifier is a uniform resource identifier URI.
  • FIG. 1 is a flowchart of a method for determining a common component of a page according to the first embodiment of the present invention
  • FIG. 2 is a schematic diagram of the DOM node tree of the first page of the first embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a DOM node tree of a reference page according to the first embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for a server to generate a cache root of a page according to the first embodiment of the present invention
  • FIG. 5 is a schematic diagram of the interaction between the server, the client, and the source server according to the first embodiment of the present invention
  • FIG. 6 is a flowchart of a method for determining a common component of a page according to a second embodiment of the invention.
  • FIG. 7 is a schematic diagram of a process of determining a common component by the server of the second embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a device for determining a common component of a page according to a third embodiment of the present invention.
  • FIG. 9 is a schematic diagram of the structure of a server according to a fourth embodiment of the present invention.
  • the first embodiment of the present invention relates to a method for determining a common component of a page, which is applied to a server.
  • the server may be a proxy server or an edge server in the content distribution network.
  • the method for determining the public components of the page includes:
  • Step 101 Receive the first page.
  • the first page may be a page returned by the source server, where the source server returns a page corresponding to the identifier in the page request after receiving the page request sent by the server.
  • Step 102 Determine the information of the first page and the information of the reference page corresponding to the identifier of the first page.
  • the identifier of the first page may be the Uniform Resource Identifier (URI) of the first page, or may be another page identifier.
  • URI Uniform Resource Identifier
  • the information of the first page may be a document object model (DOM) node tree of the first page
  • the information of the reference page may be a DOM node tree of the reference page
  • the information of the page may also be other information that can represent the characteristics of each component in the page. This embodiment does not limit the content of the information of the page.
  • the server uses the information of the first page as the next time to determine the common component of the page For information on the reference page.
  • Step 103 the server can end the determination process of the common component of the current page and enter the determination process of the common component of the next page, or Step 103 will continue.
  • the server after determining that the information of the reference page is empty, the server ends the current determination process of the common component of the page and continues to receive subsequent pages.
  • the server receives the second page corresponding to the identifier of the first page, according to the second page, the determination process of the common component corresponding to the identifier of the first page is performed.
  • the server receives the first page, and the identifier corresponding to the first page is S. Before the first moment, the server has not received the page with the identifier S, and the information of the reference page is empty. At this time, the server uses the first page as the reference page, that is, the information on the first page as the reference page information. At the second moment, the server receives the second page, and the identifier corresponding to the second page is S. At this time, the information of the reference page is the information of the first page.
  • the server continues to perform step 103 after determining that the information of the reference page is empty. Since the information of the reference page is empty, it is determined that there is no common component between the reference page and the first page.
  • Step 103 Determine the common components of the first page and the reference page according to the information of the first page and the information of the reference page.
  • the server determines the DOM of the first page The data length of each node in the node tree and the data length of each node in the DOM node tree of the reference page; compare the data length of the nodes in the DOM node tree of the first page with the nodes in the DOM node tree of the reference page Compare the data length of the data to determine the common node of the DOM node tree of the first page and the DOM node tree of the reference page; use the common node as the common component of the first page and the reference page.
  • DOM document object model
  • the server directly compares the data length of the nodes in the DOM node tree of the first page with the data length of the nodes in the DOM node tree of the reference page, and determines the DOM node tree and reference of the first page according to the comparison result The common node of the DOM node tree of the page.
  • the following describes the process of the server determining the common component according to the first method in combination with the actual situation.
  • the DOM node tree of the first page (node tree 1 for short) is shown in FIG. 2, and the DOM node tree of the reference page (node tree 2 for short) is shown in FIG. 3.
  • the server compares the data length of node A1 in node tree 1 with the data length of node B1, node B2, node B3, node B4, node B5, node B6, and node B7, and finds that the data length of node A1 and node tree 2
  • the data length of each node of is different, so it is determined that node A1 is not a common node.
  • the server compares the data length of node A2 with the data lengths of node B1, node B2, node B3, node B4, node B5, node B6, and node B7, and finds that the data length of node A2 and node B2 are the same, so node A2 and Node B2 may be the same, so the server uses node A2 and node B2 as the common node of the first page and the reference page.
  • the server compares the data lengths of other nodes in the node tree 1 with the data lengths of the nodes in the node tree 2 respectively. After comparing all the nodes, it is determined that the common nodes of the first page and the reference page include: node A2, node A4, and node A5. Therefore, the server uses node A2, node A4, and node A5 as the common components of the first page and the reference page.
  • the nodes in the node tree 2 can be compared with the nodes in the node tree 1 and the nodes in the DOM node tree of the reference page can be used as public node.
  • the server determines the first common component set corresponding to the identifier of the first page according to the common components of the first page and the reference page; according to the first common component set, the identifier of the first page is generated
  • the cache root corresponding to the symbol.
  • the cache root refers to the text form of the first common component set.
  • the information of the first page may be a document object model (DOM) node tree of the first page
  • the information of the reference page may be a DOM node tree of the reference page.
  • the information in the first common component set is the DOM data of the common nodes of the first page and the reference page
  • the cache root is a hypertext markup language file (HyperText Mark-up Language, HTML) generated from the DOM data in the first common component set )file.
  • HTML HyperText Mark-up Language
  • the server generates the cache root corresponding to the identifier according to the common component set, so that when the server receives the page request sent by the client, it can first send the cache root corresponding to the identifier in the page request to Client, reduce the sense of delay.
  • the server before generating the cache root corresponding to the identifier of the first page according to the first common component set, determines the second common component set corresponding to the identifier of the first page, and determines the first common component set Whether the number of components of is less than the number of components in the second common component set. After determining that the number of components in the first common component set is less than the number of components in the second common component set, the server generates a cache root corresponding to the identifier of the first page according to the first common component set.
  • the server updates the reference corresponding to the identifier of the first page according to the information of the first page Information on the page.
  • the second common component set is the first common component set corresponding to the identifier of the first page determined last time.
  • the number of common components in the first common component set is less, it means that the gap between the currently received first page and the reference page is larger, that is, between pages of different versions corresponding to the identifier of the first page Has changed its common components.
  • the information of the cache root and the reference page is updated so that the information of the cache root and the reference page in the server can better fit the web page corresponding to the identifier.
  • the server learns common components according to the set learning period; or, after the server generates the cache root, the server sets a validity period for the generated cache root. In this case, before determining that the number of components in the first common component set is less than the number of components in the second public component set, the server determines that the cache root corresponding to the identifier of the first page has not expired; or, determines The current learning period of the identifier of the first page is not over.
  • the version of the page corresponding to the same identifier may be changed, if the server continues to learn the common components of the page, the version of the page before the change may affect the accuracy of the learning result.
  • the server learns the common components of the page according to a certain learning period, or when the server sets the validity period for the cache root the influence of the information of the page before modification on the accuracy of the learning result can be reduced.
  • the learning period and the validity period of the cache root can be set according to needs, and this embodiment does not limit the specific duration of the learning period and the validity period of the cache root.
  • the server learns the common components of the page according to a certain learning period, and illustrates the process of generating the cache root according to the set of determined common components of the page.
  • the method for the server to generate the cache root of the page includes the following steps:
  • Step 401 Receive the first page returned by the source server.
  • Step 402 Determine whether the first page is the first page corresponding to the identifier of the first page received in the current learning period.
  • step 403 is performed, otherwise, step 404 is performed.
  • Step 403 Use the information of the first page as the information of the reference page. Then the process ends.
  • the information of the reference page is initialized according to the information of the first page, that is, the information of the first page is used as the information of the reference page, so that the next time the server receives the page corresponding to the identifier, it can be based on the information of the reference page To learn the common components of the page corresponding to the identifier.
  • Step 404 Determine the first common component set of the first page and the reference page according to the information of the first page and the information of the reference page.
  • the server determines the common components of the first page and the reference page according to the information of the first page and the information of the reference page.
  • the first common component set is determined according to the common components of the first page and the reference page.
  • Step 405 Determine whether the current learning period is over.
  • step 406 is executed; otherwise, step 408 is executed.
  • Step 406 Update the cache root corresponding to the identifier of the first page according to the first common component set, and save the cache root corresponding to the identifier of the updated first page.
  • Step 407 Clear the information of the reference page.
  • the server clears the information of the reference page.
  • step 407 After step 407 is executed, the process ends and the server enters a new learning cycle.
  • Step 408 Determine whether the number of components in the first common component set is less than the number of components in the second common component set.
  • the second common component set is a common component set corresponding to the identifier of the first page determined in the previous learning cycle. If there are fewer components in the first public component set than in the second public component set, it means that the first page has changed significantly relative to the reference page, and the server needs to update the information and cache root of the reference page for subsequent learning of the public component. If there are more components in the first common component set than the second common component set, or the same as the second common component set, it means that the first page has not changed significantly from the reference page, and the server can continue to use the current reference page And cache root. Therefore, if the server determines that the number of components in the first public component set is less than the number of components in the second public component set, step 409 is executed; otherwise, the process ends.
  • the server may perform steps after the number of components in the first common component set is less than the number of components in the second common component set by M 409.
  • M is a positive integer.
  • Step 409 Use the information of the first page as the information of the reference page.
  • Step 410 Update the cache root corresponding to the identifier of the first page according to the first common component set, and save the cache root corresponding to the identifier of the updated first page.
  • step 410 After step 410 is executed, the process is ended, and the server continues the current learning cycle, and continues to learn based on the received new page.
  • step 407 is set as a subsequent step of step 406, and step 410 is set as a subsequent step of step 409.
  • step 407 can be executed first, then step 406, step 410, and then step 409 can be executed.
  • This embodiment has no limitation.
  • the server sets the validity period for the cache root
  • the logic for generating the cache root of the page is roughly similar to the logic for the server to generate the cache root of the page according to a certain learning period.
  • the validity period needs to be set for the cache root
  • those skilled in the art can refer to the relevant content in this embodiment to generate the cache root for the page.
  • the server compares the first page with the reference page, and can determine the common component of the first page and the reference page without manual inquiry or Manual configuration avoids the problem of poor feasibility of manually configuring common components.
  • the server generates or updates the cache root corresponding to the identifier of the page according to the common component, so that the server can return to the cache root first when receiving the page access request, reducing the sense of delay and thereby reducing the waiting time of the client.
  • the cache root can be stored on the edge server, which improves the first screen time of page access.
  • Step 501 The server receives the first page request initiated by the client.
  • the first page request may be initiated by the browser of the client, and the first page request includes the identifier of the page requested to be accessed.
  • Step 502 The server judges whether there is a cache root corresponding to the identifier of the requested page.
  • step 503 is executed, and then step 504 is executed, otherwise, step 504 is directly executed.
  • Step 503 The server sends the cache root corresponding to the identifier of the requested page to the client. Then step 504 is executed.
  • the client After receiving the cache root, the client generates a page according to the cache root and displays the generated page.
  • Step 504 The server determines the second page request according to the first page request, and sends the second page request to the source server.
  • step 504 is taken as a subsequent step of step 503.
  • steps can be performed first 504, Step 503 is executed again, or Step 503 and Step 504 are executed simultaneously.
  • This embodiment does not limit the order of Step 503 and Step 504 in this case.
  • Step 505 The server receives the first page returned by the server.
  • Step 506 The server determines the repair instruction according to the first page and the cache root corresponding to the identifier of the page requested to access.
  • the server determines different components between the first page and the cache root corresponding to the identifier of the first page, and generates repair instructions according to the different components to instruct the client to repair the page according to the repair instructions.
  • Step 507 The server sends a repair instruction to the client.
  • the client after receiving the repair instruction, the client repairs the page according to the repair instruction.
  • Step 508 The server determines the information of the first page and the information of the reference page corresponding to the identifier of the first page, and determines the common components of the first page and the reference page according to the information of the first page and the information of the reference page.
  • the second embodiment of the present invention relates to a method for determining a common component of a page.
  • the second embodiment is substantially the same as the first embodiment, the main difference is that in the first embodiment, the data length of the nodes in the DOM node tree of the first page is directly compared with the DOM node tree of the reference page by the server The data length comparison of the nodes in is used as an example to illustrate the method of determining a common node.
  • the server first divides the nodes in the DOM node tree of the first page and the nodes in the DOM node tree of the reference page into N comparison sets, and then compares the nodes in each comparison set. Compare. Among them, N is a positive integer.
  • this embodiment includes steps 601 to 606, where step 601 and step 602 are substantially the same as step 101 and step 102 in the first embodiment, and are not repeated here. Repeat. The main differences are described below:
  • Step 603 Determine the data length of each node in the DOM node tree of the first page, and the data length of each node in the DOM node tree of the reference page.
  • the server parses the first page and the reference page, generates a DOM node tree of the first page and a DOM node tree of the reference page, and determines the data length of each node on the two DOM node trees.
  • Step 604 According to the data length of the node of the DOM node tree of the first page and the data length of the node of the DOM node tree of the reference page, divide the node of the DOM node tree of the first page and the node of the DOM node tree of the reference page into N contrast sets.
  • the data length of the nodes in each comparison set belongs to the same preset range, and N is a positive integer.
  • the preset range of the data length of the nodes of each comparison set can be set as needed.
  • Step 605 Compare nodes belonging to the same comparison set to determine a common node.
  • each node in each comparison set the following operations are performed: determine whether the node belongs to the DOM node tree of the first page; if it belongs, determine whether there is a difference from the node in the comparison set A node belonging to the DOM node tree of the reference page that is less than the preset value; if it is determined to exist, the node, and/or, a node belonging to the DOM node tree of the reference page whose difference from the node is less than the preset value is taken as the public A node; if it does not belong, determine whether there is a node belonging to the DOM node tree of the first page whose difference with the node is less than the preset value in the comparison set; if it is determined to exist, the node, and/or The nodes belonging to the DOM node tree of the first page whose node difference is less than the preset value are used as public nodes.
  • the preset value can be set as needed, for example, set to any value from 10 to 100.
  • the server can also use the node hierarchy as one of the reference factors for determining the common node.
  • the server can also use the node hierarchy as one of the reference factors for determining the common node.
  • other labels of nodes may be used as reference factors for determining common nodes.
  • Step 606 Use the common node as the common component of the first page and the reference page.
  • the following is an example of how the server determines common components in combination with the actual situation.
  • the node tree 1 represents the DOM node tree of the first page
  • the node tree 2 represents the DOM node tree of the reference page.
  • the server places each node in a node bucket according to the data length of each node.
  • the first node bucket (BT1) is used to place nodes with a data length of 3000 to 3999
  • the second node bucket (BT2) is used to place nodes with a data length of 4000 to 4999
  • the third node bucket (BT3) is used For placing nodes with a data length of 5000 to 5999
  • the fourth node bucket (BT4) is used to place nodes with a data length of 6000 to 6999
  • the fifth node bucket (BT5) is used to place nodes with a data length of 7000 to 7999.
  • the server After placing the nodes of the DOM node tree of the first page and the nodes of the DOM node tree of the reference page in 5 node buckets, the server can perform the steps of deleting the node buckets of unplaced nodes and compare the number of placed nodes The step of relocating the nodes in the smaller node bucket to the same node bucket, and the step of sorting the nodes in the same node bucket according to the data length. When the server performs all the above steps, it can obtain the sorting bucket as shown in FIG. 7.
  • the server compares the nodes in the same sorting bucket, for example, compares node B2 with node B1, node A2 and node A1, and finds that the data length of node B2 and node A2 is the same, so node B2 Is the common node of the first page and the reference page, and node B2 is the common node of the first page and the reference page.
  • the data length of the two nodes can be When the difference is less than the preset value, one of the two nodes can be used as a common node. Among them, the preset value can be set as needed.
  • the server can selectively perform the above three steps, or any combination of the above three steps.
  • the node of the DOM node tree of the first page and the node of the DOM node tree of the reference page are divided into N comparison sets, which can avoid the server from comparing two nodes with a large data length, reducing the comparison. Times to avoid wasting computing resources.
  • the server first divides the nodes in the DOM node tree of the first page and the nodes in the DOM node tree of the reference page into N comparison sets , And then compare the nodes in each comparison set, avoiding the server to compare two nodes with large data length, reducing the number of comparisons, thereby avoiding wasting computing resources.
  • the server compares the first page with the reference page, and can determine the common components of the first page and the reference page without manual inquiry or manual configuration, avoiding the problem of poor feasibility of manually configuring the common components.
  • the third embodiment of the present invention relates to a device for determining a common component of a page. As shown in FIG. 8, it includes: a receiving module 801, a first determining module 802, and a second determining module 803, wherein the receiving module 801, the first The determination module 802 and the second determination module 803 are coupled to perform the determination method of the common component of the page mentioned in the above embodiment.
  • the receiving module 801 is used to receive the first page.
  • the first determining module 802 is used to determine the information of the first page and the information of the reference page corresponding to the identifier of the first page.
  • the second determination module 803 is used to determine the common components of the first page and the reference page according to the information of the first page and the information of the reference page.
  • this embodiment is a device example corresponding to the first embodiment, and this embodiment can be implemented in cooperation with the first embodiment.
  • the relevant technical details mentioned in the first embodiment are still valid in this embodiment, and in order to reduce repetition, they will not be repeated here.
  • the relevant technical details mentioned in this embodiment can also be applied in the first embodiment.
  • modules involved in this embodiment are all logical modules.
  • a logical unit may be a physical unit or a part of a physical unit, or multiple physical The combination of units is realized.
  • units that are not closely related to solving the technical problems proposed by the present invention are not introduced in this embodiment, but this does not mean that there are no other units in this embodiment.
  • the fourth embodiment of the present invention relates to a server, as shown in FIG. 9, including: at least one processor 901; and a memory 902 communicatively connected to the at least one processor 901; and, wherein the memory 902 stores The instructions executed by the at least one processor 901 are executed by the at least one processor 901, so that the at least one processor 901 can execute the method for determining the common component of the page mentioned in the above embodiment.
  • the server includes: one or more processors 901 and a memory 902, and one processor 901 is taken as an example in FIG. 9.
  • the processor 901 and the memory 902 may be connected through a bus or in other ways. In FIG. 9, connection through a bus is used as an example.
  • the memory 902 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer executable programs, and modules.
  • the information of the reference page is stored in the memory 902.
  • the processor 901 runs non-volatile software programs, instructions, and modules stored in the memory 902 to execute various functional applications and data processing of the device, that is, to implement a method for determining the common components of the above-mentioned pages.
  • the memory 902 may include a storage program area and a storage data area, wherein the storage program area may store an operating system and application programs required by at least one function; the storage data area may store a list of options, and the like.
  • the memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
  • the memory 902 may optionally include memories remotely set relative to the processor 901, and these remote memories may be connected to an external device through a network. Examples of the aforementioned network include, but are not limited to, the Internet, intranet, local area network, mobile communication network, and combinations thereof.
  • One or more modules are stored in the memory 902, and when executed by one or more processors 901, perform a method for determining a common component of a page in any of the above method embodiments.
  • the fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program.
  • the computer program is executed by the processor, the above method embodiments are implemented.
  • a storage medium includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

提供了一种页面的公共组件的确定方法、服务器及存储介质。页面的公共组件的确定方法包括:确定第一页面的信息,以及与第一页面的标识符对应的参考页面的信息(102);根据第一页面的信息和参考页面的信息,确定第一页面与参考页面的公共组件(103)。该技术方案中,无需手动配置公共组件,解决了手动配置公共组件的可行性差的问题,使得服务器能够自动识别公共组件。

Description

一种页面的公共组件的确定方法、服务器及存储介质 技术领域
本发明实施例涉及网络技术领域,特别涉及一种页面的公共组件的确定方法、服务器及存储介质。
背景技术
动态页面是统一资源标识符(Uniform Resource Identifier,URI)提供的不同内容的页面。动态页面一般需要经过数据库查询等一系列操作之后,将数据套入前端模板生成。服务器在查询动态数据时,客户端的浏览器会一直处于等待闲置的状态,产生延迟感。对动态页面进一步细分就会发现,同一URI产生的不同版本的页面之间总是存在公共部分,即存在公共组件。这些公共组件可能包含页面的商标(Logo)和其他一些图片。这些公共组件在多次的请求响应内容中基本上是一样的。如果能够抽取这些公共组件,组成这个URI下的公共页面,边缘把这些公共组件缓存下来(称为缓存根)。在客户端请求最新页面时,率先将公共页面(即缓存根)发送到客户端,从而减少客户端的等待时间,然后再把缓存根与原站返回的页面对比,用差异部分对返回给客户的缓存根进行修复,则可以加快页面的展示过程。
然而,发明人发现现有技术中至少存在如下问题:目前,技术人员通过以下方法实现上述思想:在浏览器的动态页面请求在经过代理节点时,先构造响应超级文本标记语言(Hyper Text Markup Language,HTML)页面的开头部分,在开头部分(<head>标签)后使用<script>标签和<style>标签将要预先下载的公共组件包含在开头部分。在客户端发送请求时,先将这部分响应发送给客户端的浏览器。客户端在解析这部分响应时,就会触发对这些公共组件的请求了。然而,构造的响应的开头部分的内容(即公共组件)是通过手动配置的方式进行配置的。这种手动配置方式存在以下严重缺陷:①页面的公共组件的内容需要事先沟通获得,这样才能手动配置;②页面的公共组件很多时候会发生变更,若公共组件发生变更,则需要更新配置,配置量大,容易出现无法及时变更。③对于处理多个内容提供者的边缘缓存,片段检测的手动方法变得难以管理且不现实。
需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。
发明内容
本发明实施方式的目的在于提供一种页面的公共组件的确定方法、服务器及存储介质,无需手动配置公共组件,解决了确定公共组件的可行性差的问题,使得服务器能够自动识别公共组件。
为解决上述技术问题,本发明的实施方式提供了一种页面的公共组件的确定方法,包括以下步骤:接收第一页面;确定第一页面的信息,以及与第一页面的标识符对应的参考页面的信息;根据第一页面的信息和参考页面的信息,确定第一页面与参考页面的公共组件。
本发明的实施方式还提供了一种服务器,包括:至少一个处理器;以及,与至少一个处理器通信连接的存储器;以及,其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行上述实施方式提及的页面的公共组件的确定方法。
本发明的实施方式还提供了一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时实现上述实施方式的页面的公共组件的确定方法。
本发明实施方式相对于现有技术而言,服务器将第一页面与参考页面进行比较,能够确定第一页面和参考页面的公共组件,无需人工询问,也无需手工配置,避免了手工配置公共组件的可行性差的问题。
另外,第一页面的信息为第一页面的文档对象模型DOM节点树,参考页面的信息为参考页面的DOM节点树;
根据第一页面的信息和参考页面的信息,确定第一页面与参考页面的公共组件,具体包括:确定第一页面的DOM节点树中每个节点的数据长度,以及参考页面的DOM节点树中每个节点的数据长度;将第一页面的DOM节点树中的节点的数据长度,与参考页面的DOM节点树中的节点的数据长度比较,确定第一页面的DOM节点树和参考页面的DOM节点树的公共节点;将公共节点作为第一页面与参考页面的公共组件。
另外,将第一页面的DOM节点树中的节点的数据长度,与参考页面的DOM节点树中的节点的数据长度比较,确定第一页面的DOM节点树和参考页面的DOM节点树的公共节点,具体包括:根据第一页面的DOM节点树的节点的数据长度和参考页面的DOM节点树的节点的数据长度,将第一页面的DOM节点树的节点和参考页面的DOM节点树的节点分为N个对比集合;其中,每个对比集合中的节点的数据长度属于同一预设范围,N为正整数;将属于同一对比集合的节点进行比较,确定公共节点。该实现中,将第一页面的DOM节点树的节点和参考页面的DOM节点树的节点分为N个对比集合,可以避免服务器将数据长度 很大的两个节点进行比较,减少了比较次数,避免浪费计算资源
另外,将属于同一对比集合的节点进行比较,确定公共节点,具体包括:针对每个对比集合中的每个节点,分别进行以下操作:判断节点是否属于第一页面的DOM节点树;若确定属于,判断对比集合中,是否存在与节点的差值小于预设值的属于参考页面的DOM节点树的节点;若确定存在,将节点,和/或,与节点的差值小于预设值的属于参考页面的DOM节点树的节点,作为公共节点;若确定不属于,判断对比集合中,是否存在与节点的差值小于预设值的属于第一页面的DOM节点树的节点;若确定存在,将节点,和/或,与节点的差值小于预设值的属于第一页面的DOM节点树的节点,作为公共节点。
另外,在根据第一页面的信息和参考页面的信息,确定第一页面与参考页面的公共组件之后,页面的公共组件的确定方法还包括:根据第一页面与参考页面的公共组件,确定第一页面的标识符对应的第一公共组件集合;根据第一公共组件集合,生成第一页面的标识符对应的缓存根。该实现中,服务器根据公共组件集合,生成标识符对应的缓存根,使得服务器能够在接收到客户端发送的页面请求时,先将该页面请求中的标识符对应的缓存根发送至客户端,减少延迟感。
另外,在根据第一公共组件集合,生成第一页面的标识符对应的缓存根之前,页面的公共组件的确定方法还包括:确定第一页面的标识符对应的第二公共组件集合;其中,第二公共组件集合为上一次确定的第一页面的标识符对应的公共组件集合;确定第一公共组件集合中的组件的个数少于第二公共组件集合中的组件的个数。
另外,在确定第一公共组件集合中的组件的个数少于第二公共组件集合中的组件的个数之前,页面的公共组件的确定方法还包括:确定第一页面的标识符对应的缓存根未过期;或,确定第一页面的标识符当前的学习周期未结束。该实现中,服务器按照一定的学习周期,对页面的公共组件进行学习时,或者,为缓存根设置有效期时,可以减少改动前页面前接收到的页面的信息对学习结果的准确性的影响。
另外,在确定第一公共组件集合中的组件的个数少于第二公共组件集合中的组件的个数之后,页面的公共组件的确定方法还包括:根据第一页面的信息,更新第一页面的标识符对应的参考页面的信息。
另外,在确定第一页面的标识符对应的参考页面的信息之后,页面的公共组件的确定方法还包括:若确定参考页面的信息为空,将第一页面的信息,作为下次确定页面的公共组件的过程中的参考页面的信息。
另外,在接收第一页面之前,页面的公共组件的确定方法还包括:步骤a:接收客户端 发送的第一页面请求;其中,第一页面请求中包括请求访问的页面的标识符;步骤b:判断是否存在请求访问的页面的标识符对应的缓存根;若确定是,执行步骤c;否则,执行步骤d;步骤c:将请求访问的页面的标识符对应的缓存根发送至客户端,之后执行步骤d;步骤d:根据第一页面请求,确定第二页面请求,将第二页面请求发送至源服务器。
另外,在接收第一页面之后,页面的公共组件的确定方法还包括:根据第一页面和请求访问的页面的标识符对应的缓存根,确定修复指令;发送修复指令至客户端。
另外,标识符为统一资源标识符URI。
附图说明
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1是本发明的第一实施方式的页面的公共组件的确定方法的流程图;
图2是本发明的第一实施方式的第一页面的DOM节点树的示意图;
图3是本发明的第一实施方式的参考页面的DOM节点树的示意图;
图4是本发明的第一实施方式的服务器生成页面的缓存根的方法的流程图;
图5是本发明的第一实施方式的服务器、客户端、源服务器的交互示意图;
图6是本发明的第二实施方式的页面的公共组件的确定方法的流程图;
图7是本发明的第二实施方式的服务器确定公共组件的过程的示意图;
图8是本发明的第三实施方式的页面的公共组件的确定装置的结构示意图;
图9是本发明的第四实施方式的服务器的结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。
本发明的第一实施方式涉及一种页面的公共组件的确定方法,应用于服务器。其中,服务器可以是代理服务器,或者,内容分发网络中的边缘服务器等。如图1所示,该页面的公 共组件的确定方法包括:
步骤101:接收第一页面。
具体地说,第一页面可以是源服务器返回的页面,其中,源服务器在接收到服务器发送的页面请求后,返回与该页面请求中的标识符对应的页面。
步骤102:确定第一页面的信息,以及与第一页面的标识符对应的参考页面的信息。
具体地说,第一页面的标识符可以是第一页面的统一资源标识符(Uniform Resource Identifier,URI),也可以是其他的页面标识。
在一个实施例中,第一页面的信息可以是第一页面的文档对象模型(Document Object Model,DOM)节点树,参考页面的信息可以是参考页面的DOM节点树。
需要说明的是,本领域技术人员可以理解,实际应用中,页面的信息也可以是其他能够表示页面中各个组件的特征的信息,本实施方式不限定页面的信息的内容。
在一个实施例中,在确定第一页面的标识符对应的参考页面的信息之后,服务器若确定参考页面的信息为空,将第一页面的信息,作为下次确定页面的公共组件的过程中的参考页面的信息。
需要说明的是,本领域技术人员可以理解,在确定参考页面的信息为空之后,服务器可以结束本次的页面的公共组件的确定过程,进入下次的页面的公共组件的确定过程,也可以将继续执行步骤103。
在一个实施例中,服务器在确定参考页面的信息为空之后,结束本次的页面的公共组件的确定过程,继续接收后续的页面。当服务器接收到与第一页面的标识符对应的第二页面时,根据第二页面,进行第一页面的标识符对应的公共组件的确定过程。
例如,在第一时刻,服务器接收到第一页面,第一页面对应的标识符为S。在第一时刻前,服务器未接收过标识符为S的页面,参考页面的信息为空。此时,服务器将第一页面作为参考页面,即将第一页面的信息作为参考页面的信息。在第二时刻,服务器接收到第二页面,第二页面对应的标识符为S,此时,参考页面的信息为第一页面的信息。
在一个实施例中,服务器在确定参考页面的信息为空之后,继续执行步骤103。由于参考页面的信息为空,故确定参考页面和第一页面不存在公共组件。
通过上述内容可知,本领域技术人员可以理解,服务器在每次接收到源服务器返回的页面时,都会触发页面的公共组件的确定过程。服务器持续对页面进行监控,使得页面的公共组件发生变化时,服务器能够根据更改后的页面,及时更新公共组件,相对于人工更改公共组件的方法,更为及时和方便。
步骤103:根据第一页面的信息和参考页面的信息,确定第一页面与参考页面的公共组件。
具体地说,当第一页面的信息可以是第一页面的文档对象模型(Document Object Model,DOM)节点树,参考页面的信息可以是参考页面的DOM节点树时,服务器确定第一页面的DOM节点树中每个节点的数据长度,以及参考页面的DOM节点树中每个节点的数据长度;将第一页面的DOM节点树中的节点的数据长度,与参考页面的DOM节点树中的节点的数据长度比较,确定第一页面的DOM节点树和参考页面的DOM节点树的公共节点;将公共节点作为第一页面与参考页面的公共组件。
具体实现中,服务器直接将第一页面的DOM节点树中的节点的数据长度,与参考页面的DOM节点树中的节点的数据长度比较,根据比较结果,确定第一页面的DOM节点树和参考页面的DOM节点树的公共节点。
以下结合实际情况,举例说明服务器根据第一种方法确定公共组件的过程。
假设,第一页面的DOM节点树(简称节点树1)如图2所示,参考页面的DOM节点树(简称节点树2)如图3所示。服务器将节点树1中的节点A1的数据长度分别与节点B1、节点B2、节点B3、节点B4、节点B5、节点B6和节点B7的数据长度进行比较,发现节点A1的数据长度与节点树2的各个节点的数据长度均不相同,故确定节点A1不是公共节点。服务器将节点A2的数据长度分别与节点B1、节点B2、节点B3、节点B4、节点B5、节点B6和节点B7的数据长度进行比较,发现节点A2与节点B2的数据长度相同,故节点A2和节点B2可能相同,因此,服务器将节点A2和节点B2,作为第一页面与参考页面的公共节点。以此类推,服务器将节点树1中的其他节点的数据长度分别与节点树2的节点的数据长度进行比较。在完成所有节点的比较后,确定第一页面与参考页面的公共节点包括:节点A2、节点A4和节点A5。故服务器将节点A2、节点A4和节点A5,作为第一页面与参考页面的公共组件。
需要说明的是,本领域技术人员可以理解,实际应用中,也可以在将节点树2中的节点分别与节点树1中的节点进行比较后,将参考页面的DOM节点树中的节点作为公共节点。
具体实现中,服务器在确定公共组件之后,根据第一页面与参考页面的公共组件,确定第一页面的标识符对应的第一公共组件集合;根据第一公共组件集合,生成第一页面的标识符对应的缓存根。其中,缓存根是指第一公共组件集合的文本形态。
例如,第一页面的信息可以是第一页面的文档对象模型(Document Object Model,DOM)节点树,参考页面的信息可以是参考页面的DOM节点树。第一公共组件集合中的信息为第 一页面和参考页面的公共节点的DOM数据,缓存根为根据第一公共组件集合中的DOM数据生成的超文本标记语言文件(HyperText Mark-up Language,HTML)文件。
值得一提的是,服务器根据公共组件集合,生成标识符对应的缓存根,使得服务器能够在接收到客户端发送的页面请求时,可以先将该页面请求中的标识符对应的缓存根发送至客户端,减少延迟感。
在一个实施例中,服务器在根据第一公共组件集合,生成第一页面的标识符对应的缓存根之前,确定第一页面的标识符对应的第二公共组件集合,判断第一公共组件集合中的组件的个数是否少于第二公共组件集合中的组件的个数。服务器在确定第一公共组件集合中的组件的个数少于第二公共组件集合中的组件的个数后,根据第一公共组件集合,生成第一页面的标识符对应的缓存根。
可选的,服务器在确定第一公共组件集合中的组件的个数少于第二公共组件集合中的组件的个数后,根据第一页面的信息,更新第一页面的标识符对应的参考页面的信息。其中,第二公共组件集合为上一次确定的第一页面的标识符对应的第一公共组件集合。
具体地说,若第一公共组件集合中的公共组件个数更少,说明当前接收到的第一页面与参考页面的差距较大,即第一页面的标识符对应的不同版本的页面之间的公共组件发生了变化。该情况下,对缓存根和参考页面的信息进行更新,使得服务器中的缓存根和参考页面的信息能够更贴合标识符对应的网页。
在一个实施例中,服务器按照设定的学习周期,学习公共组件;或者,服务器在生成缓存根后,为生成的缓存根设置有效期。该情况下,服务器在确定第一公共组件集合中的组件的个数少于第二公共组件集合中的组件的个数之前,确定第一页面的标识符对应的缓存根未过期;或,确定第一页面的标识符当前的学习周期未结束。
值得一提的是,由于同一标识符对应的页面的版本可能会发生改动,若服务器持续学习页面的公共组件,改动前的页面的版本可能会影响学习结果的准确性。当服务器按照一定的学习周期,对页面的公共组件进行学习时,或者,服务器为缓存根设置有效期时,可以减少改动前的页面的信息对学习结果的准确性的影响。
需要说明的是,本领域技术人员可以理解,学习周期和缓存根的有效期可以根据需要设置,本实施方式不限制学习周期和缓存根的有效期的具体时长。
为阐述请求,以下结合上述内容,对服务器按照一定的学习周期,对页面的公共组件进行学习,并根据确定页面的公共组件集合,生成缓存根的过程进行举例说明。如图4所示,服务器生成页面的缓存根的方法包括以下步骤:
步骤401:接收源服务器返回的第一页面。
步骤402:判断第一页面是否是当前的学习周期中接收到的第一个与第一页面的标识符对应的页面。
具体地说,若确定是,执行步骤403,否则,执行步骤404。
步骤403:将第一页面的信息,作为参考页面的信息。之后结束流程。
具体地说,当服务器刚开启新的学习周期时,还不存在参考页面信息。该情况下,根据第一页面的信息,初始化参考页面的信息,即将第一页面的信息作为参考页面的信息,以便服务器在下次接收到与该标识符对应的页面时,可以基于参考页面的信息,学习该标识符对应的页面的公共组件。
步骤404:根据第一页面的信息和参考页面的信息,确定第一页面和参考页面的第一公共组件集合。
具体地说,服务器根据第一页面的信息和参考页面的信息,确定第一页面和参考页面的公共组件。根据第一页面和参考页面的公共组件,确定第一公共组件集合。其中,服务器确定第一页面和参考页面的公共组件的方法可参考本实施方式中的步骤103中的相关描述,此处不再赘述。
步骤405:判断当前的学习周期是否结束。
具体地说,若确定第一页面的标识符当前的学习周期已结束,执行步骤406,否则,执行步骤408。
步骤406:根据第一公共组件集合,更新第一页面的标识符对应的缓存根,保存更新后的第一页面的标识符对应的缓存根。
步骤407:清空参考页面的信息。
具体地说,若当前的学习周期已结束,为避免当前的学习周期中接收到的页面的信息影响下一学习周期,服务器清空参考页面的信息。
在执行步骤407之后,结束流程,服务器进入新的学习周期。
步骤408:判断第一公共组件集合中的组件的个数是否少于第二公共组件集合中的组件的个数。
具体地说,第二公共组件集合为上一学习周期确定的第一页面的标识符对应的公共组件集合。若第一公共组件集合中的组件比第二公共组件集合少,说明第一页面相对于参考页面发生较大改变,服务器需要更新参考页面的信息和缓存根,以便后续对公共组件的学习。若第一公共组件集合中的组件比第二公共组件集合多,或,与第二公共组件集合相同,说明第 一页面相对于参考页面未发生很明显的改变,服务器可以继续使用当前的参考页面和缓存根。因此,若服务器确定第一公共组件集合中的组件的个数少于第二公共组件集合中的组件的个数,执行步骤409,否则,结束流程。
需要说明的是,本领域技术人员可以理解,实际应用中,服务器可以在第一公共组件集合中的组件的个数比第二公共组件集合中的组件的个数少M个之后,再执行步骤409。其中,M为正整数。
步骤409:将第一页面的信息,作为参考页面的信息。
步骤410:根据第一公共组件集合,更新第一页面的标识符对应的缓存根,保存更新后的第一页面的标识符对应的缓存根。
在执行步骤410之后,结束流程,服务器继续当前的学习周期,基于接收到的新的页面,持续进行学习。
需要说明的是,本实施方式中,为阐述清楚,将步骤407设置为步骤406的后续步骤,步骤410设置为步骤409的后续步骤。但是,本领域技术人员可以理解,实际应用中,可以先执行步骤407,再执行步骤406,先执行步骤410,再执行步骤409。本实施方式不起限定作用。
需要说明的是,本领域技术人员可以理解,当服务器为缓存根设置有效期时,其生成页面的缓存根的逻辑与服务器按照一定的学习周期,生成页面的缓存根的逻辑大致相似。当需要为缓存根设置有效期时,本领域技术人员可以参考本实施方式中的相关内容,为页面生成缓存根。
需要说明的是,以上仅为举例说明,并不对本发明的技术方案构成限定。
与现有技术相比,本实施方式中提供的页面的公共组件的确定方法,服务器将第一页面与参考页面进行比较,能够确定第一页面和参考页面的公共组件,无需人工询问,也无需手工配置,避免了手工配置公共组件的可行性差的问题。除此之外,服务器根据公共组件,生成或更新页面的标识符对应的缓存根,使得服务器能够在接收到页面访问请求时,先返回缓存根,减少延迟感,从而减少客户端的等待时间。当服务器为内容分发网络的边缘服务器时,使得缓存根能够存储在边缘服务器上,提高了页面访问的首屏时间。
为阐述清楚,以下结合服务器、客户端和源服务器之间的交互过程,对确定页面的公共组件的方法进行说明。如图5所示,包括以下步骤:
步骤501:服务器接收客户端发起的第一页面请求。其中,第一页面请求可以由客户端的浏览器发起,第一页面请求中包括请求访问的页面的标识符。
步骤502:服务器判断是否存在请求访问的页面的标识符对应的缓存根。
具体地说,服务器若确定存在请求访问的页面的标识符对应的缓存根,执行步骤503,之后执行步骤504,否则,直接执行步骤504。
步骤503:服务器将请求访问的页面的标识符对应的缓存根发送至客户端。之后执行步骤504。
具体地说,客户端在接收到缓存根后,根据缓存根生成页面,显示生成的页面。
步骤504:服务器根据第一页面请求,确定第二页面请求,将第二页面请求发送至源服务器。
需要说明的是,为阐述清楚,本实施方式中,针对服务器中存在第一页面请求的标识符对应的缓存根的情况,将步骤504作为步骤503的后续步骤,实际应用中,可以先执行步骤504,再执行步骤503,或者,同时执行步骤503和步骤504,本实施方式不限制该情况下的步骤503和步骤504的先后顺序。
步骤505:服务器接收服务器返回的第一页面。
步骤506:服务器根据第一页面,以及请求访问的页面的标识符对应的缓存根,确定修复指令。
具体地说,服务器确定第一页面和第一页面的标识符对应的缓存根之间的不同组件,根据不同组件,生成修复指令,以指示客户端根据修复指令,修复页面。
步骤507:服务器发送修复指令至客户端。
具体地说,客户端在接收到修复指令后,根据修复指令,修复页面。
步骤508:服务器确定第一页面的信息,以及与第一页面的标识符对应的参考页面的信息,根据第一页面的信息和参考页面的信息,确定第一页面与参考页面的公共组件。
本发明的第二实施方式涉及一种页面的公共组件的确定方法。第二实施方式与第一实施方式大致相同,主要区别之处在于:在第一实施方式中,以服务器直接将第一页面的DOM节点树中的节点的数据长度,与参考页面的DOM节点树中的节点的数据长度比较为例,说明确定公共节点的方法。而在本发明的第二实施方式中,服务器先将第一页面的DOM节点树中的节点和参考页面的DOM节点树中的节点分为N个对比集合,再对每个对比集合中的节点进行比较。其中,N为正整数。
具体的说,如图6所示,在本实施方式中,包含步骤601至步骤606,其中,步骤601和步骤602分别与第一实施方式中的步骤101和步骤102大致相同,此处不再赘述。下面主要介绍不同之处:
执行步骤601和步骤602。
步骤603:确定第一页面的DOM节点树中每个节点的数据长度,以及参考页面的DOM节点树中每个节点的数据长度。
具体地说,服务器对第一页面和参考页面进行解析,生成第一页面的DOM节点树和参考页面的DOM节点树,并确定两个DOM节点树上每个节点的数据长度。
步骤604:根据第一页面的DOM节点树的节点的数据长度和参考页面的DOM节点树的节点的数据长度,将第一页面的DOM节点树的节点和参考页面的DOM节点树的节点分为N个对比集合。
具体地说,每个对比集合中的节点的数据长度属于同一预设范围,N为正整数。其中,每个对比集合的节点的数据长度的预设范围可以根据需要设置。
步骤605:将属于同一对比集合的节点进行比较,确定公共节点。
具体实现中,针对每个对比集合中的每个节点,分别进行以下操作:判断该节点是否属于第一页面的DOM节点树;若确定属于,判断对比集合中,是否存在与该节点的差值小于预设值的属于参考页面的DOM节点树的节点;若确定存在,将该节点,和/或,与该节点的差值小于预设值的属于参考页面的DOM节点树的节点,作为公共节点;若确定不属于,判断对比集合中,是否存在与该节点的差值小于预设值的属于第一页面的DOM节点树的节点;若确定存在,将该节点,和/或,与该节点的差值小于预设值的属于第一页面的DOM节点树的节点,作为公共节点。其中,预设值可以根据需要设置,例如,设置为10至100中的任意一个数值。
需要说明的是,服务器在对比第一页面的DOM节点树的节点和参考页面的DOM节点树的节点的数据长度的同时,还可以将节点的层级作为确定公共节点的参考因素之一。本领域技术人员可以理解,实际应用中,可以将节点的其他标记作为确定公共节点的参考因素。
步骤606:将公共节点作为第一页面与参考页面的公共组件。
以下结合实际情况,对服务器确定公共组件的方法进行举例说明。
假设,服务器确定公共组件的过程的示意图如图7所示。其中,节点树1表示第一页面的DOM节点树,节点树2表示参考页面的DOM节点树。服务器根据各个节点的数据长度,将每个节点放置在节点桶中。其中,第一个节点桶(BT1)用于放置数据长度为3000到3999的节点,第二个节点桶(BT2)用于放置数据长度为4000到4999的节点,第三节点桶(BT3)用于放置数据长度为5000到5999的节点,第四节点桶(BT4)用于放置数据长度为6000到6999的节点,第五节点桶(BT5)用于放置数据长度为7000到7999的节点。将第一页面的 DOM节点树的节点和参考页面的DOM节点树的节点分别放置在5个节点桶内以后,服务器可以执行将未放置节点的节点桶删除的步骤、将放置的节点的数量较少的节点桶中的节点重新放置在同一节点桶中的步骤,以及将同一节点桶中的节点按照数据长度进行排序的步骤。当服务器执行上述所有步骤时,可以得到如图7所示的排序桶。在得到排序桶之后,服务器将同一个排序桶中节点进行比较,例如,将节点B2分别与节点B1、节点A2和节点A1进行比较,发现节点B2与节点A2的数据长度相同,故,节点B2是第一页面和参考页面的公共节点,节点B2是第一页面和参考页面的公共节点。
需要说明的是,上述例子的描述过程中,为阐述清楚,在两个节点的数据长度相同时,将两个节点中的一个节点作为公共节点,实际应用中,可以在两个节点的数据长度的差值小于预设值时,即可将两个节点中的一个节点作为公共节点。其中,预设值可以根据需要设置。
需要说明的是,上述例子中提及的将未放置节点的节点桶删除的步骤、将放置的节点的数量较少的节点桶中的节点重新放置在同一节点桶中的步骤,以及将同一节点桶中的节点按照数据长度进行排序的步骤,服务器可以有选择地执行上述三个步骤,或者上述三个步骤的任意组合。
值得一提的是,将第一页面的DOM节点树的节点和参考页面的DOM节点树的节点分为N个对比集合,可以避免服务器将数据长度很大的两个节点进行比较,减少了比较次数,避免浪费计算资源。
需要说明的是,以上仅为举例说明,并不对本发明的技术方案构成限定。
与现有技术相比,本实施方式中提供的页面的公共组件的确定方法,服务器先将第一页面的DOM节点树中的节点和参考页面的DOM节点树中的节点分为N个对比集合,再对每个对比集合中的节点进行比较,避免了服务器将数据长度很大的两个节点进行比较,减少了比较次数,从而避免浪费计算资源。除此之外,服务器将第一页面与参考页面进行比较,能够确定第一页面和参考页面的公共组件,无需人工询问,也无需手工配置,避免了手工配置公共组件的可行性差的问题。
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。
本发明的第三实施方式涉及一种页面的公共组件的确定装置,如图8所示,包括:接收模块801、第一确定模块802和第二确定模块803,其中,接收模块801、第一确定模块802 和第二确定模块803耦合,以执行上述实施方式提及的页面的公共组件的确定方法。
具体地说,接收模块801用于接收第一页面。第一确定模块802用于确定第一页面的信息,以及与第一页面的标识符对应的参考页面的信息。第二确定模块803用于根据第一页面的信息和参考页面的信息,确定第一页面与参考页面的公共组件。
不难发现,本实施方式为与第一实施方式相对应的装置实施例,本实施方式可与第一实施方式互相配合实施。第一实施方式中提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第一实施方式中。
值得一提的是,本实施方式中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本发明的创新部分,本实施方式中并没有将与解决本发明所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。
本发明的第四实施方式涉及一种服务器,如图9所示,包括:至少一个处理器901;以及,与至少一个处理器901通信连接的存储器902;以及,其中,存储器902存储有可被至少一个处理器901执行的指令,指令被至少一个处理器901执行,以使至少一个处理器901能够执行上述实施方式提及的页面的公共组件的确定方法。
该服务器包括:一个或多个处理器901以及存储器902,图9中以一个处理器901为例。处理器901、存储器902可以通过总线或者其他方式连接,图9中以通过总线连接为例。存储器902作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施方式中参考页面的信息就存储于存储器902中。处理器901通过运行存储在存储器902中的非易失性软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述页面的公共组件的确定方法。
存储器902可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储选项列表等。此外,存储器902可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施方式中,存储器902可选包括相对于处理器901远程设置的存储器,这些远程存储器可以通过网络连接至外接设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
一个或者多个模块存储在存储器902中,当被一个或者多个处理器901执行时,执行上述任意方法实施方式中的页面的公共组件的确定方法。
上述产品可执行本申请实施方式所提供的方法,具备执行方法相应的功能模块和有益效果,未在本实施方式中详尽描述的技术细节,可参见本申请实施方式所提供的方法。
本发明的第五实施方式涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。

Claims (14)

  1. 一种页面的公共组件的确定方法,其特征在于,包括:
    接收第一页面;
    确定所述第一页面的信息,以及与所述第一页面的标识符对应的参考页面的信息;
    根据所述第一页面的信息和所述参考页面的信息,确定所述第一页面与所述参考页面的公共组件。
  2. 根据权利要求1所述的页面的公共组件的确定方法,其特征在于,所述第一页面的信息为所述第一页面的文档对象模型DOM节点树,所述参考页面的信息为所述参考页面的DOM节点树;
    所述根据所述第一页面的信息和所述参考页面的信息,确定所述第一页面与所述参考页面的公共组件,具体包括:
    确定所述第一页面的DOM节点树中每个节点的数据长度,以及所述参考页面的DOM节点树中每个节点的数据长度;
    将所述第一页面的DOM节点树中的节点的数据长度,与所述参考页面的DOM节点树中的节点的数据长度比较,确定所述第一页面的DOM节点树和所述参考页面的DOM节点树的公共节点;
    将所述公共节点作为所述第一页面与所述参考页面的公共组件。
  3. 根据权利要求2所述的页面的公共组件的确定方法,其特征在于,所述将所述第一页面的DOM节点树中的节点的数据长度,与所述参考页面的DOM节点树中的节点的数据长度比较,确定所述第一页面的DOM节点树和所述参考页面的DOM节点树的公共节点,具体包括:
    根据所述第一页面的DOM节点树的节点的数据长度和所述参考页面的DOM节点树的节点的数据长度,将所述第一页面的DOM节点树的节点和所述参考页面的DOM节点树的节点分为N个对比集合;其中,每个所述对比集合中的节点的数据长度属于同一预设范围,N为正整数;
    将属于同一所述对比集合的节点进行比较,确定所述公共节点。
  4. 根据权利要求3所述的页面的公共组件的确定方法,其特征在于,所述将属于同一所述对比集合的节点进行比较,确定所述公共节点,具体包括:
    针对每个所述对比集合中的每个节点,分别进行以下操作:判断所述节点是否属于所述 第一页面的DOM节点树;若确定属于,判断所述对比集合中,是否存在与所述节点的差值小于预设值的属于所述参考页面的DOM节点树的节点;若确定存在,将所述节点,和/或,与所述节点的差值小于所述预设值的属于所述参考页面的DOM节点树的节点,作为所述公共节点;若确定不属于,判断所述对比集合中,是否存在与所述节点的差值小于所述预设值的属于所述第一页面的DOM节点树的节点;若确定存在,将所述节点,和/或,与所述节点的差值小于所述预设值的属于所述第一页面的DOM节点树的节点,作为所述公共节点。
  5. 根据权利要求1所述的页面的公共组件的确定方法,其特征在于,在所述根据所述第一页面的信息和所述参考页面的信息,确定所述第一页面与所述参考页面的公共组件之后,所述页面的公共组件的确定方法还包括:
    根据所述第一页面与所述参考页面的公共组件,确定所述第一页面的标识符对应的第一公共组件集合;
    根据所述第一公共组件集合,生成所述第一页面的标识符对应的缓存根。
  6. 根据权利要求5所述的页面的公共组件的确定方法,其特征在于,在所述根据所述第一公共组件集合,生成所述第一页面的标识符对应的缓存根之前,所述页面的公共组件的确定方法还包括:
    确定所述第一页面的标识符对应的第二公共组件集合;其中,所述第二公共组件集合为上一次确定的所述第一页面的标识符对应的公共组件集合;
    确定所述第一公共组件集合中的组件的个数少于所述第二公共组件集合中的组件的个数。
  7. 根据权利要求6所述的页面的公共组件的确定方法,其特征在于,在所述确定所述第一公共组件集合中的组件的个数少于所述第二公共组件集合中的组件的个数之前,所述页面的公共组件的确定方法还包括:
    确定所述第一页面的标识符对应的缓存根未过期;或,
    确定所述第一页面的标识符当前的学习周期未结束。
  8. 根据权利要求6所述的页面的公共组件的确定方法,其特征在于,在所述确定所述第一公共组件集合中的组件的个数少于所述第二公共组件集合中的组件的个数之后,所述页面的公共组件的确定方法还包括:
    根据所述第一页面的信息,更新所述第一页面的标识符对应的参考页面的信息。
  9. 根据权利要求1所述的页面的公共组件的确定方法,其特征在于,在确定所述第一页面的标识符对应的参考页面的信息之后,所述页面的公共组件的确定方法还包括:
    若确定所述参考页面的信息为空,将所述第一页面的信息,作为下次确定页面的公共组件的过程中的参考页面的信息。
  10. 根据权利要求5所述的页面的公共组件的确定方法,其特征在于,在所述接收第一页面之前,所述页面的公共组件的确定方法还包括:
    步骤a:接收客户端发送的第一页面请求;其中,所述第一页面请求中包括请求访问的页面的标识符;
    步骤b:判断是否存在所述请求访问的页面的标识符对应的缓存根;
    若确定是,执行步骤c;否则,执行步骤d;
    步骤c:将所述请求访问的页面的标识符对应的缓存根发送至所述客户端,之后执行步骤d;
    步骤d:根据所述第一页面请求,确定第二页面请求,将所述第二页面请求发送至源服务器。
  11. 根据权利要求10所述的页面的公共组件的确定方法,其特征在于,在所述接收第一页面之后,所述页面的公共组件的确定方法还包括:
    根据所述第一页面和所述请求访问的页面的标识符对应的缓存根,确定修复指令;
    发送所述修复指令至所述客户端。
  12. 根据权利要求1至11中任一项所述的页面的公共组件的确定方法,其特征在于,所述标识符为统一资源标识符URI。
  13. 一种服务器,其特征在于,包括:至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;以及,其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至12中任一项所述的页面的公共组件的确定方法。
  14. 一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至12中任一项所述的页面的公共组件的确定方法。
PCT/CN2019/071878 2018-12-22 2019-01-16 一种页面的公共组件的确定方法、服务器及存储介质 WO2020124720A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19900453.2A EP3901790A4 (en) 2018-12-22 2019-01-16 METHOD FOR DETERMINING A COMMON COMPONENT OF PAGES, SERVER AND INFORMATION MEDIA
US17/289,429 US20210357464A1 (en) 2018-12-22 2019-01-16 Method, server, and storage medium for determining common components of page

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811575703.1A CN109670133B (zh) 2018-12-22 2018-12-22 一种页面的公共组件的确定方法、服务器及存储介质
CN201811575703.1 2018-12-22

Publications (1)

Publication Number Publication Date
WO2020124720A1 true WO2020124720A1 (zh) 2020-06-25

Family

ID=66145961

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/071878 WO2020124720A1 (zh) 2018-12-22 2019-01-16 一种页面的公共组件的确定方法、服务器及存储介质

Country Status (4)

Country Link
US (1) US20210357464A1 (zh)
EP (1) EP3901790A4 (zh)
CN (1) CN109670133B (zh)
WO (1) WO2020124720A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221862B (zh) * 2019-12-31 2023-08-11 五八有限公司 一种请求处理方法及装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262627A (zh) * 2010-05-24 2011-11-30 卓望数码技术(深圳)有限公司 一种网页分割方法和网页分割系统
CN102375851A (zh) * 2010-08-23 2012-03-14 中国移动通信有限公司 一种显示页面的方法及设备
CN103544176A (zh) * 2012-07-13 2014-01-29 百度在线网络技术(北京)有限公司 用于生成多个页面所对应的页面结构模板的方法和设备
CN103544178A (zh) * 2012-07-13 2014-01-29 百度在线网络技术(北京)有限公司 一种用于提供与目标页面相对应的重构页面的方法和设备
US8645823B1 (en) * 2008-10-28 2014-02-04 Adobe Systems Incorporated Converting static websites to resolution independent websites in a web development environment
US20160170947A1 (en) * 2012-07-31 2016-06-16 Instart Logic, Inc. Efficient delivery of content by virtualization of dynamic interaction with the document object model
CN105786894A (zh) * 2014-12-22 2016-07-20 广州市动景计算机科技有限公司 页面展示方法和页面展示设备

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8037168B2 (en) * 1999-07-15 2011-10-11 Esdr Network Solutions Llc Method, product, and apparatus for enhancing resolution services, registration services, and search services
AU2001227857A1 (en) * 2000-01-14 2001-07-24 Saba Software, Inc. Method and apparatus for a business applications management system platform
US6643652B2 (en) * 2000-01-14 2003-11-04 Saba Software, Inc. Method and apparatus for managing data exchange among systems in a network
CA2400442A1 (en) * 2000-02-25 2001-08-30 Yet Mui Method for enterprise workforce planning
US7533406B2 (en) * 2002-09-30 2009-05-12 Microsoft Corporation Systems and methods for generating a walled garden program for substantially optimized bandwidth delivery
EP1901179A1 (en) * 2005-06-24 2008-03-19 JustSystems Corporation Document processing device, and document processing method
US10169221B2 (en) * 2008-07-22 2019-01-01 Accelerate Group Limited Method and system for web-site testing
US9171097B2 (en) * 2009-03-31 2015-10-27 Qualcomm Incorporated Memoizing web-browsing computation with DOM-based isomorphism
US20160019309A1 (en) * 2014-07-18 2016-01-21 Oracle International Corporation Modifying digital content based upon usage patterns
US9998521B2 (en) * 2015-01-08 2018-06-12 Instart Logic, Inc. HTML streaming
WO2016112354A2 (en) * 2015-01-08 2016-07-14 Instart Logic, Inc. Html streaming
US10248641B2 (en) * 2017-03-31 2019-04-02 Mckesson Corporation Method, apparatus, and computer program product for managing retrieval of content for display by a browser
US10783316B2 (en) * 2018-02-26 2020-09-22 Servicenow, Inc. Bundled scripts for web content delivery

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8645823B1 (en) * 2008-10-28 2014-02-04 Adobe Systems Incorporated Converting static websites to resolution independent websites in a web development environment
CN102262627A (zh) * 2010-05-24 2011-11-30 卓望数码技术(深圳)有限公司 一种网页分割方法和网页分割系统
CN102375851A (zh) * 2010-08-23 2012-03-14 中国移动通信有限公司 一种显示页面的方法及设备
CN103544176A (zh) * 2012-07-13 2014-01-29 百度在线网络技术(北京)有限公司 用于生成多个页面所对应的页面结构模板的方法和设备
CN103544178A (zh) * 2012-07-13 2014-01-29 百度在线网络技术(北京)有限公司 一种用于提供与目标页面相对应的重构页面的方法和设备
US20160170947A1 (en) * 2012-07-31 2016-06-16 Instart Logic, Inc. Efficient delivery of content by virtualization of dynamic interaction with the document object model
CN105786894A (zh) * 2014-12-22 2016-07-20 广州市动景计算机科技有限公司 页面展示方法和页面展示设备

Also Published As

Publication number Publication date
CN109670133B (zh) 2021-04-02
CN109670133A (zh) 2019-04-23
EP3901790A4 (en) 2022-02-16
US20210357464A1 (en) 2021-11-18
EP3901790A1 (en) 2021-10-27

Similar Documents

Publication Publication Date Title
CN110263275B (zh) 一种访问网页的方法、装置、移动终端和存储介质
WO2017113060A1 (zh) web网站的访问方法、装置及Web网站系统
EP3172680B1 (en) Fast rendering of websites containing dynamic content and stale content
US8219633B2 (en) Acceleration of web pages access using next page optimization, caching and pre-fetching
CN105095280B (zh) 一种浏览器缓存方法和装置
US20120084346A1 (en) Page Loading Optimization Using Page-Maintained Cache
US8225192B2 (en) Extensible cache-safe links to files in a web page
US20100131585A1 (en) Displaying information in a client/server system
US8516041B1 (en) Pre-fetching asynchronously requested content
US11474796B1 (en) Build system for distributed applications
CN101098248A (zh) 一种基于配置描述文件实现通用网络管理的方法及系统
US9547633B2 (en) Methods for extending a selector application programming interface and devices thereof
CN102946442A (zh) 基于智能刷新的文件更新发布的方法和系统
US10742764B2 (en) Web page generation system
EP3107010B1 (en) Data integration pipeline
WO2018120436A1 (zh) 一种flash应用的版本控制方法和系统
WO2020124720A1 (zh) 一种页面的公共组件的确定方法、服务器及存储介质
CN114489916A (zh) 可视化大屏页面组件的加载方法和装置
US20210334113A1 (en) Method and device for lazy loading of js scripts
CN107688650B (zh) 一种web页面生成方法和装置
CN109561131A (zh) 一种基于编程语言下载excel数据的方法及电子设备
CN104461509A (zh) 一种信息交互架构及方法
Chen et al. Optimization research and application of enterprise website based on web service
WO2020013724A1 (ru) Способ управления данными веб-сайта
CN104468740A (zh) 一种网页传输智能处理系统及其方法

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: 19900453

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2019900453

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2019900453

Country of ref document: EP

Effective date: 20210722