CN102833350A - Processing method and processing device of WebApp updating - Google Patents

Processing method and processing device of WebApp updating Download PDF

Info

Publication number
CN102833350A
CN102833350A CN2012103358033A CN201210335803A CN102833350A CN 102833350 A CN102833350 A CN 102833350A CN 2012103358033 A CN2012103358033 A CN 2012103358033A CN 201210335803 A CN201210335803 A CN 201210335803A CN 102833350 A CN102833350 A CN 102833350A
Authority
CN
China
Prior art keywords
webapp
characteristic value
file
client browser
update instruction
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
CN2012103358033A
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.)
Ucweb Inc
Original Assignee
Ucweb 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 Ucweb Inc filed Critical Ucweb Inc
Priority to CN2012103358033A priority Critical patent/CN102833350A/en
Publication of CN102833350A publication Critical patent/CN102833350A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a processing method and a processing device of WebApp updating. The method comprises the following steps that: a server receives identification information of the WebApp transmitted by a client browser and acquires pre-stored first characteristic value set and second characteristic value set according to the identification information, wherein the first characteristic value set is characteristic values of all files of the WebApp of an edition corresponding to the identification information, the second characteristic value set is characteristic values of all files of the latest edition of the WebApp; the two characteristic value sets are compared; the server generates an updating instruction for indicating the client browser to delete a first file when a characteristic value of the first file in the first characteristic value set is different from all the characteristic values in the second characteristic value set; and the server generates an updating instruction for indicating the client browser to increase a second file and transmits the generated updating instruction to the client browser when a characteristic value of the second file in the second characteristic value set is different from all the characteristic values in the first characteristic value set. According to the processing method and the processing device, the traffic consumed during downloading of a WebApp updating file by a client can be saved.

Description

Processing method and processing unit that WebApp upgrades
Technical field
The present invention relates to the mobile communication technology field, in particular to a kind of processing method and processing unit of WebApp renewal.
Background technology
At present, the browser of client is integrated with WebApp (network application) framework, allows user installation WebApp; So that the user has better experience; And the WebApp framework allows WebApp to upgrade automatically, and therefore, the developer just can make amendment to WebApp and expand at any time.
Yet the update mode of existing WebApp all is through downloading the WebApp installation kit again, installing again.And flow is extremely valuable to the user, and especially for cell-phone customer terminal, the update mode of downloading whole WebApp installation kit is understood a large amount of waste users' flow.Simultaneously, download a complete installation kit again, also expended download time, brought relatively poor experience to the user.
The problem of waste flow does not propose effective solution at present as yet when upgrading to WebApp in the correlation technique.
Summary of the invention
The present invention aims to provide processing method and the processing unit that a kind of WebApp upgrades, to solve the problem of wasting flow when WebApp upgrades in the prior art.
To achieve these goals, according to an aspect of the present invention, the processing method that provides a kind of WebApp to upgrade.
The processing method of upgrading according to WebApp of the present invention comprises: server receives the identification information of the WebApp of client browser transmission; Server obtains first characteristic value collection and second characteristic value collection that prestores according to identification information; Wherein, First characteristic value collection is the characteristic value of the WebApp All Files of the corresponding version of identification information, and second characteristic value collection is the characteristic value of the All Files of WebApp latest edition; Server contrasts first characteristic value collection and second characteristic value collection; When the characteristic value of first file in first characteristic value collection and each characteristic value in second characteristic value collection were all inequality, server generated first update instruction of WebApp, and wherein, first update instruction is used to indicate client browser to delete first file; When the characteristic value of second file in second characteristic value collection and each characteristic value in first characteristic value collection were all inequality, server generated second update instruction of WebApp, and wherein, second update instruction is used to indicate client browser to increase by second file; And server is sent to client browser with the update instruction that generates, so that client browser upgrades the file of WebApp according to the update instruction that generates.
Further, first update instruction comprises the filename of first file, and second update instruction comprises the download path of second file.
Further, second file is local storage file.
Further, obtain according to identification information before first characteristic value collection and second characteristic value collection that prestores at server, this method also comprises: server obtains the version number of WebApp latest edition; Server judges whether the version number of WebApp latest edition is consistent with the version number of the corresponding version of identification information of WebApp; Wherein, Inconsistent with the version number of the corresponding version of identification information of WebApp when the version number of WebApp latest edition, server obtains first characteristic value collection and second characteristic value collection.
Further, server is sent to client browser with the update instruction that generates and comprises: server generates JSON data according to the update instruction that generates; And server is sent to client browser with the JSON data.
To achieve these goals, according to an aspect of the present invention, the processing method that provides another kind of WebApp to upgrade.
The processing method of upgrading according to WebApp of the present invention comprises: client browser sends the identification information of WebApp to server; The update instruction of the WebApp that the client browser reception server sends, wherein, update instruction is used to indicate the file of client browser deletion WebApp or increase file to WebApp; And client browser upgrades the file of WebApp according to update instruction.
Further; When being used to indicate client browser, update instruction increases file to WebApp; And when the file that increases is local storage file; Client browser increases file and comprises to WebApp: client browser is downloaded local storage file, and wherein, the content of local storage file is deposited with the form of key-value pair; Client browser obtains all key-value pairs in the local storage file; And client browser is stored to the key-value pair that gets access under the territory of WebApp.
To achieve these goals, according to an aspect of the present invention, the processing unit that provides a kind of WebApp to upgrade.
The processing unit that upgrades according to WebApp of the present invention is arranged at server end, comprising: receiver module is used to receive the identification information of the WebApp that client browser sends; Acquisition module; Be used for obtaining first characteristic value collection and second characteristic value collection that prestores according to identification information; Wherein, first characteristic value collection is the characteristic value of the WebApp All Files of the corresponding version of identification information, and second characteristic value collection is the characteristic value of the All Files of WebApp latest edition; The contrast module is used to contrast first characteristic value collection and second characteristic value collection; First generation module; Be used for when the characteristic value of first file of first characteristic value collection and each characteristic value in second characteristic value collection are all inequality; Generate first update instruction of WebApp, wherein, first update instruction is used to indicate client browser to delete first file; Second generation module; Be used for when the characteristic value of second file of second characteristic value collection and each characteristic value in first characteristic value collection are all inequality; Generate second update instruction of WebApp, wherein, second update instruction is used to indicate client browser to increase by second file; And sending module, be used for the update instruction that generates is sent to client browser, so that client browser upgrades the file of WebApp according to the update instruction that generates.
To achieve these goals, according to an aspect of the present invention, the processing unit that provides another kind of WebApp to upgrade.
The processing unit that upgrades according to WebApp of the present invention is arranged at client browser, comprising: sending module, and the identification information that is used to send WebApp is to server; Receiver module is used for the update instruction of the WebApp that reception server sends, and wherein, update instruction is used to indicate the file of client browser deletion WebApp and/or increase file to WebApp; And update module, be used for file according to update instruction renewal WebApp.
Further, increase file to WebApp, and the file that increases is when being local storage file when update instruction is used to indicate client browser; Update module comprises: download submodule; Be used to download local storage file, wherein, the content of local storage file is deposited with the form of key-value pair; Obtain submodule, be used for obtaining all key-value pairs of local storage file; And sub module stored, be used for the key-value pair that gets access to is stored under the territory of WebApp.
Use technical scheme of the present invention, client browser is sent to server with the identification information of WebApp, and server is handled back generation update instruction and is issued to client browser; So that the file in the client browser deletion WebApp installation kit is perhaps downloaded new file, make when client browser upgrades WebApp, need not to download whole WebApp installation kit; Only need to upgrade the one or more files among the WebApp; And other file remains unchanged, and has solved the problem of waste flow when WebApp upgrades, and then has saved the flow that takies when WebApp upgrades; Simultaneously, saved the time of upgrading.
Description of drawings
The Figure of description that constitutes the application's a part is used to provide further understanding of the present invention, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the processing method according to the WebApp renewal of first embodiment of the invention;
Fig. 2 is the processing method according to the WebApp renewal of second embodiment of the invention;
Fig. 3 is the processing unit according to the WebApp renewal of first embodiment of the invention; And
Fig. 4 is the processing unit according to the WebApp renewal of second embodiment of the invention.
Embodiment
Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.Below with reference to accompanying drawing and gather embodiment and specify the present invention.
Technical scheme provided by the invention through cooperating of server and client, only realizes a certain partial content of WebApp is upgraded, and so just can reach the saving customer flow, the purpose of saving user time.Primary App has certain differently on WebApp and the operating system, and WebApp can not the direct control file, because WebApp is exactly a webpage in essence; And update functions need be operated file; Therefore, update functions needs to provide support through browser, is responsible for the processing of file by browser; If browser does not allow the local updating of WebApp, WebApp can't local updating so.The present invention then is provided at the method that realizes the local updating of WebApp on the browser.In addition, the renewal of Traditional Web App does not comprise the renewal of local storage localStorage, and the inventive method can be upgraded localStorage, lets WebApp read up-to-date data and becomes more convenient.
Fig. 1 is that as shown in Figure 1, this method comprises that following step S102 is to step S112 according to the processing method of the WebApp renewal of first embodiment of the invention.
Step S102: server receives the identification information of the WebApp of client browser transmission.
The client at this place can be mobile phone, computer or other-end, and the browser of installing on the terminal can regularly send the identification information of WebApp to server, the WebApp that whether more installs on the new terminal with inquiry.The identification information at this place comprises identification number and the version number of WebApp; For example comprise ID number and version number; When on the terminal a plurality of WebApp being installed, browser can once send the identification information of single WebApp to server, also can once send the identification information of a plurality of WebApp to server; Server carries out the processing of following steps respectively when receiving the identification information of single or a plurality of WebApp.
Step S104: server obtains first characteristic value collection and second characteristic value collection that prestores according to identification information; Wherein, First characteristic value collection is the characteristic value of the WebApp All Files of the corresponding version of identification information, and second characteristic value collection is the characteristic value of the All Files of WebApp latest edition; Server contrasts first characteristic value collection and second characteristic value collection.
When WebApp developer when server is submitted each version of each WebApp to, under the server record among each version web App the characteristic value of each file form a characteristic value collection, for example write down the MD5 value of each file.The file that WebApp generally has comprises html file, css file, JS file, audio-video document, picture file, animation etc., and each characteristic value collection is that title is stored with identification number and the version number of WebApp.
Server obtains this WebApp current version characteristic of correspondence value set (i.e. first characteristic value collection) and this WebApp latest edition characteristic of correspondence value set (i.e. second characteristic value collection) according to the identification information that receives after receiving the identification information of the WebApp that client browser sends from each characteristic value collection that prestores.
Step S106: server contrasts first characteristic value collection and second characteristic value collection.
Server is after getting access to first characteristic value collection and second characteristic value collection; Adopt the method for traversal; Each characteristic value in first characteristic value collection and all characteristic values in second characteristic value collection are compared, each characteristic value in second characteristic value collection and all characteristic values in first characteristic value collection are compared.
Step S108: when the characteristic value of first file in first characteristic value collection and each characteristic value in second characteristic value collection are all inequality; Server generates first update instruction of WebApp; Wherein, first update instruction is used to indicate client browser to delete first file.
When first characteristic value collection exist with second characteristic value collection in each characteristic value characteristic value all inequality the time; The characteristic value that yet is certain file of legacy version is not identical with the characteristic value of any file of the WebApp of redaction, shows that then this file must delete from the WebApp installation kit of client.Preferably, the filename that comprises the file of needs deletion in first update instruction.
Step S110: when the characteristic value of second file in second characteristic value collection and each characteristic value in first characteristic value collection are all inequality; Server generates second update instruction of WebApp; Wherein, second update instruction is used to indicate client browser to increase by second file.
When second characteristic value collection exist with first characteristic value collection in each characteristic value characteristic value all inequality the time; Also be; The characteristic value of certain file of redaction is not identical with the characteristic value of any file of legacy version, then is illustrated in the current installation kit of client not exist, and this file need increase newly; Preferably, the URL that comprises the file that needs are newly-increased in second update instruction.
Step S112: server is sent to client browser with the update instruction that generates, so that client browser upgrades the file of WebApp according to the update instruction that generates.
When first characteristic value collection and second characteristic value collection are identical, explain that the WebApp of current version is a latest edition, need not to upgrade.
The processing method that the WebApp that adopts this embodiment to provide upgrades; When WebApp is upgraded, need not the installation kit of client downloads WebApp, only need and/or download new file and can accomplish renewal through the file in the current installation kit of client browser deletion WebApp; Downloaded contents only comprises needs newly-increased one or more files; The file that need not change need not to download, and compares the flow of client consumes in the time of saving the WebApp renewal greatly with downloading the whole erection bag; Simultaneously, saved the time of upgrading.
The file that need increase newly when preferably, WebApp upgrades comprises local storage (localStorage) file.When server comprises second update instruction to the update instruction that client browser sends; Client is after receiving second update instruction; Second update instruction is resolved, detect in the file that needs to upgrade whether have localStorage.localStorage file (being local storage file).
The content of the localStorage that upgrades leaves in the file with the form of key-value pair (Key-Value); LocalStorage.localStorage file for example; Key and Value can be cut apart with space or Tab etc., and each Key-Value key-value pair accounts for the delegation in the file.For example, the content among the localStorage.localStorage possibly be:
A 1
B 2
If have the localStorage.localStorage file in the file that needs to upgrade, download this localStorage.localStorage file, travel through each row of this file; Call the interface that the browser kernel provides; These key-value pairs that travel through out are stored under the territory of current Web App, so that this WebApp can read, the mode of generally storing localStorage is through writing the sqlite database or writing file; For example; In the above-described embodiments, the value of upgrading the localStorage.A of back WebApp can become " 1 ", and the value of localStorage.B can become " 2 ".
Adopt the preferred embodiment, can upgrade, make WebApp to read up-to-date data, make WebApp read up-to-date data and become convenient through localStorage to this locality storage.
Preferably, before step S104, this method also comprises: server obtains the version number of WebApp latest edition; Server judges whether the version number of WebApp latest edition is consistent with the version number of the corresponding version of identification information of WebApp; Wherein, When the version number of WebApp latest edition inconsistent with the version number of the corresponding version of identification information of WebApp, execution in step S104 again, when the version number of WebApp latest edition consistent with the version number of the corresponding version of identification information of WebApp; Then need not to upgrade, execution in step S104 is not to step S112.
Adopt the preferred embodiment, when server receives the redaction WebApp of developer's exploitation at every turn, with its identification number and version number's storage; Behind the identification information that receives the client browser transmission; At first the WebApp version on the client browser and the version number of latest edition are compared, the two need not when consistent to upgrade, and then need not execution in step S104 to step S112; Only when the two is inconsistent, just further carry out subsequent step, avoid the step of carrying out redundancy when upgrading handling.
Further preferably, in step S112, server generates JSON data earlier according to the update instruction that generates, and the form with the JSON data of will instructing then is sent to client browser.
Adopt the preferred embodiment, transmit update instruction, improve renewal speed through the JSON data.
Fig. 2 is that as shown in Figure 2, this method comprises that following step S202 is to step S206 according to the processing method of the WebApp renewal of second embodiment of the invention.
Step S202: client browser sends the identification information of WebApp to server, and wherein, WebApp is the WebApp on the client browser.
This client can be mobile phone, and the WebApp identification information that mobile phone browser sends on the current phone is given server, can be a plurality of WebApp ID numbers and WebApp version number, whether need upgrade WebApp with inspection.
After server was received this WebApp identification information, each WebApp in these WebApp identification informations carried out following flow process: the ID and the version number that from the identification information that receives, obtain each WebApp; Be stored in the characteristic value of the All Files of this version of current Web App on the server through WebApp ID and version number's inquiry; From server, find out the characteristic value of the All Files of current Web App latest edition this shop; Whether the characteristic value of each file among the traversal redaction WebApp contrasts the characteristic value of characteristic value and the present version of WebApp one by one, check identical; If identical, show that then this file does not need to upgrade; When the characteristic value of certain file of legacy version is identical with any file of the WebApp of redaction, show that then this file must delete from user's WebApp, note filename; When the characteristic value of certain file of redaction is not identical with the characteristic value of any file of legacy version, show that then this file need increase newly, note the URL of this file.
The server filename of deleted file as required generates JSON data with the URL that needs newly-increased file; This data record path and the URL of the file that should increase of the file that should delete, server sends back to cell-phone customer terminal to these JSON data as update instruction.
Step S204: the update instruction of the WebApp that the client browser reception server sends, wherein, update instruction is used to indicate the file of client browser deletion WebApp and/or increase file to WebApp.
Step S206: client browser upgrades the file of WebApp according to update instruction.
When client was mobile phone, the data that mobile phone browser is beamed back according to server were deleted the file of server appointment, and download newly-increased file according to URL, and downloaded files is left in the installation path of WebApp.
The processing method that adopts WebApp that this embodiment provides to upgrade, mobile phone browser can regularly send request to server, during WebApp that more whether inquiry install on the new cell-phone; Server can send data and give mobile phone browser; Inform which file that delete in the current Web App installation kit, should download which file of certain webapp again, thereby; When the WebApp on the mobile phone is upgraded; The file that need not change among the WebApp need not from network download, thereby has saved customer flow and time.
Preferably; When being used to indicate client browser, update instruction increases file to WebApp; And when the file that increases was local storage file, in step S206, client browser increases file and comprises to WebApp: client browser was downloaded local storage file; Wherein, the content of local storage file is deposited with the form of key-value pair; Client browser obtains all key-value pairs in the local storage file; And client browser is stored to the key-value pair that gets access under the territory of WebApp.
For example local storage file is the localStorage.localStorage file, and Key and Value can be cut apart with space or Tab etc., and each Key-Value key-value pair accounts for the delegation in the file.For example, the content among the localStorage.localStorage is:
A 1
B 2
Each row of this file of server traversal calls the interface that the browser kernel provides, and gets access to key-value pairs all in the file, and the key-value pair that gets access to is stored under the territory of current Web App, so that this WebApp can read.The mode of general storage localStorage is perhaps to write file through writing the sqlite database, and the value of upgrading back WebApp localStorage.A can become " 1 ", and the value of localStorage.B can become " 2 ".
Adopt the preferred embodiment, the cell-phone customer terminal browser can upgrade this locality storage, makes WebApp to read up-to-date data through localStorage, makes WebApp read latest data and becomes convenient.
Fig. 3 is the processing unit according to the WebApp renewal of first embodiment of the invention; This processing unit is arranged at server end; As shown in Figure 3, processing unit comprises receiver module 10a, acquisition module 20a, contrast module 30a, the first generation module 40a, the second generation module 50a and sending module 60a.
Client among this embodiment can be mobile phone, computer or other-end, and the browser of installing on the terminal can regularly send the identification information of WebApp to server, the WebApp that whether more installs on the new terminal with inquiry.The identification information at this place comprises identification number and the version number of WebApp; For example comprise ID number and version number; When on the terminal a plurality of WebApp being installed; Browser can once send the identification information of single WebApp to server, also can once send the identification information of a plurality of WebApp to server, and server receives the identification information of single or a plurality of WebApp of client browser transmission through receiver module 10a.
When WebApp developer when server is submitted each version of each WebApp to, under the server record among each version web App the characteristic value of each file form a characteristic value collection, for example write down the MD5 value of each file.The file that WebApp generally has comprises html file, css file, JS file, audio-video document, picture file, animation etc., and each characteristic value collection is that title is stored with identification number and the version number of WebApp.
Receive the identification information of WebApp at receiver module 10a after, acquisition module 20a obtains the first corresponding characteristic value collection of this WebApp current version, second characteristic value collection corresponding with this WebApp latest edition according to identification information from each characteristic value collection that prestores.
Contrast module 30a compares first characteristic value collection and second characteristic value collection that acquisition module 20a gets access to; Particularly; Can adopt the method for traversal; Each characteristic value in first characteristic value collection and all characteristic values in second characteristic value collection are compared, each characteristic value in second characteristic value collection and all characteristic values in first characteristic value collection are compared.
When the characteristic value of first file in first characteristic value collection and each characteristic value in second characteristic value collection are all inequality; The first generation module 40a generates first update instruction of WebApp; Wherein, first update instruction is used to indicate client browser to delete first file; When the characteristic value of second file in second characteristic value collection and each characteristic value in first characteristic value collection are all inequality; The second generation module 50a generates second update instruction of WebApp; Wherein, second update instruction is used to indicate client browser to increase by second file.
Sending module 60a is sent to client browser with the update instruction of the first generation module 40a and/or second generation module 50a generation, so that client browser upgrades the file of WebApp according to the update instruction that generates.
Preferably; The filename that comprises the file of needs deletion in first update instruction; The URL that comprises the file that needs are newly-increased in second update instruction; After client browser received first update instruction, with the file delete of the filename that comprises in first update instruction, and the URL place in second update instruction downloaded new file.
The processing unit that the WebApp that adopts this embodiment to provide upgrades; When WebApp is upgraded, need not the installation kit of client downloads WebApp, only need and/or download new file and can accomplish renewal through the file in the current installation kit of client browser deletion WebApp; Downloaded contents only comprises needs newly-increased one or more files; The file that need not change need not to download, and compares the flow of client consumes in the time of saving the WebApp renewal greatly with downloading the whole erection bag; Simultaneously, saved the time of upgrading.
The file that need increase newly when preferably, WebApp upgrades comprises local storage file.When sending module 60a sends second update instruction to client browser; Client is resolved second update instruction after receiving second update instruction, detects in the file that needs to upgrade whether have localStorage.localStorage file (being local storage file); In the file that need upgrade, there is the localStorage.localStorage file; Then localStorage.localStorage is upgraded, the detailed process preceding text have been done description, no longer repeat here.
Preferably, the acquisition module 20a of this device also is used to obtain the version number of WebApp latest edition; This device also comprises judge module; Be used to judge whether the version number of WebApp latest edition is consistent with the version number of the corresponding version of identification information of WebApp; Wherein, inconsistent with the version number of the corresponding version of identification information of WebApp when the version number of WebApp latest edition, acquisition module 20a obtains first characteristic value collection and second characteristic value collection according to identification information; Consistent when the version number of WebApp latest edition with the version number of the corresponding version of identification information of WebApp, then need not to upgrade.
Adopt the preferred embodiment; When server receives the redaction WebApp of developer's exploitation at every turn; With its identification number and version number's storage, behind the identification information that receives the client browser transmission, at first the WebApp version on the client browser and the version number of latest edition are compared; The two need not when consistent to upgrade, and avoids when handling renewal, carrying out redundant step.
Preferably, when sending module 60a sends update instruction to client browser, generate JSON data earlier according to the update instruction that generates earlier, the form with the JSON data of will instructing then is sent to client browser.Adopt the preferred embodiment, transmit update instruction, improve renewal speed through the JSON data.
Fig. 4 is that this processing unit is arranged at the browser place of client, and is as shown in Figure 4 according to the processing unit of the WebApp renewal of second embodiment of the invention, and processing unit comprises sending module 10b, receiver module 20b and update module 30b.
The identification information that sending module 10b is used to send WebApp is to server; Server is handled according to the information that receives; And the generation update instruction, wherein, update instruction is used to indicate the file of client browser deletion WebApp and/or increase file to WebApp; The concrete generative process preceding text of instruction have been done description, no longer repeat here.Server is issued to client browser with the update instruction that generates.
The update instruction of the WebApp that receiver module 20b reception server sends, update module 30b comprises the file delete that does not have in the redaction according to the file of update instruction renewal WebApp, the file that does not have in the legacy version is downloaded.
The processing unit that the WebApp that adopts this embodiment to provide upgrades; Client browser through sending module 10b to the server request of sending, the WebApp more whether inquiry install on the new cell-phone, and the file in the update instruction deletion current Web App installation kit that issues according to server; With or download the file of certain webapp again; Thereby, when the WebApp on the client is upgraded, the file that need not change among the WebApp; Need not from network download, thereby saved customer flow and time.
Preferably, increase file to WebApp when update instruction is used to indicate client browser, and the file that increases is when being local storage file, update module 30b comprises and downloads submodule, obtains submodule and sub module stored.Download submodule and be used to download local storage file; Wherein, the content of local storage file is deposited with the form of key-value pair, obtains all key-value pairs that submodule is used for obtaining local storage file; Sub module stored is used for the key-value pair that gets access to is stored under the territory of WebApp; Thereby accomplish renewal, make WebApp to read up-to-date data, make WebApp read latest data and become convenient through localStorage to local storage file.
Processing method that any one WebApp that this embodiment is provided upgrades or processing unit are applied to Chrome Web Store on a WebApp who is called " Great War removal team of recalcitrant "; Wherein, This WebApp mainly comprises a html page and a Flash file; The effect of html page is the position of layout Flash, and shows some links.The size of whole WebApp is 7.95M, and wherein the size of Flash file has just accounted for 7.92M.If the developer has changed the html file among this WebApp, when the user upgrades this WebApp, need not to download installation kit so near 8M; Only need to download the html file of more correcting one's mistakes and cover; Thereby only the flow of several K of needs has been saved the flow about about 7.9M.
Processing method that any one WebApp that this embodiment is provided upgrades or processing unit are applied to Chrome web store on a WebApp who is called Adblock; Wherein, The effect of this WebApp is the advertisement on the filtering web page, and the principle of realization has adopted the mode of blacklist, judges during Web page loading that the node of the page is in blacklist; If it is hidden or does not load.The necessary frequent renewal of the blacklist that Adblock uses; To tackle the advertisement that increases day by day and change; Only need the file (through upgrading the mode of localStorage) of Download History blacklist in the process of upgrading; Upgrade the mode of blacklist with the mode that downloads and installs bag in the prior art again and compare, need not to download and install JS and html file in the bag, thereby saved flow.
From above description, can find out that the present invention has realized following technique effect: when client browser upgrades WebApp; Need not to download whole WebApp installation kit; Only need to upgrade the one or more files among the WebApp, and other file remains unchanged, and has saved the flow that takies when WebApp upgrades; Simultaneously, saved the time of upgrading.
Need to prove; Can in computer system, carry out in the step shown in the flow chart of accompanying drawing such as a set of computer-executable instructions; And; Though logical order has been shown in flow chart, in some cases, can have carried out step shown or that describe with the order that is different from here.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the storage device and carry out, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize by calculation element.Like this, the present invention is not restricted to any specific hardware and software set.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the processing method that WebApp upgrades is characterized in that, comprising:
Server receives the identification information of the WebApp of client browser transmission;
Said server obtains first characteristic value collection and second characteristic value collection that prestores according to said identification information; Wherein, Said first characteristic value collection is the characteristic value of the said WebApp All Files of the corresponding version of said identification information, and said second characteristic value collection is the characteristic value of the All Files of said WebApp latest edition;
Said server contrasts said first characteristic value collection and said second characteristic value collection;
When the characteristic value of first file in said first characteristic value collection and each characteristic value in said second characteristic value collection are all inequality; Said server generates first update instruction of said WebApp; Wherein, said first update instruction is used to indicate said client browser to delete said first file;
When the characteristic value of second file in said second characteristic value collection and each characteristic value in said first characteristic value collection are all inequality; Said server generates second update instruction of said WebApp; Wherein, said second update instruction is used to indicate said client browser to increase said second file; And
Said server is sent to said client browser with the update instruction that generates, so that said client browser upgrades the file of said WebApp according to the update instruction of said generation.
2. method according to claim 1 is characterized in that said first update instruction comprises the filename of said first file, and said second update instruction comprises the download path of said second file.
3. method according to claim 1 is characterized in that, said second file is local storage file.
4. method according to claim 1 is characterized in that, obtains according to said identification information before first characteristic value collection and second characteristic value collection that prestores at said server, and said method also comprises:
Said server obtains the version number of said WebApp latest edition;
Said server judges whether the version number of said WebApp latest edition is consistent with the version number of the corresponding version of identification information of said WebApp,
Wherein, inconsistent with the version number of the corresponding version of identification information of said WebApp when the version number of said WebApp latest edition, said server obtains said first characteristic value collection and said second characteristic value collection.
5. method according to claim 1 is characterized in that, said server is sent to said client browser with the update instruction that generates and comprises:
Said server generates JSON data according to the update instruction that generates; And
Said server is sent to said client browser with said JSON data.
6. the processing method that WebApp upgrades is characterized in that, comprising:
Client browser sends the identification information of WebApp to server;
Said client browser receives the update instruction of the said WebApp of said server transmission, and wherein, said update instruction is used to the file of indicating said client browser to delete said WebApp or increases file to said WebApp; And
Said client browser upgrades the file of said WebApp according to said update instruction.
7. method according to claim 6; It is characterized in that; Increase file to said WebApp when said update instruction is used to indicate said client browser, and the file of said increase is when being local storage file, said client browser increases file and comprises to said WebApp:
Said client browser is downloaded said local storage file, and wherein, the content of said local storage file is deposited with the form of key-value pair;
Said client browser obtains all key-value pairs in the said local storage file; And
Said client browser is stored to the key-value pair that gets access under the territory of said WebApp.
8. the processing unit that upgrades of a WebApp is characterized in that said processing unit is arranged at server end, comprising:
Receiver module is used to receive the identification information of the WebApp that client browser sends;
Acquisition module; Be used for obtaining first characteristic value collection and second characteristic value collection that prestores according to said identification information; Wherein, Said first characteristic value collection is the characteristic value of the said WebApp All Files of the corresponding version of said identification information, and said second characteristic value collection is the characteristic value of the All Files of said WbApp latest edition;
The contrast module is used to contrast said first characteristic value collection and said second characteristic value collection;
First generation module; Be used for when the characteristic value of first file of said first characteristic value collection and each characteristic value in said second characteristic value collection are all inequality; Generate first update instruction of said WbApp; Wherein, said first update instruction is used to indicate said client browser to delete said first file;
Second generation module; Be used for when the characteristic value of second file of said second characteristic value collection and each characteristic value in said first characteristic value collection are all inequality; Generate second update instruction of said WbApp; Wherein, said second update instruction is used to indicate said client browser to increase said second file; And
Sending module is used for the update instruction that generates is sent to said client browser, so that said client browser upgrades the file of said WebApp according to the update instruction of said generation.
9. the processing unit that upgrades of a WebApp is characterized in that said processing unit is arranged at client browser, comprising: sending module, and the identification information that is used to send WebApp is to server;
Receiver module is used to receive the update instruction of the said WebApp that said server sends, and wherein, said update instruction is used to the file of indicating said client browser to delete said WebApp and/or increases file to said WebApp; And
Update module is used for upgrading according to said update instruction the file of said WebApp.
10. device according to claim 9 is characterized in that, increases file to said WebApp when said update instruction is used to indicate said client browser, and the file of said increase is when being local storage file, and said update module comprises:
Download submodule, be used to download said local storage file, wherein, the content of said local storage file is deposited with the form of key-value pair;
Obtain submodule, be used for obtaining all key-value pairs of said local storage file; And
Sub module stored is used for the key-value pair that gets access to is stored under the territory of said WebApp.
CN2012103358033A 2012-09-11 2012-09-11 Processing method and processing device of WebApp updating Pending CN102833350A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012103358033A CN102833350A (en) 2012-09-11 2012-09-11 Processing method and processing device of WebApp updating

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012103358033A CN102833350A (en) 2012-09-11 2012-09-11 Processing method and processing device of WebApp updating

Publications (1)

Publication Number Publication Date
CN102833350A true CN102833350A (en) 2012-12-19

Family

ID=47336317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012103358033A Pending CN102833350A (en) 2012-09-11 2012-09-11 Processing method and processing device of WebApp updating

Country Status (1)

Country Link
CN (1) CN102833350A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823872A (en) * 2014-02-27 2014-05-28 北京金山网络科技有限公司 Information pushing method and device
CN104135502A (en) * 2013-07-09 2014-11-05 腾讯科技(深圳)有限公司 Method of implementing application notification as well as associated equipment and system
CN104426921A (en) * 2013-08-20 2015-03-18 阿里巴巴集团控股有限公司 Method, mobile terminal, browser and system for displaying web application document
CN105446750A (en) * 2014-05-30 2016-03-30 阿里巴巴集团控股有限公司 Web app starting operation and mirror image file generating method and device
CN105530269A (en) * 2014-09-28 2016-04-27 阿里巴巴集团控股有限公司 Data exchange method, data exchange system and server
CN106535002A (en) * 2016-12-21 2017-03-22 Tcl集团股份有限公司 Method and device for updating layout of desktop starter template
CN106649370A (en) * 2015-10-30 2017-05-10 北京国双科技有限公司 Acquisition method and device for website access information
CN106682176A (en) * 2016-12-29 2017-05-17 北京五八信息技术有限公司 Page loading method, equipment and device
CN106933614A (en) * 2015-12-30 2017-07-07 广州爱九游信息技术有限公司 A kind of single-page application upgrade method and device
CN107682436A (en) * 2017-10-09 2018-02-09 武汉斗鱼网络科技有限公司 A kind of method, apparatus and equipment of more new file
CN107784086A (en) * 2017-10-09 2018-03-09 中国平安人寿保险股份有限公司 A kind of loading method of webpage, terminal device and computer-readable recording medium
CN109831476A (en) * 2018-12-15 2019-05-31 中国平安人寿保险股份有限公司 Installation kit method for down loading, device, electronic equipment and storage medium
CN109857454A (en) * 2018-12-15 2019-06-07 中国平安人寿保险股份有限公司 Installation kit generates and caching method, device, electronic equipment and storage medium
CN112612504A (en) * 2020-11-30 2021-04-06 特力惠信息科技股份有限公司 JAVA installation package management method
CN112714179A (en) * 2020-12-25 2021-04-27 携程旅游网络技术(上海)有限公司 Client multitask installation method, system, equipment and medium based on browser

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425931A (en) * 2008-12-08 2009-05-06 上海华为技术有限公司 Communication apparatus software updating method, related equipment and communication system
CN102053853A (en) * 2010-12-30 2011-05-11 北京像素软件科技股份有限公司 Version updating method of online game

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425931A (en) * 2008-12-08 2009-05-06 上海华为技术有限公司 Communication apparatus software updating method, related equipment and communication system
CN102053853A (en) * 2010-12-30 2011-05-11 北京像素软件科技股份有限公司 Version updating method of online game

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135502A (en) * 2013-07-09 2014-11-05 腾讯科技(深圳)有限公司 Method of implementing application notification as well as associated equipment and system
CN104135502B (en) * 2013-07-09 2015-08-12 腾讯科技(深圳)有限公司 A kind of method, relevant device and system realizing application message and remind
CN104426921B (en) * 2013-08-20 2018-04-10 阿里巴巴集团控股有限公司 Show method, mobile terminal, browser and the system of web application document
CN104426921A (en) * 2013-08-20 2015-03-18 阿里巴巴集团控股有限公司 Method, mobile terminal, browser and system for displaying web application document
WO2015127764A1 (en) * 2014-02-27 2015-09-03 北京金山网络科技有限公司 Information push method and device
CN103823872A (en) * 2014-02-27 2014-05-28 北京金山网络科技有限公司 Information pushing method and device
CN105446750A (en) * 2014-05-30 2016-03-30 阿里巴巴集团控股有限公司 Web app starting operation and mirror image file generating method and device
CN105446750B (en) * 2014-05-30 2019-12-03 阿里巴巴集团控股有限公司 The method and apparatus that WebApp starting runs, generates image file
CN105530269A (en) * 2014-09-28 2016-04-27 阿里巴巴集团控股有限公司 Data exchange method, data exchange system and server
CN105530269B (en) * 2014-09-28 2019-04-09 阿里巴巴集团控股有限公司 Data interactive method and system and server
CN106649370A (en) * 2015-10-30 2017-05-10 北京国双科技有限公司 Acquisition method and device for website access information
CN106933614A (en) * 2015-12-30 2017-07-07 广州爱九游信息技术有限公司 A kind of single-page application upgrade method and device
CN106933614B (en) * 2015-12-30 2020-12-22 阿里巴巴(中国)有限公司 Single-page application upgrading method and device
CN106535002A (en) * 2016-12-21 2017-03-22 Tcl集团股份有限公司 Method and device for updating layout of desktop starter template
CN106535002B (en) * 2016-12-21 2020-06-16 Tcl科技集团股份有限公司 Desktop starter template layout updating method and device
CN106682176A (en) * 2016-12-29 2017-05-17 北京五八信息技术有限公司 Page loading method, equipment and device
CN107784086A (en) * 2017-10-09 2018-03-09 中国平安人寿保险股份有限公司 A kind of loading method of webpage, terminal device and computer-readable recording medium
CN107682436A (en) * 2017-10-09 2018-02-09 武汉斗鱼网络科技有限公司 A kind of method, apparatus and equipment of more new file
CN109831476A (en) * 2018-12-15 2019-05-31 中国平安人寿保险股份有限公司 Installation kit method for down loading, device, electronic equipment and storage medium
CN109857454A (en) * 2018-12-15 2019-06-07 中国平安人寿保险股份有限公司 Installation kit generates and caching method, device, electronic equipment and storage medium
CN112612504A (en) * 2020-11-30 2021-04-06 特力惠信息科技股份有限公司 JAVA installation package management method
CN112714179A (en) * 2020-12-25 2021-04-27 携程旅游网络技术(上海)有限公司 Client multitask installation method, system, equipment and medium based on browser
CN112714179B (en) * 2020-12-25 2022-10-11 携程旅游网络技术(上海)有限公司 Client multitask installation method, system, equipment and medium based on browser

Similar Documents

Publication Publication Date Title
CN102833350A (en) Processing method and processing device of WebApp updating
RU2673403C2 (en) Website access method, device and website system
CN102622241B (en) A kind of method for upgrading software and device
US10713034B2 (en) Updating web resources
CN102073512B (en) JAVA cluster application system code loading and upgrading device and method
US20150100955A1 (en) Method and System for Updating Software
CN103678319B (en) Resource file update method, device and system and server
CN102855152B (en) The method and system of resource file in upgrade applications
EP2919440B1 (en) Advertisement processing method and device
CN102355500B (en) Service push method and device
CN102109989A (en) Method, device and system for controlling browser cache
CN108027741A (en) Document handling method, device, terminal and storage medium based on patch upgrading
US20140128054A1 (en) Method, software and apparatus for performing actions on a wireless device using action lists and versioning
CN103476002A (en) Method and device for data interaction
CN110286922A (en) Using downloading updating method, device, computer equipment and storage medium
CN105279436B (en) Oftware updating method and system
CN102904947A (en) Application client presentation style updating and/or content expanding method and system
CN103577599A (en) Method and device for storing local data through mobile terminal
CN102612023A (en) Mobile terminal and application updating method and server thereof
CN104699511A (en) Plug-in upgrading method and plug-in upgrading device
CN106201577A (en) A kind of method and device updating Lua file
CN103634393A (en) IVR (interactive voice response) and realization method thereof
CN106951284A (en) User interface upgrade method, device and the intelligent terminal applied based on Android system
CN115576599A (en) Configuration method and system for software development and computer equipment
CN101626339A (en) Method and system for downloading network data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20121219

RJ01 Rejection of invention patent application after publication