Movatterモバイル変換


[0]ホーム

URL:


CN104778063A - Method and device for updating resource - Google Patents

Method and device for updating resource
Download PDF

Info

Publication number
CN104778063A
CN104778063ACN201510181433.6ACN201510181433ACN104778063ACN 104778063 ACN104778063 ACN 104778063ACN 201510181433 ACN201510181433 ACN 201510181433ACN 104778063 ACN104778063 ACN 104778063A
Authority
CN
China
Prior art keywords
resource
updated
client
new
version information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510181433.6A
Other languages
Chinese (zh)
Inventor
农智琳
刘方
张鹏飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi IncfiledCriticalXiaomi Inc
Priority to CN201510181433.6ApriorityCriticalpatent/CN104778063A/en
Publication of CN104778063ApublicationCriticalpatent/CN104778063A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

The invention discloses a method and a device for updating a resource. The method comprises the following steps of receiving a resource updating request sent by a client side, wherein the version information of the current resource of the client side is carried in the resource updating request; judging whether a resource to be updated exists or not according to the version information of the current resource of the client side; if the resource to be updated exists, returning the updating path of the resource to be updated to the client side, so that the client side downloads the resource to be updated according to the updating path. Through the technical scheme provided by the invention, by using the method and the device for updating the resource, the speed rate of loading a page of the client side can be promoted; meanwhile, a newest page can be loaded to be browsed by a user; user experience is promoted.

Description

Resource regeneration method and device
Technical field
The disclosure relates to communication technical field, particularly relates to a kind of resource regeneration method and device.
Background technology
Along with the development of Internet technology and intelligent terminal, the type that can be loaded in the APP (Application, application software) that intelligent terminal runs is also more and more abundanter.At present, the mixed type APP (hybrid APP) that mixes with native of the html5 page due to have cost few, develop the advantage such as fast and become the trend that APP develops gradually.
Mixed type APP can download the various static resources of the composition page from service end when load page first, when the resource of service end has renewal, more again download from service end, this overlong time that the page will be caused to load, affect Consumer's Experience.In correlation technique, the resource that also first can load buffer memory is browsed for user, and then from the various resources after service end down loading updating.But the page that under this mode, user browses is the old page, user needs again to refresh and can browse the up-to-date page, affects Consumer's Experience equally.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of resource regeneration method and device.
According to the first aspect of disclosure embodiment, a kind of resource regeneration method is provided, comprises:
Receive the resource updates request that client sends, in described resource updates request, carry the version information of client Current resource;
Judge whether to there is resource to be updated according to the version information of described client Current resource;
If there is resource to be updated, then return the more new route of resource to be updated to client, download described resource to be updated for client according to described more new route.
Optionally, the described version information according to described client Current resource judges whether to there is resource to be updated, comprising:
Search the client Current resource list that the described version information of preservation is corresponding;
Contrast the list of described client Current resource and up-to-date the Resources list, if the list of described client Current resource is consistent with described up-to-date the Resources list, then determine there is not resource to be updated, if the list of described client Current resource and described up-to-date the Resources list inconsistent, then determine to there is resource to be updated.
Optionally, the described more new route returning resource to be updated to client comprises:
Judge whether the more new resources bag generating described resource to be updated;
If generated the more new resources bag of described resource to be updated, then the path of described more new resources bag is returned to client as described more new route.
Optionally, also comprise:
If do not generate the more new resources bag of described resource to be updated, then generate the more new resources bag of described resource to be updated according to the version information of described Current resource, and the path of described more new resources bag is returned to client as described more new route.
Optionally, client release information is also carried in described resource updates request;
The described version information according to described Current resource generates the more new resources bag of described resource to be updated, comprising: select the resource to be updated of compatible client version with more new resources bag described in generating.
According to the second aspect of disclosure embodiment, a kind of resource regeneration method is provided, comprises:
Receive the resource load request that Web assembly sends;
Resource updates request is sent to service end according to described resource load request, the version information of Current resource is carried in described resource updates request, judge whether to there is resource to be updated for service end according to the version information of described Current resource, and when there is resource to be updated, return the more new route of resource to be updated;
Receive the more new route of the resource to be updated that service end returns;
Described resource to be updated is downloaded according to described more new route;
Described resource to be updated and described Current resource are sent to Web assembly, loads for Web assembly.
Optionally, described more new route is the path of the more new resources bag of described resource to be updated;
Described in described basis, more new route downloads described resource to be updated, comprising:
More new resources bag described in downloading according to the path of described more new resources bag.
Optionally, in described resource updates request, also carry client release information, select the resource to be updated of compatible client version to generate the more new resources bag of described resource to be updated for service end.
According to the third aspect of disclosure embodiment, a kind of resource updates device is provided, comprises:
First receiving element, for receiving the resource updates request that client sends, carries the version information of client Current resource in described resource updates request;
Upgrade judging unit, for judging whether to there is resource to be updated according to the version information of described client Current resource;
Path returns unit, for when there is resource to be updated, returns the more new route of resource to be updated to client, downloads described resource to be updated for client according to described more new route.
Optionally, described renewal judging unit comprises:
Search subelement, the client Current resource list that the described version information for searching preservation is corresponding;
Contrast subunit, for contrasting the list of described client Current resource and up-to-date the Resources list, when the list of described client Current resource is consistent with described up-to-date the Resources list, determine to there is not resource to be updated, the list of described client Current resource and described up-to-date the Resources list inconsistent time, determine to there is resource to be updated.
Optionally, described path returns unit and comprises:
Judgment sub-unit, for judging whether the more new resources bag generating described resource to be updated;
First returns subelement, for when generating the more new resources bag of described resource to be updated, the path of described more new resources bag is returned to client as described more new route.
Optionally, described path returns unit and also comprises:
Second returns subelement, for when not generating the more new resources bag of described resource to be updated, generate the more new resources bag of described resource to be updated according to the version information of described Current resource, and the path of described more new resources bag is returned to client as described more new route.
Optionally, client release information is also carried in described resource updates request;
Described second returns subelement comprises:
Generation module, for selecting the resource to be updated of compatible client version with more new resources bag described in generating.
According to the fourth aspect of disclosure embodiment, a kind of resource updates device is provided, comprises:
Second receiving element, for receiving the resource load request that Web assembly sends;
Update request unit, for sending resource updates request according to described resource load request to service end, the version information of Current resource is carried in described resource updates request, judge whether to there is resource to be updated for service end according to the version information of described Current resource, and when there is resource to be updated, return the more new route of resource to be updated;
Path acceptance units, for receiving the more new route of the resource to be updated that service end returns;
Resource downloading unit, for downloading described resource to be updated according to described more new route;
Resource transmitting element, for described resource to be updated and described Current resource are sent to Web assembly, loads for Web assembly.
Optionally, described more new route is the path of the more new resources bag of described resource to be updated;
Described resource downloading unit comprises:
Lower subelements, for more new resources bag described in downloading according to the path of described more new resources bag.
Optionally, in described resource updates request, also carry client release information, select the resource to be updated of compatible client version to generate the more new resources bag of described resource to be updated for service end.
According to the 5th aspect of disclosure embodiment, a kind of resource updates device is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the resource updates request that client sends, in described resource updates request, carry the version information of client Current resource;
Judge whether to there is resource to be updated according to the version information of described client Current resource;
If there is resource to be updated, then return the more new route of resource to be updated to client, download described resource to be updated for client according to described more new route.
According to the 6th aspect of disclosure embodiment, a kind of resource updates device is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the resource load request that Web assembly sends;
Resource updates request is sent to service end according to described resource load request, the version information of Current resource is carried in described resource updates request, judge whether to there is resource to be updated for service end according to the version information of described Current resource, and when there is resource to be updated, return the more new route of resource to be updated;
Receive the more new route of the resource to be updated that service end returns;
Described resource to be updated is downloaded according to described more new route;
Described resource to be updated and described Current resource are sent to Web assembly, loads for Web assembly.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Disclosure client can when load page, resource updates request is sent to service end, service end judges whether to there is resource to be updated according to the version information of the client Current resource carried in described resource updates request, and when there is resource to be updated, the path of resource to be updated is returned to client, to make client download described resource to be updated according to described more new route, promote the speed that the page loads.Meanwhile, the resource to be updated of Current resource and download can be returned to Web assembly by client, loads the up-to-date page and browses for user, promote Consumer's Experience to make Web assembly.
Disclosure service end can generate the resource updates bag of resource to be updated according to the resource updates request of client, avoid generating useless resource updates bag, saves the process resource of service end, promotes the handling property of service end.
Resource to be updated is packaged as more new resources bag by disclosure service end, and the path of more new resources bag is returned to client, client just can get all resources to be updated according to the path of described more new resources bag by a HTTP request, improve the speed of client downloads resource to be updated, and then promote Consumer's Experience.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the process flow diagram of a kind of resource regeneration method according to an exemplary embodiment.
Fig. 2 is the process flow diagram of the another kind of resource regeneration method according to an exemplary embodiment.
Fig. 3 is the process flow diagram of the another kind of resource regeneration method according to an exemplary embodiment.
Fig. 4 is the block diagram of a kind of resource updates device according to an exemplary embodiment.
Fig. 5 is the block diagram of the another kind of resource updates device according to an exemplary embodiment.
Fig. 6 is the block diagram of the another kind of resource updates device according to an exemplary embodiment.
Fig. 7 is the block diagram of the another kind of resource updates device according to an exemplary embodiment.
Fig. 8 is the block diagram of the another kind of resource updates device according to an exemplary embodiment.
Fig. 9 is the block diagram of the another kind of resource updates device according to an exemplary embodiment.
Figure 10 is the block diagram of the another kind of resource updates device according to an exemplary embodiment.
Figure 11 is a kind of structural representation for resource updates device according to an exemplary embodiment.
Figure 12 is the structural representation of the another kind according to an exemplary embodiment for resource updates device.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the process flow diagram of a kind of resource regeneration method according to an exemplary embodiment.
Please refer to Fig. 1, described resource regeneration method may be used for, in service end, comprising the following steps:
In step S101, receive the resource updates request that client sends, in described resource updates request, carry the version information of client Current resource.
In the present embodiment, client after the resource load request receiving embedded Web assembly transmission, can send resource updates request to confirm whether resource has renewal with service end to service end.Wherein, described resource includes: the various static resource files of webpage such as composition such as CSS (Cascading Style Sheets, CSS (cascading style sheet)) file, picture file etc.The version information of the resource of the current preservation of client is carried in described resource load request.
In step s 102, judge whether to there is resource to be updated according to the version information of described client Current resource.
Based on abovementioned steps S101, service end is after the resource updates request receiving client transmission, search the client Current resource list that the version information of the client Current resource version of preservation is corresponding, then the list of described client Current resource and up-to-date the Resources list is contrasted, when the list of described client Current resource and described up-to-date the Resources list inconsistent time, confirm to there is resource to be updated, described resource to be updated is the set of the resource in described up-to-date the Resources list in the list of non-described client Current resource.
In step s 103, if there is resource to be updated, then return the more new route of resource to be updated to client, download described resource to be updated for client according to described more new route.
Based on the judged result of abovementioned steps S102, when there is resource to be updated, service end can generate the more new resources bag of described resource to be updated, then the path of described more new resources bag is returned to client as the more new route of described resource to be updated, described resource to be updated is downloaded according to the path of described more new resources bag to make client, and described resource to be updated and Current resource are sent to Web assembly, load for Web assembly.
Described as can be seen from above, disclosure client can when load page, resource updates request is sent to service end, service end judges whether to there is resource to be updated according to the version information of the client Current resource carried in described resource updates request, and when there is resource to be updated, the path of resource to be updated is returned to client, to make client download described resource to be updated according to described more new route, promote the speed that the page loads.Meanwhile, the resource to be updated of Current resource and download can be returned to Web assembly by client, loads the up-to-date page and browses for user, promote Consumer's Experience to make Web assembly.
Fig. 2 is the process flow diagram of the another kind of resource regeneration method according to an exemplary embodiment.
Please refer to Fig. 2, described resource regeneration method may be used in the client of the application software that terminal is loaded, and described resource regeneration method can comprise the following steps:
In step s 201, the resource load request that Web assembly sends is received.
In the present embodiment, when user will by the Client browse page time, the embedded Web assembly of client can send resource load request to client, with the various resources needed for the request of loading page.Wherein, described resource includes: the static resource file of webpage such as composition such as CSS (Cascading Style Sheets, CSS (cascading style sheet)) file, picture file etc.
In step S202, send resource updates request according to described resource load request to service end.
Based on abovementioned steps S201, client, after the described resource load request receiving the transmission of Web assembly, sends resource updates request to service end, carries the version information of Current resource in described resource updates request.Service end, after receiving described resource updates request, can judge whether to there is resource to be updated according to the version information of described Current resource, and when there is resource to be updated, returns the more new route of resource to be updated.
In step S203, receive the more new route of the resource to be updated that service end returns.
In step S204, download described resource to be updated according to described more new route.
In the present embodiment, the more new route of described resource to be updated is the path of the more new resources bag of described resource to be updated, in this step, client can download according to the path of described more new resources bag described in more new resources bag, to obtain described resource to be updated.
In step S205, described resource to be updated and described Current resource are sent to Web assembly, loads for Web assembly.
Described as can be seen from above, disclosure client can when load page, resource updates request is sent to service end, service end judges whether to there is resource to be updated according to the version information of the client Current resource carried in described resource updates request, and when there is resource to be updated, the path of resource to be updated is returned to client, to make client download described resource to be updated according to described more new route, promote the speed that the page loads.Meanwhile, the resource to be updated of Current resource and download can be returned to Web assembly by client, loads the up-to-date page and browses for user, promote Consumer's Experience to make Web assembly.
Fig. 3 is the process flow diagram of the another kind of resource regeneration method according to an exemplary embodiment.
Please refer to Fig. 3, described resource regeneration method can comprise the following steps:
In step S301, client receives the resource load request that Web assembly sends.
In the present embodiment, client is the mixed type APP loaded in terminal, is embedded with Web assembly in described client, can carry out page browsing for user.When user wants browsing pages, user can click the button of specifying to trigger Web assembly, and Web assembly sends resource load request to client according to the triggering of user, with to the various resources needed for client-requested load page.
Wherein, client preserves the various resources needed for load page obtained from service end.Described resource includes: the static resource file of webpage such as composition such as CSS (Cascading Style Sheets, CSS (cascading style sheet)) file, picture file etc.
In step s 302, client sends resource updates request according to described resource load request to service end.
Based on abovementioned steps S301, client is after the described resource load request receiving the transmission of Web assembly, send resource updates request to service end, the version information of the Current resource that client stores is carried in described resource updates request, described version information is generated by service end, and the version information of its correspondence together can be returned to client when client Gains resources by service end.Described version information can be the version number of Current resource, and can be also the information such as the version date of Current resource, the disclosure make particular restriction to this.
In step S303, service end judges whether to there is resource to be updated according to the version information of the client Current resource carried in described resource updates request, if there is resource to be updated, then performs step S304.
In the present embodiment, service end preserves the version information of each resource version and the corresponding relation of the Resources list.Based on abovementioned steps S302, service end is after the resource updates request receiving client transmission, search the Resources list that the described version information of preservation is corresponding, i.e. the Current resource list of server side searches client, then contrast the list of described client Current resource and up-to-date the Resources list.If the list of described client Current resource is consistent with described up-to-date the Resources list, then illustrate that client Current resource is exactly up-to-date resource, there is not resource to be updated, the message that there is not resource to be updated can be returned to client, the Current resource of preservation can be returned to Web assembly by client, loads for Web assembly.If the list of described client Current resource and described up-to-date the Resources list inconsistent, then illustrate that client Current resource is not up-to-date resource, exists resource to be updated, perform step S304.Wherein, described resource to be updated is the set of the resource in described up-to-date the Resources list in the list of non-described client Current resource.
In step s 304, service end judges whether the more new resources bag generating described resource to be updated, if do not generate the resource bag of described resource to be updated, then performs step S305.If generated the more new resources bag of described resource to be updated, then perform step S306.
Based on the judged result of abovementioned steps S303 service end, if there is resource to be updated, then in this step, service end judges whether the more new resources bag generating described resource to be updated.The more new resources bag of described resource to be updated can be the zip bag of described resource to be updated, and namely the more new resources bag of described resource to be updated is the file will generated after all resource packings to be updated.If service end confirms the more new resources bag also not generating described resource to be updated, then perform step S305.If service end confirms the more new resources bag having generated described resource to be updated, then perform step S306.
In step S305, service end generates the more new resources bag of described resource to be updated according to the version information of described Current resource.
Based on the judged result of abovementioned steps S304 service end, if do not generate the more new resources bag of described resource to be updated, then illustrate and also do not have the client-requested of same asset version information to cross resource to be updated so far, in this step, service end obtains resource to be updated according to the version information of described Current resource, then described resource to be updated is packaged as more new resources bag, performs step S306.
In step S306, the path of described more new resources bag is returned to client as the more new route of described resource to be updated by service end.
Based on the judged result of abovementioned steps S304 service end, if generated the more new resources bag of described resource to be updated, then illustrate and had the client-requested of same asset version information to cross resource to be updated before this, in this step, the path of the more new resources bag of the resource described to be updated generated is returned to client as the more new route of described resource to be updated by service end.
In the present embodiment, service end generates the resource updates bag of resource to be updated according to the resource updates request of client, avoids generating useless resource updates bag, saves the process resource of service end, promotes the handling property of service end.
In step S307, client receives the path of the described more new resources bag that service end returns.
In step S308, client download according to the path of described more new resources bag described in more new resources bag.
Based on abovementioned steps S307, client behind the path receiving the more new resources bag that service end returns, more new resources bag described in can downloading according to the path of described more new resources bag, then described in decompress(ion) more new resources bag to obtain all resources to be updated.As can be seen here, in the present embodiment, resource to be updated is packaged as more new resources bag by service end, and the path of more new resources bag is returned to client, client passes through a HTTP (HyperText Transfer Protocol according to the path of described more new resources bag, HTML (Hypertext Markup Language)) ask just to get all resources to be updated, improve the speed of client downloads resource to be updated, and then promote Consumer's Experience.
In step S309, resource to be updated and Current resource are sent to Web assembly by client, load for Web assembly.
Based on abovementioned steps S308, described resource to be updated and the Current resource preserved, after download obtains resource to be updated, are sent to Web assembly, carry out page loading for Web assembly by client.
Described as can be seen from above, the present embodiment client can when load page, resource updates request is sent to service end, service end judges whether to there is resource to be updated according to the version information of the client Current resource carried in described resource updates request, and when there is resource to be updated, the path of resource to be updated is returned to client, to make client download described resource to be updated according to described more new route, promote the speed that the page loads.Meanwhile, the resource to be updated of Current resource and download can be returned to Web assembly by client, loads the up-to-date page and browses for user, promote Consumer's Experience to make Web assembly.
Optionally, in another embodiment of the disclosure, in abovementioned steps S302, client release information can be carried in described resource updates request and send to service end by client.Described client release information is generally the version number of client.Service end is after receiving the resource updates request carrying client release information, if determine to there is resource to be updated according to the version information of client Current resource, then can judge each resource to be updated whether compatible client version information successively, then select the resource to be updated of compatible client version with more new resources bag described in generating, and the path of this more new resources bag is returned to client, download the resource to be updated of compatible client version information according to the path of this more new resources bag for client, thus avoid not upgrading due to client release and causing downloading the long-tail problem that the resource to be updated that obtains cannot normally show.
Corresponding with aforementioned resource regeneration method embodiment, the disclosure additionally provides the embodiment of resource updates device.
Fig. 4 is the block diagram of a kind of resource updates device according to an exemplary embodiment.
Please refer to Fig. 4, described resource updates device 400 may be used for, in service end, including: the first receiving element 401, renewal judging unit 402 and path return unit 403.
Wherein, described first receiving element 401 is configured to: receive the resource updates request that client sends, carry the version information of client Current resource in described resource updates request;
Described renewal judging unit 402 is configured to: judge whether to there is resource to be updated according to the version information of described client Current resource;
Described path returns unit 403 and is configured to: when there is resource to be updated, returns the more new route of resource to be updated to client, downloads described resource to be updated for client according to described more new route.
In above-described embodiment, client can when load page, resource updates request is sent to service end, service end judges whether to there is resource to be updated according to the version information of the client Current resource carried in described resource updates request, and when there is resource to be updated, the path of resource to be updated is returned to client, to make client download described resource to be updated according to described more new route, promote the speed that the page loads.Meanwhile, the resource to be updated of Current resource and download can be returned to Web assembly by client, loads the up-to-date page and browses for user, promote Consumer's Experience to make Web assembly.
Fig. 5 is the block diagram of the another kind of resource updates device according to an exemplary embodiment.
Please refer to Fig. 5, this embodiment is on the basis of the embodiment shown in earlier figures 4, and described renewal judging unit 402 can comprise: search subelement 4021 and contrast subunit 4022.
Wherein, search subelement 4021 described in be configured to: search the client Current resource list that the described version information of preservation is corresponding;
Described contrast subunit 4022 is configured to: contrast the list of described client Current resource and up-to-date the Resources list, when the list of described client Current resource is consistent with described up-to-date the Resources list, determine to there is not resource to be updated, the list of described client Current resource and described up-to-date the Resources list inconsistent time, determine to there is resource to be updated.
Fig. 6 is the block diagram of the another kind of resource updates device according to an exemplary embodiment.
Please refer to Fig. 6, this embodiment is on the basis of the embodiment shown in earlier figures 4, and described path returns unit 403 and can comprise: judgment sub-unit 4031 and first returns subelement 4032.
Wherein, described judgment sub-unit 4031 is configured to: judge whether the more new resources bag generating described resource to be updated;
Described first returns subelement 4032 is configured to: when generating the more new resources bag of described resource to be updated, and the path of described more new resources bag is returned to client as described more new route.
Fig. 7 is the block diagram of the another kind of resource updates device according to an exemplary embodiment.
Please refer to Fig. 7, this embodiment is on the basis of the embodiment shown in earlier figures 6, and described path returns unit 403 and can also comprise: second returns subelement 4033.
Described second returns subelement 4033 is configured to: when not generating the more new resources bag of described resource to be updated, generate the more new resources bag of described resource to be updated according to the version information of described Current resource, and the path of described more new resources bag is returned to client as described more new route.
In above-described embodiment, service end can generate the resource updates bag of resource to be updated according to the resource updates request of client, avoids generating useless resource updates bag, saves the process resource of service end, promotes the handling property of service end.
Fig. 8 is the block diagram of the another kind of resource updates device according to an exemplary embodiment.
Please refer to Fig. 8, this embodiment is on the basis of the embodiment shown in earlier figures 7, and described second returns subelement 4033 can also comprise: generation module 4033A.
Wherein, client release information is also carried in described resource updates request;
Described generation module 4033A is configured to: select the resource to be updated of compatible client version with more new resources bag described in generating.
Fig. 9 is the block diagram of a kind of resource updates device according to an exemplary embodiment.
Please refer to Fig. 9, described resource updates device 900 may be used for, in terminal, including: the second receiving element 901, update request unit 902, path acceptance units 903, resource downloading unit 904 and resource transmitting element 905.
Wherein, described second receiving element 901 is configured to: receive the resource load request that Web assembly sends;
Described update request unit 902 is configured to: send resource updates request according to described resource load request to service end, the version information of Current resource is carried in described resource updates request, judge whether to there is resource to be updated for service end according to the version information of described Current resource, and when there is resource to be updated, return the more new route of resource to be updated;
Described path acceptance units 903 is configured to: the more new route receiving the resource to be updated that service end returns;
Described resource downloading unit 904 is configured to: download described resource to be updated according to described more new route;
Described resource transmitting element 905 is configured to: described resource to be updated and described Current resource are sent to Web assembly, loads for Web assembly.
In above-described embodiment, client can when load page, resource updates request is sent to service end, service end judges whether to there is resource to be updated according to the version information of the client Current resource carried in described resource updates request, and when there is resource to be updated, the path of resource to be updated is returned to client, to make client download described resource to be updated according to described more new route, promote the speed that the page loads.Meanwhile, the resource to be updated of Current resource and download can be returned to Web assembly by client, loads the up-to-date page and browses for user, promote Consumer's Experience to make Web assembly.
Figure 10 is the block diagram of the another kind of resource updates device according to an exemplary embodiment.
Please refer to Figure 10, this embodiment is on the basis of the embodiment shown in earlier figures 9, and described resource downloading unit 904 can comprise: lower subelements 9041.
Wherein, described more new route is the path of the more new resources bag of described resource to be updated;
Described lower subelements 9041 is configured to: more new resources bag described in downloading according to the path of described more new resources bag.
Optionally, in described resource updates request, also carry client release information, select the resource to be updated of compatible client version to generate the more new resources bag of described resource to be updated for service end.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of disclosure scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Accordingly, the disclosure also provides a kind of resource updates device, and described device comprises: processor; For the storer of storage of processor executable instruction; Wherein, described processor is configured to: receive the resource updates request that client sends, carry the version information of client Current resource in described resource updates request; Judge whether to there is resource to be updated according to the version information of described client Current resource; If there is resource to be updated, then return the more new route of resource to be updated to client, download described resource to be updated for client according to described more new route.
Accordingly, the disclosure also provides a kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of service end, make service end can perform a kind of resource regeneration method, described method comprises: receive the resource updates request that client sends, carry the version information of client Current resource in described resource updates request; Judge whether to there is resource to be updated according to the version information of described client Current resource; If there is resource to be updated, then return the more new route of resource to be updated to client, download described resource to be updated for client according to described more new route.
Accordingly, the disclosure also provides a kind of resource updates device, and described device comprises: processor; For the storer of storage of processor executable instruction; Wherein, described processor is configured to: receive the resource load request that Web assembly sends; Resource updates request is sent to service end according to described resource load request, the version information of Current resource is carried in described resource updates request, judge whether to there is resource to be updated for service end according to the version information of described Current resource, and when there is resource to be updated, return the more new route of resource to be updated; Receive the more new route of the resource to be updated that service end returns; Described resource to be updated is downloaded according to described more new route; Described resource to be updated and described Current resource are sent to Web assembly, loads for Web assembly.
Accordingly, the disclosure also provides a kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of terminal, make terminal can perform a kind of resource regeneration method, described method comprises: receive the resource load request that Web assembly sends; Resource updates request is sent to service end according to described resource load request, the version information of Current resource is carried in described resource updates request, judge whether to there is resource to be updated for service end according to the version information of described Current resource, and when there is resource to be updated, return the more new route of resource to be updated; Receive the more new route of the resource to be updated that service end returns; Described resource to be updated is downloaded according to described more new route; Described resource to be updated and described Current resource are sent to Web assembly, loads for Web assembly.
Figure 11 is a kind of block diagram for resource updates device 1100 according to an exemplary embodiment.Such as, device 1100 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 11, device 1100 can comprise following one or more assembly: processing components 1102, storer 1104, power supply module 1106, multimedia groupware 1108, audio-frequency assembly 1110, the interface 1112 of I/O (I/O), sensor module 1114, and communications component 1116.
The integrated operation of the usual control device 1100 of processing components 1102, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 1102 can comprise one or more processor 1120 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1102 can comprise one or more module, and what be convenient between processing components 1102 and other assemblies is mutual.Such as, processing element 1102 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1108 and processing components 1102.
Storer 1104 is configured to store various types of data to be supported in the operation of equipment 1100.The example of these data comprises for any application program of operation on device 1100 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 1104 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that electric power assembly 1106 is device 1100 provide electric power.Electric power assembly 1106 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1100 and be associated.
Multimedia groupware 1108 is included in the screen providing an output interface between described device 1100 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 1108 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 1100 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1110 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1110 comprises a microphone (MIC), and when device 1100 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 1104 further or be sent via communications component 1116.In certain embodiments, audio-frequency assembly 1110 also comprises a loudspeaker, for output audio signal.
I/O interface 1112 is for providing interface between processing components 1102 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 1114 comprises one or more sensor, for providing the state estimation of various aspects for device 1100.Such as, sensor module 1114 can detect the opening/closing state of equipment 1100, the relative positioning of assembly, such as described assembly is display and the keypad of device 1100, the position of all right pick-up unit 1100 of sensor module 1114 or device 1100 assemblies changes, the presence or absence that user contacts with device 1100, the temperature variation of device 1100 orientation or acceleration/deceleration and device 1100.Sensor module 1114 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 1114 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 1114 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 1116 is configured to the communication being convenient to wired or wireless mode between device 1100 and other equipment.Device 1100 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 1116 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 1116 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1100 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 1104 of instruction, above-mentioned instruction can perform said method by the processor 1120 of device 1100.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Figure 12 is a kind of block diagram for resource updates device 1200 according to an exemplary embodiment.Such as, device 1200 may be provided in a server.With reference to Figure 12, device 1200 comprises processing components 1222, and it comprises one or more processor further, and the memory resource representated by storer 1232, can such as, by the instruction of the execution of processing element 1222, application program for storing.The application program stored in storer 1232 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1922 is configured to perform instruction, to perform the above method.
Device 1200 can also comprise the power management that a power supply module 1226 is configured to actuating unit 1200, and a wired or wireless network interface 1250 is configured to device 1200 to be connected to network, and input and output (I/O) interface 1258.Device 1200 can operate the operating system based on being stored in storer 1232, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art, at consideration instructions and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (18)

CN201510181433.6A2015-04-162015-04-16Method and device for updating resourcePendingCN104778063A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510181433.6ACN104778063A (en)2015-04-162015-04-16Method and device for updating resource

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510181433.6ACN104778063A (en)2015-04-162015-04-16Method and device for updating resource

Publications (1)

Publication NumberPublication Date
CN104778063Atrue CN104778063A (en)2015-07-15

Family

ID=53619548

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510181433.6APendingCN104778063A (en)2015-04-162015-04-16Method and device for updating resource

Country Status (1)

CountryLink
CN (1)CN104778063A (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105138376A (en)*2015-09-012015-12-09北京皮尔布莱尼软件有限公司Mixed model application, webpage resource upgrading method thereof, mobile terminal and system
CN105208127A (en)*2015-10-092015-12-30上海瀚银信息技术有限公司Webpage caching processing method and system and intelligent terminal
CN105488200A (en)*2015-12-082016-04-13小米科技有限责任公司Webpage display method and device
CN105549996A (en)*2015-12-102016-05-04网易(杭州)网络有限公司Application updating method for mobile terminal and mobile terminal
CN105930185A (en)*2016-04-192016-09-07乐视控股(北京)有限公司Application updating method and apparatus, terminal and server
CN106815370A (en)*2017-01-242017-06-09腾讯科技(深圳)有限公司Update the methods, devices and systems of resource file
WO2017167020A1 (en)*2016-03-282017-10-05阿里巴巴集团控股有限公司Configuration information push method and device
CN107423094A (en)*2017-07-242017-12-01腾讯科技(深圳)有限公司For cartoon picture configuration resource, the display control method and device of cartoon picture
CN107465722A (en)*2017-07-042017-12-12阿里巴巴集团控股有限公司The implementation method and device of web access
CN107707584A (en)*2016-08-082018-02-16腾讯科技(深圳)有限公司One kind applies loading method, terminal and Platform Server
CN107846465A (en)*2017-11-132018-03-27北京趣拿软件科技有限公司Update the method and apparatus of client resource bag
CN108008966A (en)*2017-12-042018-05-08山东浪潮通软信息科技有限公司A kind of resource regeneration method and system
CN108037946A (en)*2017-11-032018-05-15金证财富南京科技有限公司A kind of method, system and the server of the renewal of application program heat
CN108228264A (en)*2016-12-122018-06-29北京国双科技有限公司plug-in resource loading method and device
CN108304207A (en)*2018-03-012018-07-20上海找钢网信息科技股份有限公司Mix the resource regeneration method and system of APP application programs
CN109032646A (en)*2018-08-282018-12-18杭州迪普科技股份有限公司A kind of methods, devices and systems updating application
CN109510877A (en)*2018-12-212019-03-22中国航空工业集团公司西安航空计算技术研究所A kind of maintaining method, device and the storage medium of dynamic resource group
CN109683937A (en)*2018-12-262019-04-26斑马网络技术有限公司Update method, device and storage medium
CN110764805A (en)*2019-10-282020-02-07腾讯科技(深圳)有限公司Method, device, terminal and storage medium for noninductive upgrade of client
CN111246229A (en)*2020-01-072020-06-05北京字节跳动网络技术有限公司Method, device, medium and electronic equipment for updating gift resources of live broadcast room
CN112657196A (en)*2020-12-212021-04-16北京像素软件科技股份有限公司Resource updating method and device, computer equipment and readable storage medium
CN113326059A (en)*2020-02-282021-08-31腾讯科技(深圳)有限公司Resource updating method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20050028162A1 (en)*2003-07-312005-02-03International Business Machines CorporationSystem, method and program product for maintaining session information during dynamic resource additions or updates
CN1777317A (en)*2005-12-162006-05-24北京金山软件有限公司Method for realizing programme update of wireless terminal
CN101312567A (en)*2007-05-252008-11-26上海美通无线网络信息有限公司Method for J2M3 customer terminal of mobile phone to use dynamic updated data resource
CN102053853A (en)*2010-12-302011-05-11北京像素软件科技股份有限公司Version updating method of online game
CN103023941A (en)*2011-09-262013-04-03腾讯科技(深圳)有限公司Terminal application program updating method and system based on Web page

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20050028162A1 (en)*2003-07-312005-02-03International Business Machines CorporationSystem, method and program product for maintaining session information during dynamic resource additions or updates
CN1777317A (en)*2005-12-162006-05-24北京金山软件有限公司Method for realizing programme update of wireless terminal
CN101312567A (en)*2007-05-252008-11-26上海美通无线网络信息有限公司Method for J2M3 customer terminal of mobile phone to use dynamic updated data resource
CN102053853A (en)*2010-12-302011-05-11北京像素软件科技股份有限公司Version updating method of online game
CN103023941A (en)*2011-09-262013-04-03腾讯科技(深圳)有限公司Terminal application program updating method and system based on Web page

Cited By (34)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105138376A (en)*2015-09-012015-12-09北京皮尔布莱尼软件有限公司Mixed model application, webpage resource upgrading method thereof, mobile terminal and system
CN105208127A (en)*2015-10-092015-12-30上海瀚银信息技术有限公司Webpage caching processing method and system and intelligent terminal
CN105208127B (en)*2015-10-092018-09-04上海瀚银信息技术有限公司A kind of web cache processing method and system and intelligent terminal
CN105488200A (en)*2015-12-082016-04-13小米科技有限责任公司Webpage display method and device
CN105549996A (en)*2015-12-102016-05-04网易(杭州)网络有限公司Application updating method for mobile terminal and mobile terminal
CN105549996B (en)*2015-12-102020-03-17网易(杭州)网络有限公司Application program updating method of mobile terminal and mobile terminal
WO2017167020A1 (en)*2016-03-282017-10-05阿里巴巴集团控股有限公司Configuration information push method and device
CN107241204A (en)*2016-03-282017-10-10阿里巴巴集团控股有限公司Configuration information method for pushing and device
CN105930185A (en)*2016-04-192016-09-07乐视控股(北京)有限公司Application updating method and apparatus, terminal and server
CN107707584A (en)*2016-08-082018-02-16腾讯科技(深圳)有限公司One kind applies loading method, terminal and Platform Server
CN108228264B (en)*2016-12-122021-07-30北京国双科技有限公司 Plug-in resource loading method and device
CN108228264A (en)*2016-12-122018-06-29北京国双科技有限公司plug-in resource loading method and device
CN106815370B (en)*2017-01-242020-05-05腾讯科技(深圳)有限公司Method, device and system for updating resource file
CN106815370A (en)*2017-01-242017-06-09腾讯科技(深圳)有限公司Update the methods, devices and systems of resource file
CN107465722A (en)*2017-07-042017-12-12阿里巴巴集团控股有限公司The implementation method and device of web access
CN107465722B (en)*2017-07-042021-07-09创新先进技术有限公司Web access realization method and device
CN107423094A (en)*2017-07-242017-12-01腾讯科技(深圳)有限公司For cartoon picture configuration resource, the display control method and device of cartoon picture
CN107423094B (en)*2017-07-242019-01-04腾讯科技(深圳)有限公司The display control method and device of resource, cartoon picture are configured for cartoon picture
CN108037946A (en)*2017-11-032018-05-15金证财富南京科技有限公司A kind of method, system and the server of the renewal of application program heat
CN108037946B (en)*2017-11-032020-06-12金证财富南京科技有限公司Method, system and server for hot updating of application program
CN107846465A (en)*2017-11-132018-03-27北京趣拿软件科技有限公司Update the method and apparatus of client resource bag
CN108008966B (en)*2017-12-042020-11-03浪潮通用软件有限公司Resource updating method and system
CN108008966A (en)*2017-12-042018-05-08山东浪潮通软信息科技有限公司A kind of resource regeneration method and system
CN108304207A (en)*2018-03-012018-07-20上海找钢网信息科技股份有限公司Mix the resource regeneration method and system of APP application programs
CN109032646A (en)*2018-08-282018-12-18杭州迪普科技股份有限公司A kind of methods, devices and systems updating application
CN109510877B (en)*2018-12-212022-03-15中国航空工业集团公司西安航空计算技术研究所Method and device for maintaining dynamic resource group and storage medium
CN109510877A (en)*2018-12-212019-03-22中国航空工业集团公司西安航空计算技术研究所A kind of maintaining method, device and the storage medium of dynamic resource group
CN109683937A (en)*2018-12-262019-04-26斑马网络技术有限公司Update method, device and storage medium
CN110764805B (en)*2019-10-282024-01-23腾讯科技(深圳)有限公司Client non-inductive upgrading method, device, terminal and storage medium
CN110764805A (en)*2019-10-282020-02-07腾讯科技(深圳)有限公司Method, device, terminal and storage medium for noninductive upgrade of client
CN111246229A (en)*2020-01-072020-06-05北京字节跳动网络技术有限公司Method, device, medium and electronic equipment for updating gift resources of live broadcast room
CN113326059A (en)*2020-02-282021-08-31腾讯科技(深圳)有限公司Resource updating method, device and storage medium
CN113326059B (en)*2020-02-282024-04-26腾讯科技(深圳)有限公司Resource updating method, device and storage medium
CN112657196A (en)*2020-12-212021-04-16北京像素软件科技股份有限公司Resource updating method and device, computer equipment and readable storage medium

Similar Documents

PublicationPublication DateTitle
CN104778063A (en)Method and device for updating resource
US10320719B2 (en)Message withdrawal method, apparatus and storage medium
JP6062608B2 (en) Web page access method, apparatus, server, terminal, program, and recording medium
CN104123341A (en)Method and device for downloading file and route device
CN104461725A (en)Application process starting control method and device
CN105204915A (en)Application program updating method, device and system
CN104536848A (en)Firmware recovery method, device and terminal
CN104267977A (en)Application program running method and device
CN105094931A (en)Software upgrading method and device
CN112925788B (en) A data set management method, system, device, electronic device and storage medium
CN104766005A (en)Management method and device for application software access authority
CN105511907A (en)Application program upgrade method, device and system
CN104156401A (en)Webpage loading method, device and equipment
CN106201610A (en)Web application accesses the method and device of the primary function of terminal
CN105516270A (en)Information push method and device
CN105530292A (en)Page image display method and device
CN105159524A (en)Interface display method and apparatus
CN104486451A (en) App recommendation method and device
CN105094830A (en)Method and device for executing target functions
CN105468417A (en)Application software installation method and device
CN103916468A (en)System upgrading method, terminal, server and upgrading system
CN105183493A (en)Display method and device of network information
CN104636170A (en)Application acquiring method and device and electronic device
CN105577775A (en)Dual-channel downloading method and device
CN104182505A (en)Webpage rearrangement method and device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
EXSBDecision made by sipo to initiate substantive examination
SE01Entry into force of request for substantive examination
CB03Change of inventor or designer information

Inventor after:Nong Zhilin

Inventor after:Liu Fang

Inventor after:Zhang Peng

Inventor before:Nong Zhilin

Inventor before:Liu Fang

Inventor before:Zhang Pengfei

CORChange of bibliographic data
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20150715


[8]ページ先頭

©2009-2025 Movatter.jp