CN103020241A - Dynamic page cache method and system based on session - Google Patents

Dynamic page cache method and system based on session Download PDF

Info

Publication number
CN103020241A
CN103020241A CN201210552209XA CN201210552209A CN103020241A CN 103020241 A CN103020241 A CN 103020241A CN 201210552209X A CN201210552209X A CN 201210552209XA CN 201210552209 A CN201210552209 A CN 201210552209A CN 103020241 A CN103020241 A CN 103020241A
Authority
CN
China
Prior art keywords
user
request
page
http request
login
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
CN201210552209XA
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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201210552209XA priority Critical patent/CN103020241A/en
Publication of CN103020241A publication Critical patent/CN103020241A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a dynamic page cache method and system based on a session. According to the invention, the caching problem of a dynamic page capable of being logged in is solved, and the capability of caching the dynamic page capable of being logged in is enhanced while the CDN (content delivery network) service efficiency is not affected. The invention has the technical scheme that the method comprises the following steps of: comparing the request headers of HTTP (hyper text transport protocol) requests when a logged-in user and a non-logged-in user request a same website; obtaining the specific difference part of a website server, which is used for judging the user logging-in state; caching a page given by a source station when the user does not log in; according to whether the request header in the HTTP request of each user comprises the specific difference part, judging whether the user logs in or not; for the logged-in user, backing to the source to obtain a response and sending the response to the user; and for the non-logged-in user, responding by a cached page.

Description

Conversation-based dynamic page caching method and system
Technical field
The present invention relates to the dynamic page caching technology, relate in particular to dynamic page caching method and the system of content distributing network (CDN).
Background technology
Most of website all comprises logging in system by user.For same URL, http server may respond the different pages to the user of login and not login, for example: in access during homepage, login user is not shown login page, to login user demonstration personal homepage.We claim the dynamic page of this type of page for logining.
Present CDN does not distinguish the dynamic page of the dynamic page that can login and other type, or this type of page of buffer memory not, or uses the complicated all types of dynamic pages of dynamic page caching technology buffer memory.Existing dynamic page caching technology comprises:
(1) ESI(Edge Side Include): come the content segments that can accelerate in the webpage He can not accelerate is described by the usage flag language, each webpage is divided into different fractions and uses respectively different buffer control strategies, and then allow caching server according to these strategies, before complete webpage is sent to the user, different fractions is dynamically combined.
(2) based on the dynamic page caching technology of page analysis: a plurality of dynamic pages that return by server when asking same URL compare, and determine static constant content and the content of dynamic change in the page, thus buffer memory static part wherein.The content that caching server changes to the source server request dynamic at every turn, and and the static content of buffer memory combine and send to the user.
The drawback of existing scheme is as follows:
(1) if the buffer memory dynamic page that can log in not will affect the acceleration effect of CDN, particularly use under the increasing trend at dynamic web page, this to affect meeting increasing.
(2) use the ESI Technology Need to revise original html page in the source station, but come mark cache contents wherein and can not cache contents, unpractiaca for CDN, CDN manufacturer does not have such authority on the one hand, this need to make amendment to the page of source station on the other hand, increases CDN client's burden.
(3) very complicated based on the dynamic page caching technology of page analysis, and need to analyze content of pages, affect efficiency of service, prolong the response time.
Summary of the invention
The object of the invention is to address the above problem, a kind of conversation-based dynamic page caching method and system are provided, the cache problem of the dynamic page that solution can be logined strengthens the ability that buffer memory can be logined dynamic page when not affecting the CDN efficiency of service.
Technical scheme of the present invention is: the present invention has disclosed a kind of conversation-based dynamic page caching method, comprising:
Relatively login user and the not request header of the HTTP request during the same website of login user request obtain the particular differences part that Website server is used for judgement user logging status;
The page that the source station provided when the user was not logined carries out buffer memory;
Whether comprise particular differences according to the request header in user's the HTTP request and judge partly whether the user logins, for login user, Hui Yuan obtains response and sends to the user, for login user not, uses the page of buffer memory to respond.
Embodiment according to conversation-based dynamic page caching method of the present invention in judging the step whether user logins, further comprises:
If comprise the particular differences part in user's the HTTP request, judge that then the user is in logging status, if do not comprise the particular differences part in user's the HTTP request, judge that then the user is in not logging status.
The present invention has also disclosed a kind of conversation-based dynamic page caching system, comprising:
The difference deriving means, relatively login user and the not request header of the HTTP request during the same website of login user request obtain the particular differences part that Website server is used for judgement user logging status;
Login page buffer storage not, the page that the source station provided when the user was not logined carries out buffer memory;
HTTP asks treating apparatus, whether comprises particular differences according to the request header in user's the HTTP request and judges partly whether the user logins, and for login user, Hui Yuan obtains response and sends to the user, for login user not, uses the page of buffer memory to respond.
According to an embodiment of conversation-based dynamic page caching system of the present invention, HTTP request treating apparatus comprises the logging status judging unit:
Whether comprise particular differences according to the request header in user's the HTTP request and judge partly whether the user logins: if comprise the particular differences part in user's the HTTP request, judge that then the user is in logging status, if do not comprise the particular differences part in user's the HTTP request, judge that then the user is in not logging status.
The present invention contrasts prior art following beneficial effect: the solution of the present invention be client-access can login dynamic page the time, the request header of the request that login user sends and the not login user request of sending must comprise certain difference part (in the data of local terminal storage user specific information), Website server is partly judged user's logging status by these specific differences, the present invention utilizes these differences partly to carry out cache optimization.The contrast prior art, the solution of the present invention can strengthen the ability that buffer memory can be logined dynamic page when not affecting the CDN efficiency of service.
Description of drawings
Fig. 1 shows the process flow diagram of the preferred embodiment of conversation-based dynamic page caching method of the present invention.
Fig. 2 shows the schematic diagram of the preferred embodiment of conversation-based dynamic page caching system of the present invention.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
The embodiment of conversation-based dynamic page caching method
Fig. 1 shows the embodiment of conversation-based dynamic page caching method of the present invention.See also Fig. 1, details are as follows for the implementation step of the dynamic page caching method of the present embodiment.
Step S10: according to the particular differences part in user's the HTTP request acquisition request header.
During dynamic page that access can be logined, the request header of the request that login user sends and the not login user request of sending must comprise certain difference part (in the data of local terminal storage user specific information), and this difference partly is exactly to distinguish the sign of user's logging status.
Step S11: allocating cache strategy.
Cache policy is for same URL:
(1) if the HTTP request header does not comprise above-mentioned particular differences part (being called " not logging request "), then buffer memory is carried out in the response of this request;
(2) if the HTTP request header comprises above-mentioned particular differences part (being called " logging request "), then to the response of this request buffer memory not.
Step S12: if there is not the buffer memory of URL on the CDN node, when processing not logging request, response that can this request of buffer memory.
Step S13: receive user's HTTP request.
Step S14: whether comprise the particular differences part in inspection user's the HTTP request, then enter step S15 if comprise, then do not enter step S16 if do not comprise.
Step S15: the state of judging the user is logging status, returns source server and obtains response and send to the user.
Step S16: the state of judging the user is logging status not, uses the buffer memory page to send to the user.
The embodiment of conversation-based dynamic page caching system
Fig. 2 shows the principle of the preferred embodiment of conversation-based dynamic page caching system of the present invention.See also Fig. 2, the dynamic page caching system of the present embodiment comprises: difference deriving means 10, login page buffer storage 12, HTTP do not ask treating apparatus 14.
Difference deriving means 10 is login users and the request header of the HTTP request during the same website of login user request not relatively, obtains the particular differences part that Website server is used for judgement user logging status.
The page that the source station provided when 12 couples of users of login page buffer storage did not login carries out buffer memory.
In HTTP request treating apparatus 14, comprise logging status judging unit 140.Whether logging status judging unit 140 comprises particular differences according to the request header in user's the HTTP request is judged partly whether the user logins: if comprise the particular differences part in user's the HTTP request, judge that then the user is in logging status, if do not comprise the particular differences part in user's the HTTP request, judge that then the user is in not logging status.
Whether HTTP request treating apparatus 14 comprises particular differences according to the request header in user's the HTTP request is judged partly whether the user logins, and for login user, Hui Yuan obtains response and sends to the user, for login user not, uses the page of buffer memory to respond.
Above-described embodiment provides to those of ordinary skills and realizes and use of the present invention; those of ordinary skills can be in the situation that do not break away from invention thought of the present invention; above-described embodiment is made various modifications or variation; thereby protection scope of the present invention do not limit by above-described embodiment, and should be the maximum magnitude that meets the inventive features that claims mention.

Claims (4)

1. conversation-based dynamic page caching method comprises:
Relatively login user and the not request header of the HTTP request during the same website of login user request obtain the particular differences part that Website server is used for judgement user logging status;
The page that the source station provided when the user was not logined carries out buffer memory;
Whether comprise particular differences according to the request header in user's the HTTP request and judge partly whether the user logins, for login user, Hui Yuan obtains response and sends to the user, for login user not, uses the page of buffer memory to respond.
2. conversation-based dynamic page caching method according to claim 1 is characterized in that, in judging the step whether user logins, further comprises:
If comprise the particular differences part in user's the HTTP request, judge that then the user is in logging status, if do not comprise the particular differences part in user's the HTTP request, judge that then the user is in not logging status.
3. conversation-based dynamic page caching system comprises:
The difference deriving means, relatively login user and the not request header of the HTTP request during the same website of login user request obtain the particular differences part that Website server is used for judgement user logging status;
Login page buffer storage not, the page that the source station provided when the user was not logined carries out buffer memory;
HTTP asks treating apparatus, whether comprises particular differences according to the request header in user's the HTTP request and judges partly whether the user logins, and for login user, Hui Yuan obtains response and sends to the user, for login user not, uses the page of buffer memory to respond.
4. conversation-based dynamic page caching system according to claim 3 is characterized in that, HTTP request treating apparatus comprises the logging status judging unit:
Whether comprise particular differences according to the request header in user's the HTTP request and judge partly whether the user logins: if comprise the particular differences part in user's the HTTP request, judge that then the user is in logging status, if do not comprise the particular differences part in user's the HTTP request, judge that then the user is in not logging status.
CN201210552209XA 2012-12-18 2012-12-18 Dynamic page cache method and system based on session Pending CN103020241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210552209XA CN103020241A (en) 2012-12-18 2012-12-18 Dynamic page cache method and system based on session

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210552209XA CN103020241A (en) 2012-12-18 2012-12-18 Dynamic page cache method and system based on session

Publications (1)

Publication Number Publication Date
CN103020241A true CN103020241A (en) 2013-04-03

Family

ID=47968844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210552209XA Pending CN103020241A (en) 2012-12-18 2012-12-18 Dynamic page cache method and system based on session

Country Status (1)

Country Link
CN (1) CN103020241A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401946A (en) * 2013-08-19 2013-11-20 网宿科技股份有限公司 HTTP (hyper text transfer protocol) uploading acceleration method and system
CN103401892A (en) * 2013-06-26 2013-11-20 中国科学院声学研究所 HTTP POST based data upload accelerating method and server
CN107491301A (en) * 2017-07-27 2017-12-19 北京奇安信科技有限公司 Dynamic interface processing method and processing device
CN109302388A (en) * 2018-09-19 2019-02-01 平安科技(深圳)有限公司 Access authority filter method, system, computer equipment and storage medium
CN109688122A (en) * 2018-12-18 2019-04-26 西安四叶草信息技术有限公司 Data capture method and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247395A (en) * 2008-03-13 2008-08-20 武汉理工大学 ISAPI access control system for Session ID fully transparent transmission
CN101488135A (en) * 2008-01-14 2009-07-22 盛大计算机(上海)有限公司 Designing and acquiring method for delayed personalized web page
CN102255881A (en) * 2011-03-22 2011-11-23 苏州阔地网络科技有限公司 Access right control method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488135A (en) * 2008-01-14 2009-07-22 盛大计算机(上海)有限公司 Designing and acquiring method for delayed personalized web page
CN101247395A (en) * 2008-03-13 2008-08-20 武汉理工大学 ISAPI access control system for Session ID fully transparent transmission
CN102255881A (en) * 2011-03-22 2011-11-23 苏州阔地网络科技有限公司 Access right control method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401892A (en) * 2013-06-26 2013-11-20 中国科学院声学研究所 HTTP POST based data upload accelerating method and server
CN103401946A (en) * 2013-08-19 2013-11-20 网宿科技股份有限公司 HTTP (hyper text transfer protocol) uploading acceleration method and system
CN103401946B (en) * 2013-08-19 2016-07-13 网宿科技股份有限公司 HTTP uploads accelerated method and system
CN107491301A (en) * 2017-07-27 2017-12-19 北京奇安信科技有限公司 Dynamic interface processing method and processing device
CN109302388A (en) * 2018-09-19 2019-02-01 平安科技(深圳)有限公司 Access authority filter method, system, computer equipment and storage medium
CN109688122A (en) * 2018-12-18 2019-04-26 西安四叶草信息技术有限公司 Data capture method and equipment
CN109688122B (en) * 2018-12-18 2021-04-30 西安四叶草信息技术有限公司 Data acquisition method and equipment

Similar Documents

Publication Publication Date Title
CN102710748B (en) Data capture method, system and equipment
US9027100B2 (en) Client-side ad caching for lower ad serving latency
US9549038B1 (en) Cacheable resource location selection
CN102301682B (en) Method and system for network caching, domain name system redirection sub-system thereof
US8620999B1 (en) Network resource modification for higher network connection concurrence
CN105930528B (en) Webpage caching method and server
US20140136952A1 (en) Improving web sites performance using edge servers in fog computing architecture
CN104754073A (en) Resource access method and device
US20150113054A1 (en) Method, client, server, and system for sharing content
US9161064B2 (en) Auto-scaling management of web content
CN103139137B (en) Network service provider method and device
CN105072123B (en) A kind of single sign-on under cluster environment exits method and system
CN103020241A (en) Dynamic page cache method and system based on session
CN103401946A (en) HTTP (hyper text transfer protocol) uploading acceleration method and system
CN105743945A (en) Method and system for downloading files on the basis of switching download sources
EP3528474A1 (en) Webpage advertisement anti-shielding method, content distribution network and client
CN103825919A (en) Method, device and system for data resource caching
US8914542B1 (en) Content caching
US20150012835A1 (en) Computer system
CN103618799B (en) Browser rs cache processing method, system and proxy server
US20140006918A1 (en) Method and system for web page rearrangement
CN102932358B (en) Third party's file of content-based distributing network is rewritten and is accelerated distribution method and device
CN103716319A (en) Device and method for Web access optimization
CN102891851A (en) Access control method, equipment and system of virtual desktop
CN105787750A (en) Information pushing method and information pushing device

Legal Events

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

Application publication date: 20130403