CN102882974A - Method for saving website access resource by website identification version number - Google Patents
Method for saving website access resource by website identification version number Download PDFInfo
- Publication number
- CN102882974A CN102882974A CN2012103898718A CN201210389871A CN102882974A CN 102882974 A CN102882974 A CN 102882974A CN 2012103898718 A CN2012103898718 A CN 2012103898718A CN 201210389871 A CN201210389871 A CN 201210389871A CN 102882974 A CN102882974 A CN 102882974A
- Authority
- CN
- China
- Prior art keywords
- data
- website
- version number
- page
- characters string
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000008859 change Effects 0.000 claims description 20
- 238000012217 deletion Methods 0.000 claims description 7
- 230000037430 deletion Effects 0.000 claims description 7
- 230000000052 comparative effect Effects 0.000 claims description 6
- 230000002427 irreversible effect Effects 0.000 claims description 3
- 239000000203 mixture Substances 0.000 claims description 3
- 230000001737 promoting effect Effects 0.000 abstract 1
- 230000004044 response Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 239000000284 extract Substances 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000003139 buffering effect Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method and a system for saving website access resource by a website identification version number. The method comprises the following steps of: generating an encrypted character string by encrypting the website identification version number; judging whether data of a web page requested by a client browser is updated by comparing the encrypted character string submitted by the client browser with the encrypted character string newly generated by a website server; and if the data are not updated, directly promoting the client browser to display the web page in a cache memory by using the website server without performing corresponding logical operation, so that bandwidth resources and computational resources of the website sever are saved. The system consists of the client browser, the website server and a data server, wherein the website server mainly comprises a request receiver, an analyzer, a website identification version number generator, an encryptor, a comparator, a logic-arithmetic unit and a data transmitter.
Description
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of method of saving the website visiting resource by data identification version number.
Background technology
For a website, client browser is filed a request to Website server, Website server will be done a series of processing according to this request: obtain related data from database server, play up and form corresponding pagefile, and return to client browser.Therefore user's visit capacity of website is larger, and the bandwidth resources and the computational resource that consume of Website server is also larger so.
The bandwidth resources that consume in order to save Website server, industry also works out volume of transmitted data and the operand that certain methods reduces Website server at present, but all has some defectives.
The implementation method that provides such as Spring Framework in Java, need Website server after playing up the generation of finishing content of pages, the complete page byte data that is about to return client browser is carried out the MD5 code encryption, utilize character string that md5 encryption finishes as the identifier of ETAG.This processing mode requires the request for each client browser, Website server must be finished all logical operations, comprise the content of playing up accession page, finish after these, ETAG with the browser transmission compares mutually, whether can judge this page by client-cache, therefore, this method can't be saved the computational resource of Website server, especially in the situation that high access, because Website server need to all must be processed all logical operations to each request, although reduced the taking of internet transmission bandwidth resources, Website server access pressure decreased be there is no help.
Patent " supplying method of WEB page data, WEB server and WEB application system " (number of patent application: 200910252576.6), this patent has proposed a kind of method: when the WEB server obtain that client sends to the request of the page time, the WEB server judges whether first to provide to client the element data of same page, if provided, the WEB server only provides the current business data of the identical WEB page to client, reduce by this method the mutual data volume between WEB server and the client, thereby avoid the waste to bandwidth resources.But the problem of the method is that the logic of the client shows page is complicated, client browser obtains new business datum from the WEB server, then the element data that obtains with before client browser synthesizes, form the new WEB page, this needs client browser to carry out a large amount of JavaScript logical operations, synthesizes final displayed page, for various different browsers on the client, aspect compatible, need to make a large amount of tests and modification, realize that difficulty is higher; In addition, behind the new website version of WEB server updating, its page elements data also change simultaneously, need notice browser update all page elements data and business datums, the processing mode more complicated.And no matter whether the WEB server provided the identical WEB page to client browser, the WEB server all must be at every turn to the client browser transmit traffic data, this reduce realize aspect the mutual data volume insufficient.
Therefore, saving access resources, particularly bandwidth resources and the computational resource of Website server how fully, quickly, is very necessary for the website of high access.
Summary of the invention
For effective minimizing Website server access resources occupation problem, the present invention proposes a kind of method and system of saving the website visiting resource by website identification version number.
The invention discloses a kind of method of saving the website visiting resource by website identification version number, technical scheme is as follows, comprising:
Website server receives the request of client browser, and according to the data of needs in the request, the accessing database server is obtained the data identification version number of many corresponding data records and current website released version number.
Described data identification version number number is combined with data record ID by versions of data, just can form unique data identification version number, records therewith current versions of data number in order to the recognition data record.Described versions of data number finger is in database, and after certain bar data record changed, database was the sign that data record generates unique versions of data by the good trigger of predefined.
Data identification version number and current website released version number form website identification version number according to fixing order, and to the mode that identification version number in website takes One-Way Encryption, generate unique encrypted characters string.
Website server sends the data of encrypted characters string and displayed page to client browser.Browser is set up the corresponding relation of encrypted characters string and displayed page, and, by with displayed page as the document object among the javascript, adopt the mode of key-value pair (KEY: encrypted characters string, VALUE:document object (corresponding displayed page)) to be buffered in the browser.In the situation that different URL of request server repeatedly, client browser in fact can a plurality of different document objects of buffer memory, corresponding a plurality of different displayed pages.
When browser proposed identical accessing page request (URL and submission content are consistent) to Website server again, the encrypted characters string that browser will obtain before sent Website server to.
After Website server receives client browser requests, again according to the data of needs in the requests for page, the accessing database server, obtain the data record ID that need to show, versions of data number and current site released version number, after they are combined into website identification version number in a fixed order, version number carries out One-Way Encryption to website identification, generates new encrypted characters string.
Then newly-generated encrypted characters string and the encrypted characters string that receives from client browser are compared, if after come to the same thing, then Website server is directly notified the document object that client browser extracts this encrypted characters string of correspondence in the buffer memory, thereby shows the corresponding page.If relatively rear result is different for the encrypted characters string, then Website server again generates the new page according to new data acquisition system and sends client browser to, and sends simultaneously the new encrypted characters string of browser to.
The information that client is returned according to server perhaps is illustrated in the content of pages in the browser rs cache, perhaps shows the content of pages that server newly sends, and preserves new encrypted characters string and new displayed page and corresponding relation between the two.
In order to address the above problem, the invention also discloses a kind of system that saves the website visiting resource by website identification version number, native system comprises that client browser, Website server and database servers group become.
Client browser comprises multi-page buffer, renderer.
The multi-page buffer is used for the page that the buffer memory Website server returns.By with displayed page as the document object among the javascript, adopt key-value pair (KEY: encrypted characters string, VALUE:document object (corresponding displayed page)) mode is buffered in the browser multipage buffer, in the situation that different URL of request server repeatedly, the multi-page buffer in fact can a plurality of different document objects of buffer memory, corresponding a plurality of different displayed pages.
Renderer is used for the page that the displaying Website server returns, or shows the page that calls from the multi-page buffer.
Website server mainly comprises request receiving device, analyzer, website identification version number maker, encryption equipment, comparator, logical-arithmetic unit, data transmitter.
The request receiving device is used for the page request that Website server receives client browser, wherein includes the same page encrypted characters string of browser buffer memory last time, and gives analyzer the solicited message that receives.
Analyzer, be used for the data according to browse request page needs, thereby the data message that need to obtain when determining to prepare the accessing database server, then accessing database server, obtain the page and show needed related data Record ID, versions of data number, and current site released version number, and these data messages are sent to website identification version number maker.
Website identification version number maker, after receiving data record ID that analyzer sends, versions of data number, current site released version number, first the versions of data of data record ID and this data record number according to the synthetic data identification version number of fixing der group, again data identification version number and website released version number are combined into website identification version number in a fixed order, then newly-generated website version number are sent to encryption equipment.
Encryption equipment is used for identification version number in website is carried out One-Way Encryption, forms the encrypted characters string.
Comparator is used for newly-generated encrypted characters string and the same page encrypted characters string that receives from client browser are compared.Comparative result is different, then carries out work by logical-arithmetic unit, if identical, calling data transmitter then.
Logical-arithmetic unit is used in the situation that the relatively rear result of encrypted characters string is different, and then Website server carries out logical operation according to new data acquisition system again, generates the new page, and new page data and new encrypted characters string are sent to data transmitter.
Data transmitter, in the situation that after come to the same thing, the document object of directly notifying client browser to extract this encrypted characters string of correspondence in the multipage buffer, thus show the corresponding page.In the situation that the result is different relatively, the new page data that receives and new encrypted characters string are sent to client browser.
Database server is for the various data messages of managing web.
The present invention compared with prior art, its remarkable advantage:
Whether 1, differentiate content of pages by website identification version number upgrades, client browser is sent to the newly-generated encrypted characters string of the encrypted characters string of Website server and Website server to be compared, if comparative result is identical, Website server will point out client browser directly to use the buffer memory page, save the bandwidth resources of Website server.
2, because after Website server receives the page request of client browser, at first relatively the encrypted characters string judges whether content of pages upgrades, solved in the prior art, after Website server must be finished first all logical operations, judge that just this page whether by the problem of client browser buffer memory, saved the computational resource of Website server.
3, (number of patent application: the problem that exists 200910252576.6): can't solve element data and change, client browser was not showed the synchronous renewal of content to patent " supplying method of WEB page data, WEB server and WEB application system " when business datum did not change.The inventive method changes and business datum does not have vicissitudinous situation at the Website page element data, by website released version in the encrypted characters string relatively number, when guaranteeing that the encrypted characters string changes, browser can be showed the up-to-date page immediately, has improved the real-time exhibition effect of browser.
4, the present invention takes the mode of One-Way Encryption to website identification version number, generates the encrypted characters string, makes the hacker guess that original website identifies version number, is conducive to improve the safety of transfer of data by encrypted characters string content.
5, the present invention as the document object among the javascript, adopts the mode of key-value pair to be buffered in the browser displayed page.Like this in the situation that different URL of request server repeatedly, client browser in fact can a plurality of different document objects of buffer memory, corresponding a plurality of different displayed pages are conducive to further improve the access speed of browser, reduce taking the Website server access resources.
6, highly versatile of the present invention has been avoided needing to consider problem compatible between the various different browsers in existing patented method, conveniently is applied in the various third party websites.
Description of drawings
Fig. 1 is embodiment of the invention handling process.
Fig. 2 is that embodiment of the invention encrypted characters is concatenated into flow process.
Fig. 3 is embodiment of the invention system construction drawing.
Embodiment
For the purpose, technical scheme and the advantage that make embodiments of the invention is clearer, the below does simplicity of explanation to some terms that relate in the embodiment of the invention.
Whether ETAG:ETAG is the Entity Tag of URL, be used for indicating the URL object and change, and distinguishes different language and Session etc.Http protocol specification definition ETAG be " the entity value of requested variable ", ETAG be one can be related with the Web resource mark (token), typically the Web resource can be a Web page, also may be JSON or XML document.
HTTP conditional code 304 Not Modified: be called for short 304 states, WEB resource corresponding to expression is not modified.Client has the document of buffering, and has sent an opportunistic request (generally provide the If-Modified-Since head and represent that the client only wants the document that upgrades than the scheduled date).Server is told the client, and originally the document of buffering can also continue to use.HTTP replys and conditional code is 304 when Website server returns, and client browser uses the page of buffer memory to show the user.
HTTP conditional code 200 OK: be called for short 200 states, the success of expression client browser requests asks desirable head response or data volume that this response is returned.
Ajax: i.e. " Asynchronous JavaScript and XML " (asynchronous JavaScript and XML) refers to a kind of webpage development technology that interaction network page is used that creates.By the Ajax technology, to the service end request URL, and the concrete page that obtains in the corresponding access of client-cache.
Versions of data number: in database, every data represent certain entity, usually in database, the content of each data entity has occured once to change, variation has occured in data entity version number, therefore adding data entity is once to change, Update Table entity content also is once to change, the deletion data entity also is once to change, for the deletion data entity, do not take really to go in database, to delete data entity, but simply the flag bit in the data entity is labeled as deletion, therefore every data all can have own unique data identification version number as long as exist.After data changed, database generated unique versions of data number by the good trigger of predefined for its, and the difference according to versions of data number just can identify data entity whether change has occured by the versions of data field in the data entity.When the versions of data that therefore obtains for twice when the same record is number identical, then can judge the not variation of this data entity, when the versions of data of getting for twice number not simultaneously, can variation occur the decision data entity just.
Data record ID: for a certain data record, the uniqueness how recognition data records? by distributing a unique data record ID for each bar data record, just can be according to the data record ID identical same data record that determines whether whether.
Data identification version number: versions of data number combines with data record ID, just can form unique data identification version number, records therewith current versions of data number in order to the recognition data record.When a data record changes, form monobasic data identification version number, it number is comprised of by permanent order the versions of data of a data Record ID and this data record, when many data records change, form multivariate data identification version number, it is made of in a fixed order a plurality of monobasic data identification version number.
Website released version number: when all data of website and arithmetic logic all do not change, but the web site contents upgrading so that the page shows that change has occured content, therefore identifies website renewal itself and the version number that need to provide.
Encrypted characters string: many data in the common meeting display data storehouse on the Website page; therefore judge when whether content of pages changes; need many relevant data records of the comprehensive judgement of Website server whether to change; upgrading also may occur in website simultaneously simultaneously; also need number to judge whether content change has occured according to the website released version; therefore each page need to provide a specific method; number generate unique encrypted characters string according to the data identification version number of many data record that relates to this page and website released version, whether change in order to the data of judging the page.And this ad hoc approach is carried out because of the first step that is placed on the Servers-all logical operation, thereby when page data is not updated, can reduce the Website server operand, saves the server computational resource.
Consult shown in Figure 1ly, the process flow of the embodiment of the invention specifically may further comprise the steps:
Step 100: client browser proposes access request to Website server.
Step 101: after Website server was analyzed the request of browser, the accessing database server obtained the data record ID of required data in the displayed page and versions of data number, and current website released version number.Wherein, the form of versions of data number is taked to revise a data record at every turn and then add 1 mode with [0000000001] beginning at present.The form of data record ID is taked then to add 1 mode with data record of the each interpolation of [0000000001] beginning at present.The generating mode that the current web released version number is taked changes all take 1 cumulative for step-length each time from the front page beginning of reaching the standard grade, and the version number that then reaches the standard grade for the first time is [0000000001].
Data identification version number generating mode is number to combine in a fixed order with data record ID and versions of data.Data ID such as a data record self is [0000015321], and the number of times that is modified is 2 times, and then the data identification version number of these data is [00000153210000000002].
Data identification version number and website released version number form website identification version number according to prior permanent order, and by identification version number in website is carried out One-Way Encryption, generate unique encrypted characters string, send the data of the page to client browser, and unique encrypted characters string that affix generates in transferring content.
In embodiments of the present invention, employing be md5 encryption, to guarantee the irreversible of data.The actual algorithm that also can take other satisfactory encryption.
Step 102: client browser adopts the Ajax technology to obtain server back page content, content of pages is showed the user, simultaneously server is returned the displayed page that encrypted characters string and server return and set up one-to-one relationship, and adopt the mode of key-value pair (KEY: encrypted characters string, VALUE:document object (corresponding displayed page)) to be buffered in the browser as the document object among the javascript displayed page.So in the situation that request server URL repeatedly, in fact can the buffer memory a plurality of different document objects of client browser (corresponding a plurality of different pages of showing of needing).Show browser in order in needs, utilize the encrypted characters string just can obtain corresponding document object and resolve to content of pages as key.
Step 103: (URL and the parameter of browser submission are all identical with parameter with the URL that submitted to last time when the user proposes identical accessing page request again, in general when browser be not closed and interval time less than a given time, this condition all can be satisfied) time, client browser should the Header of " IF-NONE-MATCH " head will before the corresponding encrypted characters that obtains serially add into, and submit to Website server.
Step 104: Website server is analyzed request, again generates new website identification version number, and re-encrypted generates new encrypted characters string, and then the encrypted characters string with the client browser submission compares.
Step 105: relatively whether the encrypted characters string is identical.If identical, carry out step 106.If not identical, carry out step 107.
Step 106: if encrypted characters string comparative result is identical, represent that then the data identification version number that obtains in the client browser Twice requests is identical, the data of returning also should be identical, and the page that returns of client browser Twice requests also should be identical so.Website server directly returns 304 states, and does not transmit the displayed page content.
Partial code is following can be for reference:
// obtain encrypted characters string content
byte[]?body?=?responseWrapper.toByteArray();
int?statusCode?=?responseWrapper.getStatusCode();
// judge that conditional code is whether in normal range (NR)
if?(isEligibleForEtag(request,?responseWrapper,?statusCode,?body))?{
// get first response the inside
Etag
String?responseETag?=?responseWrapper.getEtag();
if?(responseETag?==?
null)?{
responseETag?=?generateETagHeaderValue(body);
response.setHeader(
HEADER_ETAG,?responseETag);
}
// compare with the encrypted characters string of browser
String?requestETag?=?request.getHeader(
HEADER_IF_NONE_MATCH);
if?(responseETag.equals(requestETag))?{
if?(logger.isTraceEnabled())?{
logger.trace("ETag?["?+?responseETag?+?"]?equal?to
If-None-Match,?sending?304");}
In // identical the situation, it is 0 that the back page data length directly is set
response.setContentLength(0);
// and the conditional code of HTTP in replying is set is 304:NOT_MODIFIED
response.setStatus(
HttpServletResponse.
SC_NOT_MODIFIED);?}
else?{
In // different the situation, output page content-data is to browser
copyBodyToResponse(body,?response);}
}
else?{
// improper scope is directly exported page content-data
if?(logger.isTraceEnabled())?{
logger.trace("Response?with?status?code?["?+
statusCode?+?"]?not?eligible?for?ETag");
}
copyBodyToResponse(body,?response);}。
Step 107: if encrypted characters string comparative result is different, then Website server returns 200 states, again generates new displayed page according to new data simultaneously, then new encrypted characters string and new displayed page content is sent to client browser.
Step 108: client browser is judged according to the HTTP conditional code that Website server returns, if 304 states illustrate that then displayed page corresponding to encrypted characters string is buffered in client browser.Can directly extract by the javascript code utilization request encrypted characters string in the client browser the before document object of buffer memory, and become the document analysis of object content of pages to show.If 200 states, then client browser is showed the new page that Website server returns, and new displayed page and new encrypted characters string are buffered in the client browser, and the mode of buffer memory is identical with the treatment step in the step 102.
For the page that prevents client-cache too much, here the page of client-cache has the upper limit, what adopt at present is definite value 10, if client browser buffer memory 10 different pages, then the page of more ancient buffer memory of access time then can be abandoned, and namely utilizes javascript that document object and the corresponding encrypted characters string of this page are directly removed.This page during request server, can not add corresponding encrypted characters string again yet, carries out a series of processing as brand-new access request.
Consult shown in Figure 2ly, embodiment of the invention encrypted characters is concatenated into flow process, and its step is as follows:
Step 200: after Website server was received the page request of browser, the accessing database server obtained relevant data record ID, versions of data number and website released version number.
Step 201: when the page is showed the wall scroll data record, only need to number link together composition data identification version number to the versions of data of wall scroll data record ID and this data record by the mode that character string merges with permanent order.
When the page is showed many data records, one by one the versions of data of many data Record IDs and corresponding data record number is merged into a plurality of monobasic data identification version number by the order with regulation, then these monobasic data identification version numbers is merged into multivariate data identification version number in a fixed order.
The data identification character string was necessary for permanent order during character string connected, to guarantee twice same client-requested, the data that institute's expection obtains are same, therefore should be noted that, all data acquisition systems of obtaining should be the set of order, in the time of such as Query Database, if the outcome expectancy of inquiry is the set of many records, then the SQL text of Query Database must add order, such as ORDER DESC or ORDER ASC etc.To guarantee that querying condition is identical, the content of returning also should be identical.
Step 202: data identification version number and website released version number are according to the synthetic website of fixing der group identification version number.
Step 203: version number carries out One-Way Encryption to website identification.
Step 204: generate new unique encrypted characters string.
The generation of unique encrypted characters string must meet following principle, at first the encrypted characters string is necessary for One-Way Encryption, original data identification version number to guarantee that the hacker can't guess by encrypted characters string content, secondly the generation of encrypted characters string need to guarantee that data identification version number and website identify version number's character string order of connection and follow fixing arranged sequentially, be combined into website identification version number, to guarantee following constraint.
If there are 2 website identification version numbers, be respectively x, y, if x equals y, the encrypted characters string f (x) that then forms after the One-Way Encryption equals f (y), if x is not equal to y, then the encrypted characters string f (x) after the One-Way Encryption is not equal to f (y), to guarantee by encrypting the comparison of later character string, just can know whether 2 website identification version numbers are identical, just mean also whether the page that can know the website change has occured.The md5 encryption mode can be satisfied the demand at present.
Consult shown in Figure 3ly, embodiment of the invention system configuration comprises: browser 30, Website server 31, database server 32.
Client browser comprises multi-page buffer 300, renderer 301.
Request receiving device 310 is used for the page request that Website server 31 receives client browser 30, wherein includes the same page encrypted characters string of browser buffer memory last time, and gives analyzer 311 solicited message that receives.
Website identification version number maker 312, after receiving data record ID that analyzer 311 sends, versions of data number, current site released version number, when only existing the wall scroll data record to change, only need to number link together composition data identification version number to the versions of data of wall scroll data record ID and this data record by the mode that character string merges with permanent order.When there are many data records in the page, first one by one the versions of data of many data Record IDs and corresponding data record number is merged into a plurality of monobasic data identification version number by permanent order, then a plurality of monobasic data identification version number is merged into a multivariate data according to fixing order and identifies version number.Again final data identification version number and website released version number are combined into website identification version number in a fixed order, then newly-generated website version number are sent to encryption equipment 313.
Encryption equipment 313 is used for identification version number in website is carried out One-Way Encryption, forms the encrypted characters string, employing be md5 encryption, to guarantee the irreversible of data.
Logical-arithmetic unit 315 is used for then again carrying out logical operation according to new data acquisition system in the situation that the relatively rear result of encrypted characters string is different, generates the new page, and new page data and new encrypted characters string are sent to data transmitter 316.
The present invention is by data identification version number, whether the page of judging client browser requests Data Update has occured, if do not upgrade, Website server will not carry out corresponding logical operation, directly the prompting client browser is showed the page in the buffer memory, has saved bandwidth resources and the computational resource of Website server.
The developer of this area can carry out various changes and modification to embodiments of the invention and not break away from the spirit and scope of the present invention.Like this, if these in the embodiment of the invention are revised and modification belongs to claim of the present invention and the scope that is equal within, then the embodiment among the present invention also comprises these changes and modification interior.
Claims (9)
1. a method of saving the website visiting resource by website identification version number is characterized in that, comprising:
Website server receives the request of client browser, data according to needs in the requests for page, obtain corresponding data record ID, versions of data number, website released version number at database server, they are identified version number by the rear website that forms of permanent order ordering, carry out One-Way Encryption, generate unique encrypted characters string;
Website server sends the data of encrypted characters string and displayed page to client browser;
Browser is set up the corresponding relation of encrypted characters string and displayed page, and displayed page is cached, in the situation that different URL of request server repeatedly, client browser in fact can a plurality of different document objects of buffer memory, corresponding a plurality of different displayed pages;
When browser proposed identical accessing page request to Website server, the encrypted characters string that browser will obtain simultaneously before sent Website server to;
Website server generates new encrypted characters string after receiving client browser requests, then newly-generated encrypted characters string and the encrypted characters string that receives from client browser is compared;
If after come to the same thing, then the Website server page of directly notifying client browser to extract in the buffer memory is showed; If relatively rear result is different for the encrypted characters string, then Website server again generates the new page according to new data and sends client browser to, and sends simultaneously the new encrypted characters string of browser to.
2. the method for claim 1, it is characterized in that, certain bar record in database is newly added, revise, perhaps after the logic deletion, database trigger can be automatically performed, give new unique versions of data of this data record number, after Website server received the request of client browser, the zero access database obtained this versions of data number.
3. the method for claim 1, it is characterized in that, browser is set up the corresponding relation of encrypted characters string and displayed page, and, by with displayed page as the document object among the javascript, adopt the mode of key-value pair to be buffered in the browser, wherein key-value pair comprises, KEY: encrypted characters string, VALUE:document object.
4. the method for claim 1 is characterized in that, versions of data number combines with data record ID, just can form unique data identification version number, records therewith current versions of data number in order to the recognition data record; When a data record changes, form monobasic data identification version number, it number is comprised of by permanent order the versions of data of a data Record ID and this data record, when many data records change, form multivariate data identification version number, it is made of in a fixed order a plurality of monobasic data identification version number.
5. the method for claim 1 is characterized in that, data identification version number and website released version number form website identification version number in a fixed order.
6. the method for claim 1 is characterized in that, to website identification version number, employing be md5 encryption, to guarantee the irreversible of data.
7. a system that saves the website visiting resource by website identification version number is characterized in that, comprising:
Client browser, Website server and database servers group become;
Client browser comprises multi-page buffer, renderer;
The multi-page buffer, be used for the page that the buffer memory Website server returns, by with displayed page as the document object among the javascript, adopt the mode of key-value pair to be buffered in the browser multipage buffer, in the situation that different URL of request server repeatedly, the multi-page buffer in fact can a plurality of different document objects of buffer memory, corresponding a plurality of different displayed pages;
Renderer is used for the page that the displaying Website server returns, or shows the page that calls from the multi-page buffer;
Website server mainly comprises request receiving device, analyzer, website identification version number maker, encryption equipment, comparator, logical-arithmetic unit, data transmitter;
The request receiving device is used for the page request that Website server receives client browser, wherein includes the same page encrypted characters string of browser buffer memory last time, and gives analyzer the solicited message that receives;
Analyzer, be used for the data according to browse request page needs, thereby the data message that need to obtain when determining to prepare the accessing database server, then accessing database server, obtain the page and show needed related data Record ID, versions of data number, and current site released version number, and these data messages are sent to website identification version number maker;
Website identification version number maker, after receiving data record ID that analyzer sends, versions of data number, current site released version number, first the versions of data of data record ID and this data record number according to the synthetic data identification version number of fixing der group, again data identification version number and website released version number are combined into website identification version number in a fixed order, then newly-generated website version number are sent to encryption equipment;
Encryption equipment is used for identification version number in website is carried out One-Way Encryption, forms the encrypted characters string;
Comparator is used for newly-generated encrypted characters string and the same page encrypted characters string that receives from client browser are compared; Comparative result is different, then carries out work by logical-arithmetic unit, if identical, calling data transmitter then;
Logical-arithmetic unit is used in the situation that the relatively rear result of encrypted characters string is different, and then Website server carries out logical operation according to new data acquisition system again, generates the new page, and new page data and new encrypted characters string are sent to data transmitter;
Data transmitter, in the situation that after come to the same thing, the document object of directly notifying client browser to extract this encrypted characters string of correspondence in the multipage buffer, thus show the corresponding page; In the situation that the result is different relatively, the new page data that receives and new encrypted characters string are sent to client browser;
Database server is for the various data messages of managing web.
8. system as claimed in claim 7, it is characterized in that, website identification version number maker, after receiving data record ID that analyzer sends, versions of data number, current site released version number, when only existing the wall scroll data record to change, only need to number link together composition data identification version number to the versions of data of wall scroll data record ID and this data record by the mode that character string merges with permanent order; When existing many data records to change, first one by one the versions of data of wall scroll data record ID and corresponding data record number is merged into a plurality of monobasic data identification version number by permanent order, then a plurality of monobasic data identification version number is merged into a multivariate data according to fixing order and identifies version number; Again final data identification version number and website released version number are combined into website identification version number in a fixed order.
9. system as claimed in claim 7 is characterized in that, in database server, versions of data number generates automatically by trigger; Certain bar record in database is newly added, and revises, and perhaps after the logic deletion, database trigger can be automatically performed, and gives the new unique versions of data of this data record number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210389871.8A CN102882974B (en) | 2012-10-15 | 2012-10-15 | Method for saving website access resource by website identification version number |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210389871.8A CN102882974B (en) | 2012-10-15 | 2012-10-15 | Method for saving website access resource by website identification version number |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102882974A true CN102882974A (en) | 2013-01-16 |
CN102882974B CN102882974B (en) | 2015-04-29 |
Family
ID=47484116
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210389871.8A Expired - Fee Related CN102882974B (en) | 2012-10-15 | 2012-10-15 | Method for saving website access resource by website identification version number |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102882974B (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103593406A (en) * | 2013-10-17 | 2014-02-19 | 北京奇虎科技有限公司 | Static resource identifier processing method and device |
CN104811394A (en) * | 2015-04-21 | 2015-07-29 | 深圳市出众网络有限公司 | Method and system for saving traffic for accessing server |
CN104820676A (en) * | 2015-04-14 | 2015-08-05 | 天脉聚源(北京)教育科技有限公司 | Method and device for judging magnitude of version number |
CN105119917A (en) * | 2015-08-21 | 2015-12-02 | 福建天晴数码有限公司 | Data safety enhancing method and system |
CN105592132A (en) * | 2015-07-09 | 2016-05-18 | 中国银联股份有限公司 | Method for providing data through network |
CN106156291A (en) * | 2016-06-29 | 2016-11-23 | 深圳市彬讯科技有限公司 | The caching method of static resource and system thereof based on Localstroage |
WO2017113060A1 (en) * | 2015-12-28 | 2017-07-06 | 华为技术有限公司 | Website access method and device, and website system |
CN107357876A (en) * | 2017-07-06 | 2017-11-17 | 校脸科技(北京)有限公司 | A kind of web access methods and device |
CN108415976A (en) * | 2018-02-09 | 2018-08-17 | 西安博达软件股份有限公司 | The method of release quickly site file based on CMS system |
CN109522060A (en) * | 2018-10-16 | 2019-03-26 | 深圳壹账通智能科技有限公司 | The restoring method and terminal device of business scenario |
CN109933349A (en) * | 2019-01-28 | 2019-06-25 | 优信拍(北京)信息科技有限公司 | A kind of method to be timely updated based on vue spa, system and equipment |
CN112088362A (en) * | 2018-05-04 | 2020-12-15 | 微软技术许可有限责任公司 | Notification update for saved sites |
CN112149008A (en) * | 2020-09-18 | 2020-12-29 | 四川工商学院 | Method for calculating document version set |
CN113254484A (en) * | 2021-06-17 | 2021-08-13 | 杭州天谷信息科技有限公司 | Client-based data encryption caching method and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001065771A2 (en) * | 2000-03-01 | 2001-09-07 | Spicer Corporation | Network resource communication system |
CN102724297A (en) * | 2012-05-25 | 2012-10-10 | 上海传漾网络科技有限公司 | Method for increasing access speed in browser/server (BS) architecture advertisement management system |
-
2012
- 2012-10-15 CN CN201210389871.8A patent/CN102882974B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001065771A2 (en) * | 2000-03-01 | 2001-09-07 | Spicer Corporation | Network resource communication system |
CN102724297A (en) * | 2012-05-25 | 2012-10-10 | 上海传漾网络科技有限公司 | Method for increasing access speed in browser/server (BS) architecture advertisement management system |
Non-Patent Citations (1)
Title |
---|
CSDN: "Etag与HTTP缓存机制", 《HTTP://BLOG.CSDN.NET/KIKIKIND/ARTICLE/DETAILS/6266101》 * |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103593406A (en) * | 2013-10-17 | 2014-02-19 | 北京奇虎科技有限公司 | Static resource identifier processing method and device |
CN104820676B (en) * | 2015-04-14 | 2018-06-19 | 天脉聚源(北京)教育科技有限公司 | A kind of method and device for judging version number's size |
CN104820676A (en) * | 2015-04-14 | 2015-08-05 | 天脉聚源(北京)教育科技有限公司 | Method and device for judging magnitude of version number |
CN104811394A (en) * | 2015-04-21 | 2015-07-29 | 深圳市出众网络有限公司 | Method and system for saving traffic for accessing server |
CN105592132B (en) * | 2015-07-09 | 2019-05-10 | 中国银联股份有限公司 | Pass through the method for network provided data |
CN105592132A (en) * | 2015-07-09 | 2016-05-18 | 中国银联股份有限公司 | Method for providing data through network |
CN105119917B (en) * | 2015-08-21 | 2018-03-06 | 福建天晴数码有限公司 | Strengthen the method and system of Information Security |
CN105119917A (en) * | 2015-08-21 | 2015-12-02 | 福建天晴数码有限公司 | Data safety enhancing method and system |
US10412176B2 (en) | 2015-12-28 | 2019-09-10 | Huawei Technologies Co., Ltd. | Website access method, apparatus, and website system |
WO2017113060A1 (en) * | 2015-12-28 | 2017-07-06 | 华为技术有限公司 | Website access method and device, and website system |
CN106156291A (en) * | 2016-06-29 | 2016-11-23 | 深圳市彬讯科技有限公司 | The caching method of static resource and system thereof based on Localstroage |
CN107357876A (en) * | 2017-07-06 | 2017-11-17 | 校脸科技(北京)有限公司 | A kind of web access methods and device |
CN108415976A (en) * | 2018-02-09 | 2018-08-17 | 西安博达软件股份有限公司 | The method of release quickly site file based on CMS system |
CN112088362A (en) * | 2018-05-04 | 2020-12-15 | 微软技术许可有限责任公司 | Notification update for saved sites |
CN112088362B (en) * | 2018-05-04 | 2024-07-23 | 微软技术许可有限责任公司 | Notification update for saved sites |
CN109522060A (en) * | 2018-10-16 | 2019-03-26 | 深圳壹账通智能科技有限公司 | The restoring method and terminal device of business scenario |
CN109933349A (en) * | 2019-01-28 | 2019-06-25 | 优信拍(北京)信息科技有限公司 | A kind of method to be timely updated based on vue spa, system and equipment |
CN112149008A (en) * | 2020-09-18 | 2020-12-29 | 四川工商学院 | Method for calculating document version set |
CN113254484A (en) * | 2021-06-17 | 2021-08-13 | 杭州天谷信息科技有限公司 | Client-based data encryption caching method and system |
Also Published As
Publication number | Publication date |
---|---|
CN102882974B (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102882974B (en) | Method for saving website access resource by website identification version number | |
US11569982B2 (en) | Blockchain compression using summary and padding blocks | |
CN105095226B (en) | Web page resources loading method and device | |
WO2016026384A1 (en) | Client page display method, device and system | |
CN102333092B (en) | Network user identification method and application server | |
CN101267299B (en) | A method and system for securely display data on the webpage | |
US8825749B2 (en) | Method of tracking offline user interaction in a rendered document on a mobile device | |
JP5420087B2 (en) | Method and system for providing a message including a universal resource locator | |
CN112073405A (en) | Webpage data loading method and device, computer equipment and storage medium | |
CN103209223A (en) | Distributed application conversation information sharing method and system and application server | |
US20130246504A1 (en) | Method for subscribing to notification, apparatus and system | |
CN107465707A (en) | A kind of content refresh method and device of content distributing network | |
CN105472045A (en) | Database migration method and database migration device | |
US9473592B2 (en) | Methods for optimizing a web content proxy server and devices thereof | |
CN105812351A (en) | Method and system for sharing session | |
CN108848108A (en) | Based on mobile Internet+innovation item PDCA process management platform | |
CN103873502A (en) | Cache updating method and system, and update resource providing method and system | |
CN103795767A (en) | Synchronization method and system for cross-application session information | |
CN107844488B (en) | Data query method and device | |
JP2005327154A (en) | Html file processing method and program | |
CN105279156B (en) | Network information communication means and network information browsing apparatus | |
EP2787454A1 (en) | Methods for optimizing a web content proxy server and devices thereof | |
CN103401931A (en) | Method and system for downloading file | |
CN102004729A (en) | Method and system for showing website webpage and website server | |
CN106959975B (en) | Transcoding resource cache processing method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20171130 Address after: Huidalu 210000 Jiangsu province Nanjing Jiangbei District No. 6 Beidou No. 2 building, building 70 room Patentee after: BAIZHUO NETWORK TECHNOLOGY CO.,LTD. Address before: A software building Spark Road 210061 in Jiangsu province Nanjing City high-tech zones 12F Patentee before: FOCUS TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150429 |
|
CF01 | Termination of patent right due to non-payment of annual fee |