CN103995883A - Master page file caching and Web page synthesizing method based on client-side browser - Google Patents

Master page file caching and Web page synthesizing method based on client-side browser Download PDF

Info

Publication number
CN103995883A
CN103995883A CN201410231953.9A CN201410231953A CN103995883A CN 103995883 A CN103995883 A CN 103995883A CN 201410231953 A CN201410231953 A CN 201410231953A CN 103995883 A CN103995883 A CN 103995883A
Authority
CN
China
Prior art keywords
page
client
mother matrix
code
server
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
CN201410231953.9A
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.)
Henan University of Traditional Chinese Medicine HUTCM
Original Assignee
Henan University of Traditional Chinese Medicine HUTCM
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 Henan University of Traditional Chinese Medicine HUTCM filed Critical Henan University of Traditional Chinese Medicine HUTCM
Priority to CN201410231953.9A priority Critical patent/CN103995883A/en
Publication of CN103995883A publication Critical patent/CN103995883A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The invention relates to a master page file caching and Web page synthesizing method based on a client-side browser. The master page caching based on a client side can be achieved, and a page synthesized by the client-side browser can be finally presented to a user. The method includes the steps that a client sends a page access request to a server for the first time, and after receiving the request, the server respectively sends a master page html code and a content html code of a corresponding page to the client-side browser, and meanwhile sends the file ID of a master page to a client-side cookie; the master page code and the content html code are synthesized to be a html page file which is presented to the user through the browser, when the client side requests a page again to the server, the ID carrying the master page in the cookie is sent to the server, after the client-side browser receives the ID, a corresponding master page code is extracted from a local cache, and the master page code and the content html code are combined into one html page file. The master page file caching and Web page synthesizing method is simple, easy to implement, substantially reduces data size of transmitted web pages and improves the communication capability of a computer.

Description

Mother matrix page file buffer memory based on client browser and Web page synthetic method
Technical field
The present invention relates to computer communication field, a kind of mother matrix page file buffer memory and the Web page synthetic method based on client browser that particularly relates to the mother matrix page file client-cache of the server end Web page and synthesized the page of finally presenting to user by client browser.
Background technology
In today of scientific development, computing machine, communication are widely used, but in use, the webpage that conventionally sends to client browser is all made up of two parts in this field at present: a part is the code of mother matrix page, and a part is the content code of webpage (being also content pages) oneself.In the time of the different page of the same website of access, possible its mother matrix page is all identical, like this, send in the page of client at every turn and all comprise identical mother matrix page code, this has just caused the waste of server-side processes resource, and the waste of Internet Transmission bandwidth resources, also waste the memory source of client simultaneously.Client-based mother matrix caching of page method, can solve such problem.The method is applied to webpage design, will significantly reduce the data volume that transmits webpage.But so far there are no the mother matrix page file buffer memory based on client browser and the synthetic open report of the Web page.
Summary of the invention
For above-mentioned situation, for overcoming the defect of prior art, the present invention's object is just to provide a kind of mother matrix page file buffer memory and Web page synthetic method based on client browser, can effectively solve and can realize based on client mother matrix caching of page and the problem of being synthesized the page of finally presenting to user by client browser.
The technical scheme that the present invention solves is to be realized by following steps:
1) client sends accessing page request to server first, server is received after this request, being HTML (Hypertext Markup Language) by the mother matrix page html(html of respective page) code and content pages html code send to respectively client browser, the file ID of this mother matrix page is sent to client cookie(cookie simultaneously and be stored in the data in subscriber's local terminal) in;
2) client browser receives after the mother matrix page html code and corresponding content pages html code of requests for page, utilize client script technology, be a html pagefile by mother matrix page code and content pages html Code synthesis, present to user by browser, meanwhile, by this mother matrix page code cache in client-cache;
3) when client is again to the server request page, by the file ID that carries the mother matrix page in cookie, (ID is identify label number, also referred to as sequence number or account number) send to server, server is according to the file ID of this mother matrix page, know client this mother matrix page code of buffer memory, if the mother matrix page of the page of the new request of client is in the buffer memory of client, the file ID of the mother matrix page that server only uses the content pages html of this page and this page sends to client;
If the mother matrix page of the page of the new request of client is not in the buffer memory of client, server can send to client with the method described in step 1) by the content pages html code of this page and the motherboard page html code of this page and the file ID of the mother matrix page that this page uses, and with step 2) finally synthetic html pagefile of presenting to user of described method;
4) client browser receives after the mother matrix page ID and corresponding content pages html code of requested page, utilize client script technology, from its local cache, take out corresponding mother matrix page code, be a html pagefile by itself and content pages html Code synthesis, present to user by browser.
The inventive method is simple, easy to operate, is effectively applied to webpage design, significantly reduces the data volume that transmits webpage, improves computer communication ability, has very strong practicality.
Brief description of the drawings
Fig. 1 is schematic flow sheet of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail, thereby so that advantages and features of the invention can be easier to be it will be appreciated by those skilled in the art that, protection scope of the present invention is made to more explicit defining.
As shown in Figure 1, the present invention includes server end and client, 1., 2., 3., 4., 5., 6., 7., 8., 9., 10. in figure, indicate is synthetic method order, is specifically realized by following steps:
1) client sends accessing page request to server first, server is received after this request, judge whether this client is to ask for the first time, if, the mother matrix page html code of respective page and content pages html code are sent to respectively to client browser, the file ID of this mother matrix page is sent in client cookie simultaneously;
2) client browser receives after the mother matrix page html code and corresponding content pages html code of requests for page, utilize client script technology, be a html pagefile by mother matrix page code and content pages html Code synthesis, present to user by browser, meanwhile, by this mother matrix page code cache in client-cache;
3) when client is again to the server request page, to carry mother matrix page ID in cookie to server, server is according to this mother matrix page ID, just can know client buffer memory this mother matrix page code, if the mother matrix page of the page of the new request of client is in the buffer memory of client, the ID of the mother matrix page that server only uses the html of the content pages of this page and this page sends to client, is next processed by following step 4);
If the mother matrix page of the page of the new request of client is not in the buffer memory of client, server can send to client by the html code of motherboard page and the method for the ID of the mother matrix page that this page uses as described in step 1) of the html code of the content pages of this page and this page, and as step 2) as described in method finally synthesize the html pagefile of presenting to user;
4) client browser receives after the mother matrix page ID and corresponding content pages html code of requested page, utilize client script technology, from its local cache, take out corresponding mother matrix page code, be a html pagefile by itself and content pages html Code synthesis, present to user by browser.
 
The cookie of the relevant mother matrix page ID of step 1), when being saved in client browser at least always the access of server being finished till;
Step 2) the html code of relevant mother matrix page ID, when being saved in client browser at least always in the buffer memory of client the access of server being finished till;
Described client comprises the browser of various terminals, mobile device, smart mobile phone etc. and the service of various accessed web page;
Described mother matrix page and the buffer memory of client thereof also can expand to the nested situation of multistage mother matrix page;
Described server comprises the various servers that network access service is provided.
The above is only the preferred embodiments of the present invention, is for the specific embodiment of the present invention is described, protection scope of the present invention is also not only confined to above-described embodiment, and all technical schemes belonging under thinking of the present invention, all belong to protection scope of the present invention.It should be pointed out that for those skilled in the art, any technical improvement and the conversion under the prerequisite that does not depart from technical solution of the present invention essence, made, all belong to protection scope of the present invention.
The present invention is through experiment and practical application, have the following advantages: the present invention is by mother matrix page html code and the mother matrix page ID of the page of asking at client-cache, in the time of the page that client please be looked for novelty again, if when the mother matrix page of the mother matrix page of the new page and client buffer memory is identical, server end just need not generate and send the html code of this mother matrix page again, and the html code of content pages that only generates and sends related pages is just passable.The content pages html code of the requested page that client responds back to server and mother matrix page ID, in client-cache, take out the html code of this mother matrix page according to mother matrix page ID, the page this mother matrix page html code and content pages html Code synthesis being made new advances by client combinator, and finally presented by client browser.Like this, in the time of the different page with identical mother matrix page of the same website of access, server is only with sending 1 mother matrix page code to client, saved server end processing resource, alleviated the processing load of server end, saved Internet Transmission bandwidth resources, also better utilized the processing resource of client simultaneously, improve the response speed of the page, practical, be that one on computer communication innovated greatly, economic and social benefit is huge.

Claims (6)

1. the mother matrix page file buffer memory based on client browser and a Web page synthetic method, is characterized in that, realized by following steps:
1) client sends accessing page request to server first, server is received after this request, the mother matrix page html code of respective page and content pages html code are sent to respectively to client browser, the file ID of this mother matrix page is sent in client cookie simultaneously;
2) client browser receives after the mother matrix page html code and corresponding content pages html code of requests for page, utilize client script technology, be a html pagefile by mother matrix page code and content pages html Code synthesis, present to user by browser, meanwhile, by this mother matrix page code cache in client-cache;
3) when client is again to the server request page, the file ID that carries the mother matrix page in cookie is sent to server, server is according to the file ID of this mother matrix page, know client this mother matrix page code of buffer memory, if the mother matrix page of the page of the new request of client is in the buffer memory of client, the file ID of the mother matrix page that server only uses the content pages html of this page and this page sends to client;
If the mother matrix page of the page of the new request of client is not in the buffer memory of client, server can send to client with the method described in step 1) by the content pages html code of this page and the motherboard page html code of this page and the file ID of the mother matrix page that this page uses, and with step 2) finally synthetic html pagefile of presenting to user of described method;
4) client browser receives after the mother matrix page ID and corresponding content pages html code of requested page, utilize client script technology, from its local cache, take out corresponding mother matrix page code, be a html pagefile by itself and content pages html Code synthesis, present to user by browser.
2. mother matrix page file buffer memory and the Web page synthetic method based on client browser according to claim 1, it is characterized in that: the client cookie of the file ID of the mother matrix page of described step 1), when being at least saved in client browser the access of server being finished till.
3. mother matrix page file buffer memory and the Web page synthetic method based on client browser according to claim 1, it is characterized in that: described step 2) the code of file ID of mother matrix page html, in the time that the buffer memory of client is at least saved in client browser the access of server is finished till.
4. according to the mother matrix page file buffer memory based on client browser described in claim 1 or 2 or 3 and Web page synthetic method, it is characterized in that: described client comprises the browser of various terminals, mobile device, smart mobile phone and the service of various accessed web page.
5. according to the mother matrix page file buffer memory based on client browser described in claim 1 or 2 or 3 and Web page synthetic method, it is characterized in that: it is nested that described mother matrix page and the buffer memory of client thereof can expand to multistage mother matrix page.
6. according to the mother matrix page file buffer memory based on client browser described in claim 1 or 2 or 3 and Web page synthetic method, it is characterized in that: described server comprises the various servers that network access service is provided.
CN201410231953.9A 2014-05-29 2014-05-29 Master page file caching and Web page synthesizing method based on client-side browser Pending CN103995883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410231953.9A CN103995883A (en) 2014-05-29 2014-05-29 Master page file caching and Web page synthesizing method based on client-side browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410231953.9A CN103995883A (en) 2014-05-29 2014-05-29 Master page file caching and Web page synthesizing method based on client-side browser

Publications (1)

Publication Number Publication Date
CN103995883A true CN103995883A (en) 2014-08-20

Family

ID=51310048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410231953.9A Pending CN103995883A (en) 2014-05-29 2014-05-29 Master page file caching and Web page synthesizing method based on client-side browser

Country Status (1)

Country Link
CN (1) CN103995883A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1797400A (en) * 2004-12-27 2006-07-05 国际商业机器公司 System, web server and method for adding personalized value to web sites
CN102065572A (en) * 2009-11-17 2011-05-18 中国移动通信集团广东有限公司 Mobile browser, gateway, browsing system and access method for internet page
CN102073670A (en) * 2010-10-26 2011-05-25 百度在线网络技术(北京)有限公司 Method, equipment and system for debugging online webpage template
CN103488732A (en) * 2013-09-17 2014-01-01 北京思特奇信息技术股份有限公司 Generation method and device of static pages
CN103500199A (en) * 2013-09-24 2014-01-08 北京大学 Webpage rendering accelerating method and system based on pre-loaded Cloud template

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1797400A (en) * 2004-12-27 2006-07-05 国际商业机器公司 System, web server and method for adding personalized value to web sites
CN102065572A (en) * 2009-11-17 2011-05-18 中国移动通信集团广东有限公司 Mobile browser, gateway, browsing system and access method for internet page
CN102073670A (en) * 2010-10-26 2011-05-25 百度在线网络技术(北京)有限公司 Method, equipment and system for debugging online webpage template
CN103488732A (en) * 2013-09-17 2014-01-01 北京思特奇信息技术股份有限公司 Generation method and device of static pages
CN103500199A (en) * 2013-09-24 2014-01-08 北京大学 Webpage rendering accelerating method and system based on pre-loaded Cloud template

Similar Documents

Publication Publication Date Title
CN102438045B (en) Method and system for pre-fetching web page, and method for accessing web page
WO2016112826A1 (en) Method and system for increasing page loading rate
US9571556B2 (en) Browser kernel adaptation method and browser therefor
CN106776761B (en) Method and device for rendering webpage by mobile browser
CN102662993A (en) A method for providing page data
US8332467B2 (en) Lightweight RRD extension framework
AU2013317501A1 (en) Offline caching method and apparatus
CN103488732A (en) Generation method and device of static pages
CN102750281A (en) Script processing method and system of browser
US20140059179A1 (en) Auto-scaling management of web content
TW201800962A (en) Webpage file sending method, webpage rendering method and device and webpage rendering system
CN104283777A (en) Message compression method and device
TW201437826A (en) Method and device for combining webpage style address
CN103324756A (en) Method and device for increasing access speed of browser
CN104077310A (en) Method, equipment and system for loading resource file
CN109634753B (en) Data processing method, device, terminal and storage medium for switching browser kernels
US20150120861A1 (en) Method and device for obtaining contents of page, application apparatus and mobile terminal
CN103475749A (en) Cross-domain communication method and device
US20140006918A1 (en) Method and system for web page rearrangement
WO2015164146A1 (en) Proxy for modifying http messages to comply with browser
CN103347069A (en) Method and device for realizing network access
CN103020241A (en) Dynamic page cache method and system based on session
CN104253835B (en) User behavior data acquisition method and its system
CN103051722B (en) A kind ofly determine the method whether page is held as a hostage and relevant device
US20140337708A1 (en) Method and apparatus for providing web browsing service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140820

WD01 Invention patent application deemed withdrawn after publication