CN109857425A - A kind of method for updating edition and system based on client terminal web page application - Google Patents
A kind of method for updating edition and system based on client terminal web page application Download PDFInfo
- Publication number
- CN109857425A CN109857425A CN201811610611.2A CN201811610611A CN109857425A CN 109857425 A CN109857425 A CN 109857425A CN 201811610611 A CN201811610611 A CN 201811610611A CN 109857425 A CN109857425 A CN 109857425A
- Authority
- CN
- China
- Prior art keywords
- client
- web page
- file
- application
- descriptive
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of method for updating edition and system based on client terminal web page application, belong to computer software programs and realize technical field.Method for updating edition based on client terminal web page application of the invention generates Hash value list according to web page resources, pass through Hash value list in comparison client and server, variant file is downloaded in client from server end, replaces the web page resources completion in client to the version updating of application.The method for updating edition based on client terminal web page application of the invention is without can be completed web application version updating by the Internet resources in replacement client, having good application value under the premise of reinstalling client.
Description
Technical field
The present invention relates to computer software programs realize technical field, specifically provide it is a kind of based on client terminal web page application
Method for updating edition and system.
Background technique
With being constantly progressive for society, social economy's rapid development, while also driving being constantly progressive for every science and technology.
Computer has many advantages, such as that information memory capacity is big, and user's acquisition information is convenient and efficient, is widely applied.Especially in recent years
Come, as society and economic further development, computer application field gradually extend, computer is all obtained in every field
It is widely applied, while the performance requirements of computer is gradually increased in user, therefore the performance of computer needs accordingly
Improvement, the properties of computer are finally that user is presented to by way of webpage, with the improvement of computer performance,
Web application version is also required to be correspondingly improved.
The client terminal web page application version update method occurred at present is divided into two kinds: the first is all to be placed on web page resources
Server end, the web page resources for updating server end complete webpage version updating, and client directly browses and is stored in server end
Internet resources.Second is to be packaged web page resources into client, completes version updating by installing new client every time.
In first method, not needing update server end can be completed.It is primarily adapted for use in without calling client to terminate
The pure page application of mouth, but every time using must all re-request all web page resources of server end, network overhead is too high, and
And there is also security risks and relevant limitation if calling client local interface.
It in second method, is experienced close to native applications, but updates to require to re-download every time and new client is installed
End, and application data buffered before can be override, it is extremely inconvenient to use, and needs further to be improved.
Summary of the invention
Technical assignment of the invention is in view of the above problems, to provide a kind of premise without reinstalling client
Under, the version based on client terminal web page application of web application version updating can be completed by the Internet resources in replacement client
This update method.
The further technical assignment of the present invention is to provide a kind of method for updating edition based on client terminal web page application.
To achieve the above object, the present invention provides the following technical scheme that
A kind of method for updating edition based on client terminal web page application, this method generate cryptographic Hash according to web page resources and arrange
Variant file is downloaded to client from server end by Hash value list in comparison client and server by table
In, the web page resources completion in client is replaced to the version updating of application.
The method for updating edition based on client terminal web page application solves the update of client terminal web page application version and needs weight
Newly downloaded the problem of installing new client, provides without under the premise of installing client, passing through the webpage in replacement client
The version updating to application is completed in source, realizes that the version heat of client terminal web page application updates.
Preferably, the method specifically includes the following steps:
S1: calculating the cryptographic Hash of each web page resources, creates descriptive file;
S2: the descriptive file generated in step S1 is packaged into client, forms initial version client application;
S3: the descriptive file generated in web page resources and step S1 is placed on server end;
S4: when having the version of new web page resource, the web page resources of latest edition are generated into newly descriptive according to step S1
File, related new web page resources are uploaded to server end, replace server end current file;
S5: client application start when judge in client with server end in descriptive file renewal time whether one
It causes, creates the file named with renewal time in the client if inconsistent, and by the discrepant file of cryptographic Hash from service
Device end is downloaded in client application;
S6: next client application uses new web page resources when starting.
Preferably, algorithm computer hashing algorithm calculates the cryptographic Hash of each web page resources in step S1.
Preferably, descriptive file described in step S1 includes three, one is comprising updating address and renewal time
Descriptive file;One is the descriptive file comprising filename and corresponding cryptographic Hash;One is includes renewal time and right
Answer the descriptive file of Update log.
Preferably, the descriptive file generated in web page resources and step S1 is placed on server end, is deposited in step S3
The update address for including in address and descriptive file is put to be consistent.
Preferably, client application judges that in client include when updating address and updating in step S5 when starting
Between descriptive file and server end in the renewal time comprising updating address and the descriptive file of renewal time whether
Unanimously, if inconsistent create the file named with renewal time in the client, continue the filename and corresponding Kazakhstan that comparison includes
The discrepant file of cryptographic Hash is copied to the file of creation named with the time by the descriptive file of uncommon value from server end
In, and by corresponding version updating journal displaying in the descriptive file of Server Side Include renewal time and corresponding Update log
In client application.
A kind of version updating system based on client terminal web page application, the system comprise the following modules:
Computing module: for calculating the cryptographic Hash of web page resources;
Creation module: for creating descriptive file;
Storage module: for storing the descriptive file of creation to client and server end;
Replacement module: when there is the version of new web page resource, creating new descriptive file, on related new web page resources
Server end is reached, server end current file is replaced;
Judgment module: for judging that the descriptive file in client and in server end updates when client application starting
Whether the time is consistent, if the inconsistent update for completing the descriptive file of client.
Preferably, the computing module calculates the cryptographic Hash of each web page resources by computer hashing algorithm.
Preferably, the descriptive file of the creation module creation includes three, one is comprising update address and more
The descriptive file of new time;One is the descriptive file comprising filename and corresponding cryptographic Hash;One for comprising update when
Between and corresponding Update log descriptive file.
Preferably, the judgment module judge when client application starts in client comprising update address and more
The descriptive file of new time and the renewal time comprising updating address and the descriptive file of renewal time in server end
It is whether consistent, if inconsistent create the file named with renewal time in the client, continue filename that comparison includes and right
The discrepant file of cryptographic Hash is copied to the text of creation named with the time by the descriptive file for answering cryptographic Hash from server end
In part, and corresponding version updating log in the descriptive file of Server Side Include renewal time and corresponding Update log is shown
Show in client application.
Compared with prior art, the method for updating edition of the invention based on client terminal web page application has following prominent
The utility model has the advantages that the version heat of the method for updating edition client terminal web page application based on client terminal web page application updates, it is not necessarily to
Re-download installation, the creation descriptive file of the cryptographic Hash file different come comparison using cryptographic Hash, and Update log description text
Part matches renewal time to show corresponding Update log, solves the update of client terminal web page application version and needs to re-download peace
The problem of filling new client, without passing through the web page resources completion pair in replacement client under the premise of installing client
The version updating of application has good application value.
Specific embodiment
Below in conjunction with embodiment, to the method for updating edition of the invention based on client terminal web page application and system make into
One step is described in detail.
Embodiment
Method for updating edition based on client terminal web page application of the invention generates Hash value list according to web page resources,
By Hash value list in comparison client and server, variant file is downloaded in client from server end,
The web page resources completion in client is replaced to the version updating of application.Specifically includes the following steps:
S1: algorithm computer hashing algorithm calculates the cryptographic Hash of each web page resources, creates three property stated files.
Three descriptive files are respectively as follows: one for comprising updating address and the descriptive file of renewal time (such as
chcp.json);One is the descriptive file (such as chcp.manifest) comprising filename and corresponding cryptographic Hash;One is packet
Descriptive file (such as update_log.json) containing renewal time and corresponding Update log.
S2: generate in step S1 three descriptive files are packaged into client, initial version client application is formed.
S3: being placed on server end for the descriptive file generated in web page resources and step S1, storage address with
It is consistent described in chcp.json.
S4: when having the version of new web page resource, the web page resources of latest edition are generated into newly descriptive according to step S1
File, related new web page resources are uploaded to server end, replace server end current file.
S5: client application judges that the chcp.json in chcp.json and server end in client updates when starting
Whether the time is consistent, creates file (such as 2018-08-10-09-00- named with renewal time in the client if inconsistent
00) comparison chcp.manifest file, is then proceeded to, the discrepant file of cryptographic Hash is downloaded to 2018- from server end
In 08-10-09-00-00, the file of indifference from client copy into 2018-08-10-09-00-00, and by server end
Corresponding version updating journal displaying is in client application in update_log.json.
S6: if allowing to install new web page resources, 2018-08- will be used in the starting of next client application
Web page resources in 10-09-00-00.
Version updating system based on client terminal web page application of the invention, comprises the following modules:
Computing module: for calculating the cryptographic Hash of web page resources.
Specific computing module calculates the cryptographic Hash of each web page resources by computer hashing algorithm.
Creation module: for creating descriptive file.
Specific creation module creates three descriptive files, and one is comprising updating the descriptive of address and renewal time
File (such as chcp.json);One is the descriptive file (such as chcp.manifest) comprising filename and corresponding cryptographic Hash;
One is the descriptive file (such as update_log.json) comprising renewal time and corresponding Update log.
Storage module: for storing the descriptive file of creation to client and server end.
Specific storage module is used to for three descriptive files being packaged into client, forms initial version client application,
And the descriptive file of web page resources and generation is placed on server end, one is kept described in storage address and chcp.json
It causes.
Replacement module: when there is the version of new web page resource, creating new descriptive file, on related new web page resources
Server end is reached, server end current file is replaced.
Judgment module: for judging that the descriptive file in client and in server end updates when client application starting
Whether the time is consistent, if the inconsistent update for completing the descriptive file of client
Specific judgment module is judged when starting for client application in chcp.json and server end in client
Chcp.json renewal time it is whether consistent, created in the client if inconsistent with renewal time name file (such as
2018-08-10-09-00-00), comparison chcp.manifest file is then proceeded to, by the discrepant file of cryptographic Hash from service
Device end is downloaded in 2018-08-10-09-00-00, and the file of indifference is from client copy to 2018-08-10-09-00-00
In, and by version updating journal displaying corresponding in server end update_log.json in client application.
If allowing to install new web page resources, 2018-08-10- will be used in the starting of next client application
Web page resources in 09-00-00.
Embodiment described above, the only present invention more preferably specific embodiment, those skilled in the art is at this
The usual variations and alternatives carried out within the scope of inventive technique scheme should be all included within the scope of the present invention.
Claims (10)
1. a kind of method for updating edition based on client terminal web page application, it is characterised in that: this method is generated according to web page resources
Hash value list is downloaded variant file from server end by Hash value list in comparison client and server
Into client, the web page resources completion in client is replaced to the version updating of application.
2. the method for updating edition according to claim 1 based on client terminal web page application, it is characterised in that: the method
Specifically includes the following steps:
S1: calculating the cryptographic Hash of each web page resources, creates descriptive file;
S2: the descriptive file generated in step S1 is packaged into client, forms initial version client application;
S3: the descriptive file generated in web page resources and step S1 is placed on server end;
S4: when having the version of new web page resource, generating new descriptive file according to step S1 for the web page resources of latest edition,
Related new web page resources are uploaded to server end, replace server end current file;
S5: client application start when judge it is whether consistent with file renewal time descriptive in server end in client, if
It is inconsistent, the file named with renewal time is created in the client, and by the discrepant file of cryptographic Hash under server end
It is loaded onto client application;
S6: next client application uses new web page resources when starting.
3. the method for updating edition according to claim 2 based on client terminal web page application, it is characterised in that: step S1
In, algorithm computer hashing algorithm calculates the cryptographic Hash of each web page resources.
4. the method for updating edition according to claim 3 based on client terminal web page application, it is characterised in that: in step S1
The descriptive file includes three, a descriptive file to include update address and renewal time;One is to include text
The descriptive file of part name and corresponding cryptographic Hash;One is the descriptive file comprising renewal time and corresponding Update log.
5. the method for updating edition according to claim 4 based on client terminal web page application, it is characterised in that: step S3
In, the descriptive file generated in web page resources and step S1 is placed on server end, is wrapped in storage address and descriptive file
The update address contained is consistent.
6. the method for updating edition according to claim 5 based on client terminal web page application, it is characterised in that: step S5
In, client application judges the descriptive file and server end comprising updating address and renewal time in client when starting
In comprising update address and the renewal time of the descriptive file of renewal time it is whether consistent, if inconsistent create in the client
The file named with renewal time is built, continues the descriptive file of the filename that comparison includes and corresponding cryptographic Hash, by cryptographic Hash
Discrepant file is from the file named with the time that server end is copied to creation, and by Server Side Include renewal time
With corresponding version updating journal displaying in the descriptive file of corresponding Update log in client application.
7. a kind of version updating system based on client terminal web page application, it is characterised in that: the system comprises the following modules:
Computing module: for calculating the cryptographic Hash of web page resources;
Creation module: for creating descriptive file;
Storage module: for storing the descriptive file of creation to client and server end;
Replacement module: when there is the version of new web page resource, new descriptive file is created, related new web page resources are uploaded to
Server end replaces server end current file;
Judgment module: for judging the descriptive file renewal time in client and in server end when client application starting
It is whether consistent, if the inconsistent update for completing the descriptive file of client.
8. the method for updating edition according to claim 7 based on client terminal web page application, it is characterised in that: the calculating
Module calculates the cryptographic Hash of each web page resources by computer hashing algorithm.
9. the method for updating edition according to claim 8 based on client terminal web page application, it is characterised in that: the creation
The descriptive file of module creation includes three, a descriptive file to include update address and renewal time;One is
Descriptive file comprising filename and corresponding cryptographic Hash;One is the descriptive text comprising renewal time and corresponding Update log
Part.
10. the method for updating edition according to claim 9 based on client terminal web page application, it is characterised in that: described to sentence
Disconnected module judges that in client include to update address and the descriptive file of renewal time and clothes when client application starts
It is engaged in whether consistent comprising updating address and the renewal time of the descriptive file of renewal time in device end, if inconsistent in client
The file named with renewal time is created in end, continues the descriptive file of the filename that comparison includes and corresponding cryptographic Hash, it will
The discrepant file of cryptographic Hash is from the file named with the time that server end is copied to creation, and more by Server Side Include
Corresponding version updating journal displaying is in client application in the descriptive file of new time and corresponding Update log.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811610611.2A CN109857425A (en) | 2018-12-27 | 2018-12-27 | A kind of method for updating edition and system based on client terminal web page application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811610611.2A CN109857425A (en) | 2018-12-27 | 2018-12-27 | A kind of method for updating edition and system based on client terminal web page application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109857425A true CN109857425A (en) | 2019-06-07 |
Family
ID=66892573
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811610611.2A Pending CN109857425A (en) | 2018-12-27 | 2018-12-27 | A kind of method for updating edition and system based on client terminal web page application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109857425A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110795674A (en) * | 2019-10-30 | 2020-02-14 | 恩亿科(北京)数据科技有限公司 | Configuration updating method and device |
CN112306526A (en) * | 2020-10-30 | 2021-02-02 | 平安普惠企业管理有限公司 | Client data updating method, device, apparatus and storage medium |
CN114398065A (en) * | 2022-03-24 | 2022-04-26 | Tcl通讯科技(成都)有限公司 | Micro front-end system updating method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080104257A1 (en) * | 2006-10-26 | 2008-05-01 | Yahoo! Inc. | System and method using a refresh policy for incremental updating of web pages |
CN104539696A (en) * | 2014-12-26 | 2015-04-22 | 北京像素软件科技股份有限公司 | Client end incremental updating method and system |
CN105630902A (en) * | 2015-12-21 | 2016-06-01 | 明博教育科技股份有限公司 | Method for rendering and incrementally updating webpages |
CN107168999A (en) * | 2017-03-30 | 2017-09-15 | 咪咕数字传媒有限公司 | A kind of method for updating pages and device |
CN108647041A (en) * | 2018-04-02 | 2018-10-12 | 金证财富南京科技有限公司 | A kind of hot update mechanism of the locals mixed type APP web resource |
-
2018
- 2018-12-27 CN CN201811610611.2A patent/CN109857425A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080104257A1 (en) * | 2006-10-26 | 2008-05-01 | Yahoo! Inc. | System and method using a refresh policy for incremental updating of web pages |
CN104539696A (en) * | 2014-12-26 | 2015-04-22 | 北京像素软件科技股份有限公司 | Client end incremental updating method and system |
CN105630902A (en) * | 2015-12-21 | 2016-06-01 | 明博教育科技股份有限公司 | Method for rendering and incrementally updating webpages |
CN107168999A (en) * | 2017-03-30 | 2017-09-15 | 咪咕数字传媒有限公司 | A kind of method for updating pages and device |
CN108647041A (en) * | 2018-04-02 | 2018-10-12 | 金证财富南京科技有限公司 | A kind of hot update mechanism of the locals mixed type APP web resource |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110795674A (en) * | 2019-10-30 | 2020-02-14 | 恩亿科(北京)数据科技有限公司 | Configuration updating method and device |
CN110795674B (en) * | 2019-10-30 | 2022-08-09 | 恩亿科(北京)数据科技有限公司 | Configuration updating method and device |
CN112306526A (en) * | 2020-10-30 | 2021-02-02 | 平安普惠企业管理有限公司 | Client data updating method, device, apparatus and storage medium |
CN114398065A (en) * | 2022-03-24 | 2022-04-26 | Tcl通讯科技(成都)有限公司 | Micro front-end system updating method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110912937B (en) | Block chain-based digital certificate storage platform and certificate storage method | |
CN109857425A (en) | A kind of method for updating edition and system based on client terminal web page application | |
CN105022750B (en) | Resource file loading method and device | |
CN104220987B (en) | Using the method and system installed | |
US8037135B2 (en) | Automatic distributed downloading | |
CN106302753A (en) | The method and system of client-side program incremental update | |
CN103188097A (en) | Method, device and system achieving patch management | |
US20120084346A1 (en) | Page Loading Optimization Using Page-Maintained Cache | |
US20130013571A1 (en) | Management of object mapping information corresponding to a distributed storage system | |
US10645192B2 (en) | Identifying content files in a cache using a response-based cache index | |
CA2954294A1 (en) | Website access method, apparatus, and website system | |
US10169348B2 (en) | Using a file path to determine file locality for applications | |
CN102053853A (en) | Version updating method of online game | |
US9438666B2 (en) | Method and system for resource download | |
RU2005116528A (en) | CREATION AND MANAGEMENT OF CONTENT-RELATED OBJECTS | |
CN105635277A (en) | Upgrade packet providing method and device and client side upgrade method and device | |
CN104935668A (en) | Distributed file system and data synchronization method therefor | |
CN109522042A (en) | A kind of patch update method, system and associated component | |
CN106657433B (en) | Naming method and device for physical network card in multi-network snap ring environment | |
CN103002044A (en) | Method for improving processing capability of multi-platform intelligent terminal | |
CN104346345A (en) | Data storage method and device | |
CN107704465A (en) | Static resource update method and static resource management system | |
CN109634916A (en) | File storage and method for down loading, device and storage medium | |
CN106095835A (en) | Client side picture four-layer caching method | |
CN102479355A (en) | Method and device for loading business documents and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190607 |
|
RJ01 | Rejection of invention patent application after publication |