WO2015161658A1 - Procédé et dispositif de chargement de ressources de pages web - Google Patents

Procédé et dispositif de chargement de ressources de pages web Download PDF

Info

Publication number
WO2015161658A1
WO2015161658A1 PCT/CN2014/093700 CN2014093700W WO2015161658A1 WO 2015161658 A1 WO2015161658 A1 WO 2015161658A1 CN 2014093700 W CN2014093700 W CN 2014093700W WO 2015161658 A1 WO2015161658 A1 WO 2015161658A1
Authority
WO
WIPO (PCT)
Prior art keywords
webpage
webpage resource
identifier
resource
original
Prior art date
Application number
PCT/CN2014/093700
Other languages
English (en)
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 WO2015161658A1 publication Critical patent/WO2015161658A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to the field of mobile communication technologies, and in particular, to a webpage resource loading method and apparatus.
  • a web page is composed of an html file and a css style file, a js style file, a picture, and the like.
  • the html file is a main resource, and other files are sub-resources.
  • the mobile terminal browser When the mobile terminal browser is used to browse a certain webpage for the first time, the webpage file needs to be all loaded onto the mobile terminal from the server through the network for display. After the first browsing, part of the content of the webpage can be cached on the mobile terminal.
  • the mobile terminal browser sets the html file as a non-cacheable file, and the cacheable files are css style files, js style files, and picture files.
  • you browse the page again you can only load the resources of the uncached html file part, which can increase the loading speed and save some traffic.
  • the average size of an html file in a web page is 37.55 KB, which is 12% of the page size. Therefore, although the html file is only reloaded when browsing the web page again, the loading takes a long time and the data traffic consumed is very large.
  • the embodiment of the present invention provides a method and a device for loading a webpage resource, which can prevent the webpage from being repeatedly loaded when the webpage of the mobile terminal browses the webpage again, which can not only shorten the loading time but also save traffic.
  • an embodiment of the present invention provides a method for loading a webpage resource, where the method includes: receiving request information sent by a client, where the request information includes a webpage address corresponding to the webpage resource and an original identifier corresponding to the webpage resource.
  • the middleware server obtains the webpage resource corresponding to the webpage address, and determines the identifier of the latest version corresponding to the webpage address; when the original identifier is different from the identifier of the latest version, the original webpage corresponding to the original identifier is calculated.
  • a second aspect a method for loading a webpage resource, comprising: sending request information to a middleware server, where the request information includes a webpage address corresponding to the webpage resource and an original identifier corresponding to the webpage resource; and receiving the return of the middleware server The identifier of the latest version corresponding to the webpage resource, and the difference data of the original webpage resource and the new webpage resource; generating the new webpage resource by using the difference data and the original webpage resource for loading.
  • the embodiment of the present invention further provides a webpage resource loading device and a storage medium and a program, which are respectively corresponding to the first aspect, the second aspect, and the third aspect.
  • the method and device for loading a webpage resource provided by the embodiment of the present invention, when the middleware server receives the request information of the webpage address and the original identifier corresponding to the webpage resource sent by the client, determining the webpage The ID of the latest version corresponding to the address.
  • the new webpage resource corresponding to the latest version of the identifier is updated compared to the original webpage resource, and the difference between the original webpage resource and the new webpage resource is calculated.
  • Data the difference data is sent to the client.
  • the difference data and the original webpage resource are used to generate, by the client, the new webpage resource according to the preset rule.
  • the webpage resources requested by the client are updated, only the difference data of the updated part is loaded, which not only shortens the loading time but also saves traffic.
  • FIG. 1 is a flowchart of a method for loading a first method of webpage resource loading according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for loading a webpage resource according to a second embodiment of the present invention
  • FIG. 3 is a flowchart of a method for loading a webpage resource according to a third embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a first embodiment of a webpage resource loading apparatus according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a second implementation manner of a webpage resource loading apparatus according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of a third embodiment of a webpage resource loading apparatus according to an embodiment of the present invention.
  • the present invention introduces a middleware server, which is a proxy server of a client, and puts a modification of a client and a server into the middleware server, so that the technical solution of the present invention Has good compatibility.
  • FIG. 1 is a flowchart of a method for loading a webpage resource according to a first embodiment of the present invention. The method includes:
  • Step S101 Receive request information sent by the client.
  • the request information When the client requests to access the A webpage for the first time, the request information includes the webpage address of the A webpage, and the middleware server obtains the webpage resource of the A webpage according to the webpage address; when the client is Nth (N is greater than or equal to 2)
  • the request information includes not only the webpage address of the webpage of A, but also the identifier corresponding to the webpage resource when the webpage was last visited.
  • the webpage address corresponding to the A webpage in the middleware server can store multiple versions of webpage resources, and each version of the webpage resource corresponds to one identifier.
  • the identifier included in the request information is used as the original identifier, and the original identifier corresponds to the original identifier.
  • the web resource is used as the original web resource.
  • the embodiment of the present invention can satisfy various application scenarios, and the client can be an intelligent mobile terminal, an IPAD, a computer, etc.; the middleware server can be set in a network that establishes a communication connection with the client.
  • Step S102 Determine an identifier of the latest version corresponding to the webpage resource.
  • the webpage resource of the A webpage is continuously updated, and each updated version generates an identifier uniquely corresponding to the webpage resource of the version.
  • the middleware server may store multiple updated versions of the webpage A. Web resources, each updated version corresponds to an identifier.
  • the webpage resources of the A webpage may not have an updated version at this time, and the original webpage resource is the current latest version of the webpage resource.
  • the identifier of the latest version refers to the identifier corresponding to the current latest version of the webpage resource.
  • the latest version of the identifier may be determined from all the identifiers read by reading all the identifiers corresponding to the webpage address of the A webpage in the middleware server. It can be seen that the setting of the logo can be clearly cleared. Chu indicates whether there is an update of the webpage resource, and it is more convenient and quick to find the webpage resources of different versions by looking up the identifier.
  • Step S103 When the original identifier is different from the identifier of the latest version, calculate difference data of the new webpage resource corresponding to the original webpage resource corresponding to the original identifier and the latest webpage resource according to the preset rule.
  • the new webpage resource corresponding to the identifier of the latest version is different from the original webpage resource content corresponding to the original identifier, that is, the new webpage resource is The current version of the webpage resource, and then calculating the difference data between the new webpage resource and the original webpage resource according to a preset rule or algorithm, thereby accurately and conveniently obtaining the updated part of the webpage resource and the updated content.
  • the original identifier by comparing the original identifier with the new identifier, it is determined whether the webpage resource is updated. Compared with directly comparing the webpage resources, the compared content is greatly reduced, which makes the comparison process more convenient and quick, and the operation process is simpler.
  • Step S104 Send the difference data to the client.
  • the client only the difference data including the updated part and the updated content is sent to the client, and the client obtains the new webpage resource on the basis of the original webpage resource by using the same preset rule or algorithm as the difference data.
  • the client obtains the new webpage resource on the basis of the original webpage resource by using the same preset rule or algorithm as the difference data.
  • the middleware server when the middleware server sends the difference data to the client, the latest version identifier corresponding to the new webpage resource may be sent to the client.
  • the latest version of the identifier is used to mark the new webpage. Resources.
  • the latest version of the identifier is sent to the middleware server as the original identifier.
  • the webpage resource loading method determines the webpage address when the middleware server receives the request information of the webpage address and the original identifier corresponding to the original webpage resource sent by the client. Corresponding to the latest version of the logo.
  • the new webpage resource corresponding to the latest version of the identifier is updated compared to the original webpage resource, and the difference between the original webpage resource and the new webpage resource is calculated.
  • Data the difference data is sent to the client.
  • the difference data and the original webpage resource are used to generate, by the client, the new webpage resource according to the preset rule.
  • the webpage resources requested by the client are updated, only the difference data of the updated part is loaded, which not only shortens the loading time but also saves traffic.
  • FIG. 2 is a flowchart of a method for loading a webpage resource according to a second embodiment of the present invention, where the method includes:
  • Step S201 Receive request information sent by the client.
  • the middleware server searches whether the webpage resource corresponding to the webpage address is stored according to the webpage address of the webpage included in the request information, and if the webpage resource is valid, The webpage resource and its corresponding identifier are sent to the client, and details about whether the webpage resource is valid are described in the following description of the embodiment.
  • the client saves the webpage resource and its corresponding identifier.
  • the webpage address and the stored identifier are sent to the middleware server, when the webpage resource has a new version of the webpage resource with the updated version.
  • the received identifier is used as the original identifier to search for the corresponding original webpage resource, and the difference data between the original webpage resource and the new webpage resource is calculated.
  • the identifiers in the embodiments of the present invention are generated by using a hash algorithm or other computer algorithms according to the content of the webpage resources. Therefore, different webpage resources correspond to unique identifiers.
  • the generation of the identification by a hash algorithm or other computer algorithm is a technique well known to those skilled in the art, and the present invention will not be described herein.
  • Step S202 It is determined whether a valid webpage resource corresponding to the webpage address is stored; when it is stored, step S203 is performed; otherwise, step S211 is performed.
  • the middleware server in order to improve the utilization rate of the middleware server, can establish a connection with multiple clients, so that the middleware server can store webpage resources of a plurality of different webpages, and each webpage corresponds to multiple different versions. Web resources. Due to the limited storage space of the middleware server and the different update speeds of some web pages, for example, the update frequency of Sina Weibo is very high, and the update frequency of the NetEase portal website is relatively low. Therefore, the webpage resources stored in the middleware server are all set to have an expiration date. In the present application, the webpage resource in the validity period is called a valid webpage resource, and when the expiration date is exceeded, the webpage resource is considered to be in an invalid state, and is called an invalid webpage resource.
  • the middleware server clears the webpage resource, and not only can reasonably utilize the storage space of the middleware server, but also can timely update the webpage resource in the middleware server.
  • the webpage resources corresponding to the same webpage address have the same validity period.
  • the validity period of the webpage resource can be set by the duration, and the effective duration of the webpage resources of different webpages can be set differently.
  • the effective duration of the webpage can be set to one week, and the effective duration of the microblogging website can be set to ten minutes.
  • the preset time to clear after the web resource is invalid can also be set by itself.
  • Duration setting The invention can be set according to the update frequency of the webpage and the number of times of browsing, and the present invention does not limit this.
  • the middleware server After receiving the request information of the A webpage, the middleware server searches whether the webpage resource is stored according to the webpage address, and when the webpage resource is stored, determines whether the stored webpage resource is valid, and takes different measures according to different states of the webpage resource. .
  • Step S203 Find all the identifiers corresponding to the webpage address.
  • the middleware server When the webpage resource stored in the middleware server is valid, all the updated versions of the A webpage to the current reading are determined. As can be seen from the above description, many webpage resources are updated very quickly, and each time a user browses, the user must browse the latest webpage resources that the user browses.
  • the middleware server sends the currently stored valid original webpage resource to the request when receiving the request information of the other client requesting access to the A webpage for the first time.
  • the client causes the middleware server to fail to get the latest version of the webpage resource in the state where the stored webpage resources of the A webpage are valid.
  • the middleware server periodically interacts with the target server of the A webpage during the validity period of the webpage resource of the A webpage, and when the webpage resource of the webpage has an updated version, The updated version is sent to the middleware server, and when the webpage resource of the A webpage has no updated version, the notification information is sent to the middleware server.
  • all the identifiers corresponding to the webpage address can be found by the webpage address of the A webpage included in the request information.
  • the webpage address of the webpage can be used as the root directory, and when the webpage resource received by the terminal server is the webpage resource under the webpage address, the webpage resource is stored in the webpage address directory.
  • the webpage address may be first found, and then all the identifiers under the webpage address are searched, which is convenient and quick.
  • the method for the present invention to find all the identifiers of the A webpage includes but is not limited thereto.
  • Step S204 Extract the identifier of the latest version from all the identifiers found.
  • the middleware server can simultaneously save the time of storing each version of the webpage when storing the webpage resource, and extract the webpage resource with the latest storage time when extracting the latest version of the identifier.
  • the storage time can also be used as the start time of the validity period.
  • the identification sequence of the updated version of the webpage resource is sequentially labeled, and when the latest version of the identifier is extracted, the identifier with the largest number is directly extracted.
  • Step S205 determining whether the original identifier is the same as the identifier of the latest version, if the original identifier and the identifier The identification of the latest version is different, and step S206 is performed; otherwise, step S210 is performed.
  • the identifiers of the webpage resources of different versions of the A webpage are different.
  • whether the webpage of the webpage is updated by comparing whether the original logo and the latest version of the logo are the same, if not, the latest version is indicated.
  • the new webpage resource version corresponding to the identifier is a new version, respectively reading the new webpage resource and the original webpage resource, and calculating the difference data of the two; when the original identifier is the same as the latest version of the identifier, the original webpage resource is Currently, the latest version of the web page resource, the client directly reads the original web page resource cached by itself.
  • the method described in this embodiment does not need to load a large amount of data of a webpage resource regardless of whether the webpage has an updated version of the webpage resource, which saves loading time and saves traffic.
  • Step S206 It is determined whether the original identifier is stored. If yes, step S207 is performed; otherwise, step S214 is performed.
  • the webpage resource is set in the middleware server with a storage expiration date.
  • the original webpage resource stored in the middleware server and the original webpage resource corresponding to the original identifier may be invalid, or been deleted.
  • the original identifier stored in the middleware server and its corresponding original webpage resource have been deleted. At this time, the original identifier is not stored in the middleware server.
  • step S206 and step S205 may be replaced with each other.
  • step S205 is performed.
  • step S207 is performed.
  • the execution sequence of step S205 and step S206 does not affect the implementation of the technical solution of the present invention, and will not be described in detail herein.
  • Step S207 Read the original webpage resource corresponding to the original identifier.
  • the new webpage resource corresponding to the A webpage has data update with the original webpage resource. If the original webpage resource is stored in the middleware server, the original webpage resource is read to facilitate calculation of the content updated relative to the original webpage resource.
  • Step S208 Calculate difference data of the new webpage resource corresponding to the original webpage resource corresponding to the original identifier and the latest webpage identifier according to the preset rule.
  • the manner of calculating the difference data between the new webpage resource and the original webpage resource may include: calculating the file content and calculating the binary data.
  • the webpage resource corresponding to the A webpage can calculate the difference data through the file content:
  • the content of a part of the original webpage resource is:
  • the generated difference file is:
  • -3 indicates that the original web resource file starts to change the file content on the third line
  • +3 indicates that the new web resource file starts to add the file content in the third line
  • the "-" sign indicates that the following content is deleted in the original web resource file
  • "+ “” indicates that the following content is added to the new web resource file
  • the modified file content is the content indicated in "”.
  • the difference data obtained finally includes: the starting point of the difference, the length of the difference data in the original web resource file, and the new The length and content of the difference data in the web resource file.
  • the binary data of the original web resource file is: AAAAAAAA
  • the binary data of the new web resource file is: AAABAAAA
  • the difference file will be recorded as: the difference data starting byte number of the original web resource file: 3, the length of the difference: 1 , the difference data starting byte number of the new web resource file: 3, the length of the difference data: 1, the content of the difference data: B.
  • Step S209 Send the difference data to the client.
  • the client after receiving the difference data, the client obtains the new webpage resource by calculating the difference data and the original webpage resource of the A webpage according to the inverse operation of the difference data, which is not described in this embodiment.
  • the A webpage requested by the client is a HyperText Markup Language (html) main document, it is represented by c.html in this embodiment.
  • html HyperText Markup Language
  • the client searches for an html main document with a similar webpage address under the same server that has been visited, In this embodiment, the document is recorded as d.html.
  • the request information sent by the client includes the web address of c.html and the original identifier of d.html.
  • the middleware server sends the webpage address of c.html to the target server, and obtains the webpage resource of c.html, and then calculates the difference data of the webpage resource of the d.html corresponding to the original webpage of the c.html webpage resource, and obtains the difference data.
  • the client can obtain the web resource of c.html according to the difference data and the web resource of d.html.
  • the webpage resource of the d.html stored by the client is used as the original webpage resource, and the corresponding identifier is used as the original identifier, and the webpage resource of the received c.html is used as the new webpage resource, and the downloading c is avoided compared with the prior art. All webpage resource data of html.
  • Step S210 Send notification information to the client.
  • the middleware server sends a notification message to the client, notifying the client that the webpage resource is not updated, and the client reads the original webpage resource stored by itself according to the notification information.
  • Step S211 Send the webpage address to the server.
  • the middleware server does not store the effective webpage resource finger, and the middleware server stores the webpage resource corresponding to the A webpage, but the stored webpage resource is invalid, or the middleware server does not store the corresponding webpage of the A webpage.
  • Web resources In either case, the available web resources corresponding to the A webpage are not stored in the middleware server.
  • the middleware server needs to reacquire the webpage to the target server corresponding to the webpage A. Web resources.
  • Step S212 Receive a new webpage resource sent by the server
  • the target server updates the webpage resource and only stores the latest version of the webpage resource
  • the middleware server sends the webpage address of the webpage to the target server
  • the target server sends the new webpage resource of the latest version
  • Step S213 Generate an identifier of the latest version according to the new webpage resource, and execute step S205.
  • the target server sends the new webpage resource corresponding to the A webpage to the middleware server, and the middleware server generates the latest version of the identifier according to the content of the new webpage resource, and stores the new webpage resource and the latest version of the identifier.
  • the middleware server extracts the latest version of the identifier, the step of comparing the latest version of the identifier with the original identifier is performed.
  • Step S214 Send the new webpage resource to the client.
  • the middleware server cannot obtain the original webpage resource according to the original identifier.
  • the client may not be calculated based on the last access of the client.
  • the updated part of the web resource Even if other versions of the webpage resources are stored, the difference data obtained by other versions of the webpage resources cannot be obtained by the same rules or algorithms on the basis of the original webpage resources. Therefore, when the middleware server does not store the original identifier, the new webpage resource can only be sent to the client, and the latest version of the identifier corresponding to the new webpage resource is sent to the client, so that the client requests the next access. Used when using A webpage.
  • the solution described in this implementation points out that when the middleware server does not store new webpage resources, or the stored network When the page resource is invalid, the middleware server interacts with the target server, and calculates the difference data between the new webpage resource and the original webpage resource. It can be seen that as long as the original webpage resource is stored in the middleware server, when there is a new webpage resource, the client can load only the difference data of the new webpage resource and the original webpage resource without loading all the webpage resources.
  • the present invention also shows a webpage resource loading method of the client.
  • the figure shows a flow chart of a method for loading a webpage resource loading method according to a third embodiment of the present invention.
  • the method includes:
  • Step S301 Send the request information to the middleware server.
  • This step corresponds to the implementation manner of the foregoing embodiment, and has been described in detail in the foregoing embodiment, and is not described herein again.
  • Step S302 Receive difference data sent by the middleware server.
  • the client when the webpage resource requested by the client requests the latest version of the new webpage resource, the client only loads the data of the updated part. Certainly, the client receives the difference data and also receives the identifier of the latest version corresponding to the new webpage resource, so that the currently stored webpage resource and the identifier can accurately correspond.
  • Step S303 Calculate the difference data and the original webpage resource according to a preset rule to obtain a new webpage resource.
  • the difference data and the original web resource are obtained by using a preset rule or algorithm to obtain a new web resource.
  • the preset rule for obtaining the difference data is an algorithm
  • the calculation of the new webpage resource by using the difference data is an inverse operation of the unified preset rule of the algorithm.
  • Step S304 Display content of the new webpage resource.
  • the client After receiving the new webpage resource, the client displays the new webpage resource, and writes the new webpage resource and the latest version of the identifier into the cache.
  • the identifier of the latest version stored in this time is sent to the middleware server as the original identifier. If the webpage resource has an updated version, the difference data is obtained based on the newly stored webpage resource, and the amount of the difference data can be reduced. To further save load traffic.
  • displaying the new webpage resource includes the following three situations: first, when receiving the difference data sent by the middleware server, according to the difference data and the original webpage resource stored by the client Generating a new webpage resource and reading the new webpage resource; secondly, when receiving the notification information sent by the middleware server, it indicates that the webpage resource requested by the client does not have an updated version, and the client directly reads the original webpage stored by the client.
  • the resource can be; thirdly, when receiving the new webpage resource sent by the middleware server, the client directly reads the new webpage resource and simultaneously stores the new webpage resource.
  • the client needs to load the complete webpage resource, and the webpage resources frequently accessed by the user are stored in the middleware server. That is to say, in the webpage resource loading method of the embodiment of the present invention, even if the update frequency of the webpage resource with a high user access rate is high, the webpage resource data is not required to be loaded frequently, and the amount of data loaded is greatly reduced, thereby further reducing the amount of data loaded. The traffic consumption of the client.
  • the webpage resource loading method determines that the webpage address corresponds to when the middleware server receives the request information including the webpage address and the original identifier corresponding to the original webpage resource sent by the client.
  • the latest version of the logo When the original identifier is different from the latest version of the identifier, the new webpage resource corresponding to the latest version of the identifier is updated compared to the original webpage resource, and the difference between the original webpage resource and the new webpage resource is calculated. Data, the difference data is sent to the client.
  • the difference data and the original webpage resource are used to generate, by the client, the new webpage resource according to the preset rule.
  • the webpage resources requested by the client are updated, only the difference data of the updated part is loaded, which not only shortens the loading time but also saves traffic.
  • the embodiment of the present invention further provides a webpage resource loading device, as shown in FIG. 4, which is a schematic structural diagram of a first embodiment of a webpage resource loading device according to an embodiment of the present invention.
  • the device includes: a receiving unit 11, a determining unit 12, a calculating unit 13, and a sending unit 14, wherein the receiving unit 11 is configured to receive request information sent by the client, where the request information includes a webpage corresponding to the original webpage resource.
  • the webpage resource loading device of the embodiment determines the identifier of the latest version corresponding to the webpage address when the middleware server receives the request information of the webpage address and the original identifier corresponding to the original webpage resource sent by the client.
  • the new webpage resource corresponding to the latest version of the identifier is updated compared to the original webpage resource, and the difference between the original webpage resource and the new webpage resource is calculated.
  • Data the difference data is sent to the client.
  • the difference data and the original webpage resource are used to generate, by the client, the new webpage resource according to the preset rule.
  • the webpage resources requested by the client are updated, only the difference data of the updated part is loaded, which not only shortens the loading time but also saves traffic.
  • FIG. 5 it is a schematic structural diagram of a second implementation manner of a webpage resource loading apparatus according to an embodiment of the present invention.
  • the device comprises: a receiving unit 21, a determining unit 22, a first determining unit 23, a second determining unit 24, a reading unit 25, a calculating unit 26 and a transmitting unit 27, wherein the receiving unit 21, the determining unit
  • the calculation unit 26 and the sending unit 27 are similar to those in the above embodiment, and the present invention will not be described herein.
  • the first determining unit 23 is configured to determine whether the original identifier is the same as the identifier of the latest version, and the second determining unit 24 is configured to determine, by the second determining unit, whether the original identifier is stored.
  • the reading unit 25 is configured to read the original webpage resource corresponding to the original identifier when the original identifier is stored.
  • the determining unit 22 includes a determining module, and the determining module is configured to determine whether a valid webpage resource corresponding to the webpage address is stored.
  • the determining unit 22 is configured to search for all the identifiers corresponding to the webpage address; extract the identifier of the latest version from all the found identifiers;
  • the determining unit 22 is configured to send the webpage address to the server; receive a new webpage resource sent by the server; and generate the latest version according to the new webpage resource.
  • the sending unit 27 is further configured to send notification information to the client when the original identifier is the same as the identifier of the latest version, where the notification information is used to notify the client.
  • the end reads the original webpage resource.
  • the sending unit 27 is further configured to send notification information to the client when the original identifier is the same as the identifier of the latest version, where the notification information is used to notify the client. Reading the original webpage resource.
  • the solution described in this implementation indicates that when the new webpage resource is not stored in the middleware server, or the stored webpage resource is invalid, the middleware server interacts with the target server, and calculates the difference between the new webpage resource and the original webpage resource.
  • the process of data It can be seen that as long as the original webpage resource is stored in the middleware server, when there is a new webpage resource, the client can load only the difference data of the new webpage resource and the original webpage resource without loading all the webpage resources.
  • FIG. 6 is a schematic structural diagram of a third embodiment of a webpage resource loading apparatus according to an embodiment of the present invention.
  • the apparatus includes: a sending unit 31, a receiving unit 32, a calculating unit 33, and a display unit 34.
  • the sending unit 31 is configured to send the request information to the middleware server, where the request information includes a webpage address corresponding to the original webpage resource and an original identifier corresponding to the original webpage resource, and the receiving unit 32 is configured to receive the middle
  • the difference data sent by the server is configured to calculate the difference data and the original webpage resource according to a preset rule to obtain a new webpage resource
  • the display unit 34 is configured to display the new webpage resource content.
  • the webpage resource loading device of the embodiment determines the identifier of the latest version corresponding to the webpage address when the middleware server receives the request information of the webpage address and the original identifier corresponding to the original webpage resource sent by the client.
  • the new webpage resource corresponding to the latest version of the identifier is updated compared to the original webpage resource, and the difference between the original webpage resource and the new webpage resource is calculated.
  • Data the difference data is sent to the client.
  • the difference data and the original webpage resource are used to generate, by the client, the new webpage resource according to the preset rule.
  • the webpage resources requested by the client are updated, only the difference data of the updated part is loaded, which not only shortens the loading time but also saves traffic.
  • the present invention is applicable to a wide variety of general purpose or special purpose computing system environments or configurations.
  • the invention may be described in the general context of computer-executable instructions executed by a computer, such as a program module.
  • program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • the invention may also be practiced in distributed computing environments in these distributed computing environments The task is performed by a remote processing device that is connected through a communication network.
  • program modules can be located in both local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (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

L'invention concerne un procédé de chargement de ressources de pages web, comportant les étapes consistant à: recevoir des informations de demande envoyées par un client, les informations de demande comportant une adresse de page web correspondant à une ressource d'origine de page web et un identifiant d'origine correspondant à la ressource d'origine de page web; déterminer un identifiant d'une version la plus récente correspondant à l'adresse de page web; lorsque l'identifiant d'origine est différent de l'identifiant de la version la plus récente, calculer des données d'écart entre la ressource d'origine de page web correspondant à l'identifiant d'origine et une nouvelle ressource de page web correspondant à l'identifiant de la version la plus récente; et envoyer les données d'écart au client, les données d'écart et la ressource d'origine de page web étant utilisées pour générer la nouvelle ressource de page web pour le client selon une règle prédéfinie. L'invention concerne également un dispositif de chargement de ressources de pages web. En comparaison de l'état antérieur de la technique, le procédé et le dispositif de chargement de ressources de pages web décrits dans les modes de réalisation de la présente invention peuvent non seulement raccourcir le temps de chargement mais peuvent également économiser du trafic, car seules les données d'écart de la partie mise à jour sont chargées lorsqu'une ressource de page web à laquelle le client demande à accéder est mise à jour.
PCT/CN2014/093700 2014-04-25 2014-12-12 Procédé et dispositif de chargement de ressources de pages web WO2015161658A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410172691.3A CN105095226B (zh) 2014-04-25 2014-04-25 网页资源加载方法及装置
CN201410172691.3 2014-04-25

Publications (1)

Publication Number Publication Date
WO2015161658A1 true WO2015161658A1 (fr) 2015-10-29

Family

ID=54331707

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/093700 WO2015161658A1 (fr) 2014-04-25 2014-12-12 Procédé et dispositif de chargement de ressources de pages web

Country Status (2)

Country Link
CN (1) CN105095226B (fr)
WO (1) WO2015161658A1 (fr)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109948087A (zh) * 2017-12-05 2019-06-28 广东欧珀移动通信有限公司 网页资源的获取方法、装置及终端
CN110362333A (zh) * 2019-06-29 2019-10-22 上海淇馥信息技术有限公司 一种客户端升级阻碍的快速解决方法、装置和电子设备
CN112817700A (zh) * 2021-02-25 2021-05-18 北京顶象技术有限公司 客户端脚本主动更新的实现方法、装置及计算机设备
CN112966205A (zh) * 2021-04-21 2021-06-15 平安好医投资管理有限公司 网页打开方法、装置、电子设备及存储介质
CN113010811A (zh) * 2019-12-20 2021-06-22 北京百度网讯科技有限公司 网页获取方法、装置、电子设备及计算机可读存储介质
CN113472888A (zh) * 2021-07-07 2021-10-01 挂号网(杭州)科技有限公司 网页访问方法、装置、服务器设备及存储介质

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607927A (zh) * 2015-12-18 2016-05-25 小米科技有限责任公司 页面显示方法及装置
CN106933865A (zh) * 2015-12-31 2017-07-07 北京五八信息技术有限公司 移动应用程序网页应用的资源加载方法及装置
CN105956005B (zh) * 2016-04-20 2019-06-07 曹屹 一种数据处理方法和设备
CN107404508B (zh) * 2016-05-20 2021-04-27 阿里巴巴集团控股有限公司 客户端页面的访问方法、客户端及电子设备
CN106294844A (zh) * 2016-08-19 2017-01-04 乐视控股(北京)有限公司 浏览器网页加载处理方法及装置
CN106528587B (zh) * 2016-09-12 2020-12-08 腾讯科技(深圳)有限公司 复合网页系统中页面的展示方法和装置
CN109241474B (zh) * 2017-07-11 2022-08-05 阿里巴巴集团控股有限公司 页面信息的提供、展示、发布方法、服务器及客户端
CN107528896B (zh) * 2017-08-18 2021-11-09 腾讯科技(深圳)有限公司 一种访问信息处理方法、装置和计算机存储介质
CN110555118B (zh) * 2018-03-28 2022-08-16 武汉斗鱼网络科技有限公司 一种加载图片的方法及装置
CN109376320B (zh) * 2018-09-26 2021-01-15 苏州浪潮智能科技有限公司 网页界面的数据项更新方法和装置
CN109359259A (zh) * 2018-09-27 2019-02-19 广州酷狗计算机科技有限公司 加载网页的方法及装置
CN109819033A (zh) * 2019-01-25 2019-05-28 杭州迪普科技股份有限公司 一种资源文件加载方法及系统
CN111741038B (zh) * 2019-03-25 2022-02-25 华为技术有限公司 数据传输方法和数据传输装置
CN110795674B (zh) * 2019-10-30 2022-08-09 恩亿科(北京)数据科技有限公司 一种配置更新方法及装置
CN111506786B (zh) * 2020-03-06 2023-10-27 百度在线网络技术(北京)有限公司 网页更新的方法、装置、电子设备和计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741986A (zh) * 2009-12-31 2010-06-16 优视科技有限公司 一种用于移动通讯设备终端的页面缓存方法
CN102724297A (zh) * 2012-05-25 2012-10-10 上海传漾网络科技有限公司 一种bs架构广告管理系统中提高访问速度的方法
CN103428188A (zh) * 2012-05-25 2013-12-04 北京小米科技有限责任公司 一种文件更新方法、装置及相关设备
CN103678330A (zh) * 2012-09-04 2014-03-26 北京新岸线移动多媒体技术有限公司 网页数据加载方法、系统及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6912591B2 (en) * 2001-05-02 2005-06-28 Science Application International Corporation System and method for patch enabled data transmissions
US7509635B2 (en) * 2003-09-26 2009-03-24 Red Hat, Inc. Software and data file updating process
CN102253941A (zh) * 2010-05-21 2011-11-23 卓望数码技术(深圳)有限公司 一种缓存更新方法和缓存更新装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741986A (zh) * 2009-12-31 2010-06-16 优视科技有限公司 一种用于移动通讯设备终端的页面缓存方法
CN102724297A (zh) * 2012-05-25 2012-10-10 上海传漾网络科技有限公司 一种bs架构广告管理系统中提高访问速度的方法
CN103428188A (zh) * 2012-05-25 2013-12-04 北京小米科技有限责任公司 一种文件更新方法、装置及相关设备
CN103678330A (zh) * 2012-09-04 2014-03-26 北京新岸线移动多媒体技术有限公司 网页数据加载方法、系统及装置

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109948087A (zh) * 2017-12-05 2019-06-28 广东欧珀移动通信有限公司 网页资源的获取方法、装置及终端
CN110362333A (zh) * 2019-06-29 2019-10-22 上海淇馥信息技术有限公司 一种客户端升级阻碍的快速解决方法、装置和电子设备
CN113010811A (zh) * 2019-12-20 2021-06-22 北京百度网讯科技有限公司 网页获取方法、装置、电子设备及计算机可读存储介质
CN113010811B (zh) * 2019-12-20 2024-03-26 北京百度网讯科技有限公司 网页获取方法、装置、电子设备及计算机可读存储介质
CN112817700A (zh) * 2021-02-25 2021-05-18 北京顶象技术有限公司 客户端脚本主动更新的实现方法、装置及计算机设备
CN112966205A (zh) * 2021-04-21 2021-06-15 平安好医投资管理有限公司 网页打开方法、装置、电子设备及存储介质
CN113472888A (zh) * 2021-07-07 2021-10-01 挂号网(杭州)科技有限公司 网页访问方法、装置、服务器设备及存储介质
CN113472888B (zh) * 2021-07-07 2024-01-05 挂号网(杭州)科技有限公司 网页访问方法、装置、服务器设备及存储介质

Also Published As

Publication number Publication date
CN105095226A (zh) 2015-11-25
CN105095226B (zh) 2019-08-02

Similar Documents

Publication Publication Date Title
WO2015161658A1 (fr) Procédé et dispositif de chargement de ressources de pages web
CN110263275B (zh) 一种访问网页的方法、装置、移动终端和存储介质
US9077681B2 (en) Page loading optimization using page-maintained cache
CN105930528B (zh) 一种网页缓存的方法及服务器
WO2017113060A1 (fr) Procédé et dispositif d'accès à un site web, et système de site web
US10146750B2 (en) Method, apparatus, terminal, and storage medium for image processing
WO2015074467A1 (fr) Procédé, appareil et système de mise à jour de données et support de stockage
WO2018001124A1 (fr) Procédé d'envoi de fichier de page web, procédé et appareil de rendu de page web, et système de rendu de page web
US20120331372A1 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
CN109376318B (zh) 一种页面加载方法、计算机可读存储介质及终端设备
US9088462B2 (en) Common web accessible data store for client side page processing
US11080322B2 (en) Search methods, servers, and systems
CN104572843A (zh) 一种页面的加载方法及装置
US20160344842A1 (en) Identifying content files in a cache using a response-based cache index
CN105468707A (zh) 一种基于缓存的数据处理方法及装置
US20140006918A1 (en) Method and system for web page rearrangement
CN106354792B (zh) 网页显示方法及装置
CN107688650B (zh) 一种web页面生成方法和装置
US10129363B2 (en) Plug-in cache
US20160037509A1 (en) Techniques to reduce bandwidth usage through multiplexing and compression
CN107229655B (zh) 页面静态文件的更新方法、装置及系统
CN109002557B (zh) 基于浏览器缓存机制优化网页加载速度的方法、电子设备
WO2015035899A1 (fr) Procédés de recherche et terminaux
CN103793459B (zh) 一种网页打开方法及装置
WO2022135410A1 (fr) Procédé et appareil permettant de charger un fichier source

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

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

Country of ref document: EP

Kind code of ref document: A1