CN107071066A - page access method and device - Google Patents

page access method and device Download PDF

Info

Publication number
CN107071066A
CN107071066A CN201710423520.7A CN201710423520A CN107071066A CN 107071066 A CN107071066 A CN 107071066A CN 201710423520 A CN201710423520 A CN 201710423520A CN 107071066 A CN107071066 A CN 107071066A
Authority
CN
China
Prior art keywords
data
website
static file
homepage
data cached
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
CN201710423520.7A
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.)
Beijing Panda Mutual Entertainment Technology Co Ltd
Original Assignee
Beijing Panda Mutual Entertainment 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 Beijing Panda Mutual Entertainment Technology Co Ltd filed Critical Beijing Panda Mutual Entertainment Technology Co Ltd
Priority to CN201710423520.7A priority Critical patent/CN107071066A/en
Publication of CN107071066A publication Critical patent/CN107071066A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5681Pre-fetching or pre-delivering data based on network characteristics
    • 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 embodiment of the present invention provides a kind of page access method and device, and this method includes:Back-end server accesses every prefixed time interval and is deployed in website in back-end server, so as to obtain the corresponding data of all pages in website.Back-end server generates static file and data cached respectively according to the homepage data and dynamic data of website, and on the front-end server for being able to access that this static file and data cached transmission to user so that static file and data cached generation are no longer dependent on the access request of user's triggering.After user triggers the access request of website, front-end server directly using be pre-stored within local static file and it is data cached handle this access request of user, improve the speed of user's access website.Meanwhile, when website is broken down, it can also avoid user from the website data for obtaining mistake occur or even the situation of website can not be accessed, it is ensured that user can normally access website.

Description

Page access method and device
Technical field
The present invention relates to Internet technical field, more particularly to a kind of page access method and device.
Background technology
With the development of the communication technology, increasing entertainment way, such as microblogging, mobile phone games, Internet video are occurred in that It is live etc., wherein internet video live broadcasting due to its it is directly perceived, abundant in content the features such as, be particularly subject to the welcome of people.
In the prior art, access operation of the server based on user generates the caching of web page contents in real time, then will cache number According to sending to client, the page data of the respective page got is showed user by client.But in practical application often Can there is a situation where webcast website's failure.In such cases, the page data in webcast website can be caused mistake occur very To being to lose, prevent user from accessing webcast website, reduce Consumer's Experience.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of page access method and device, uses the page number cached in advance According to come respond user website visiting ask, to when website is broken down ensure user normal access.
The embodiment of the present invention provides a kind of page access method, including:
Website is accessed with prefixed time interval, the corresponding static file in website and data cached, the static state is generated File corresponds to the homepage data of the website, the data cached dynamic content data corresponding to the website;
By the static file and the data cached transmission to front-end server, so that the front-end server uses institute State the access request of static file and the data cached processing user triggering.
Alternatively, the corresponding static file in the generation website, including:
According to the website homepage data of the website, the first static file corresponding with website homepage is generated;
Obtain the corresponding homepage data of classifying of each tag along sort in the website homepage;
According to each classification homepage data, the second static file corresponding with each classification homepage is correspondingly generated.
Alternatively, the generation website is corresponding data cached, including:
Obtain other corresponding classification page datas of each tag along sort in the website homepage, other described classification page numbers According to being dynamic content data in other classification pages, other described classification pages are that the classification is removed under each tag along sort The page outside homepage;
According to other described classification page datas, it is correspondingly generated corresponding data cached with other classification pages.
Alternatively, it is described by the static file and it is described it is data cached send to before front-end server, in addition to:
Obtain the static file and data cached corresponding first version number and the first data volume of last generation;
By the static file being currently generated and the data cached corresponding second edition number and the second data volume It is compared with the first version number and first data volume, to determine the need for updating the quiet of the last generation State file and data cached.
Alternatively, it is described by the static file being currently generated and the data cached corresponding second edition number and Second data volume is compared with the first version number and first data volume, to determine the need for updating described upper one The static file of secondary generation and data cached, including:
If the first version number is identical with the second edition number, according to first data volume and second number According to the comparative result of amount, it is determined whether need to update the static file of the last generation and data cached;
If the first version number and the second edition difference, it is determined that need to update the quiet of the last generation State file and data cached.
The embodiment of the present invention provides a kind of page access device, including:
Generation module, for accessing website with prefixed time interval, generates the corresponding static file in the website and caching Data, the static file corresponds in the homepage data of the website, the data cached dynamic corresponding to the website Hold data;
Sending module, for by the static file and it is described it is data cached transmission to front-end server so that before described The access request for holding server to be triggered using the static file and the data cached processing user.
Alternatively, the generation module is specifically included:
First generation unit, for the website homepage data according to the website, generation corresponding with website homepage first Static file;
Acquiring unit, for obtaining the corresponding homepage data of classifying of each tag along sort in the website homepage;
Second generation unit, for according to each classification homepage data, being correspondingly generated and each classification homepage corresponding second Static file.
Alternatively, the generation module specifically also includes:
3rd generation unit, it is corresponding with other classification pages for according to other classification page datas, being correspondingly generated It is data cached;
The acquiring unit, is additionally operable to obtain other corresponding described classification pages of each tag along sort in the website homepage Data, other described classification page datas are the dynamic content data in other classification pages, and other described classification pages are institutes State the page in addition to the classification homepage under each tag along sort.
Alternatively, described device also includes:
Acquisition module, static file and data cached corresponding first version number and for obtaining last generation One data volume;
Update module, for by the static file being currently generated and the data cached corresponding second edition number It is compared with the second data volume with the first version number and first data volume, to determine the need for updating on described The static file that once generates and data cached.
Alternatively, the update module specifically for:
If the first version number is identical with the second edition number, according to first data volume and second number According to the comparative result of amount, it is determined whether need to update the static file of the last generation and data cached;
If the first version number and the second edition difference, it is determined that need to update the quiet of the last generation State file and data cached.
Page access method and device provided in an embodiment of the present invention, back-end server is every prefixed time interval visiting portion The website in back-end server is deployed on, so as to obtain the corresponding data of all pages in website.Back-end server is according to website Homepage data generate static file, data cached further according to the software test data generation in website, and by this static file and caching Data are sent on the front-end server being able to access that to user.This causes the quiet of website that be just stored with advance on front-end server State file and data cached, static file and data cached generation are no longer dependent on the access request of user's triggering.Work as user After the access request for triggering website, front-end server can be directly gentle using local static file has been pre-stored within Deposit data is asked to handle the website visiting of user's triggering, improves the speed that user accesses website.Meanwhile, when event occurs for website The static file locally prestored using front-end server during barrier and the data cached access request to handle user, also can User is enough avoided the website data for obtaining mistake occur or even the situation of website can not be accessed, it is ensured that user can normally access net Stand, so as to improve the usage experience of user.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart of page access embodiment of the method one provided in an embodiment of the present invention;
Fig. 2 is the flow chart of page access embodiment of the method two provided in an embodiment of the present invention;
Fig. 3 is the flow chart of page access embodiment of the method three provided in an embodiment of the present invention;
Fig. 4 is the structural representation of page access device embodiment one provided in an embodiment of the present invention;
Fig. 5 is the structural representation of page access device embodiment two provided in an embodiment of the present invention;
Fig. 6 is the structural representation of page access device embodiment three provided in an embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The term used in embodiments of the present invention is the purpose only merely for description specific embodiment, and is not intended to be limiting The present invention." one kind ", " described " and "the" of singulative used in the embodiment of the present invention and appended claims It is also intended to including most forms, unless context clearly shows that other implications, " a variety of " generally comprise at least two, but not Exclude and include at least one situation.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent There may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while there is A and B, individualism B these three Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
It will be appreciated that though XXX may be described using term first, second, third, etc. in embodiments of the present invention, but These XXX should not necessarily be limited by these terms.These terms are only used for XXX being distinguished from each other out.For example, not departing from implementation of the present invention In the case of example scope, the first XXX can also be referred to as the 2nd XXX, similarly, and the 2nd XXX can also be referred to as the first XXX.
Depending on linguistic context, word as used in this " if ", " if " can be construed to " ... when " or " when ... " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " such as Fruit detection (condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when detection (statement Condition or event) when " or " in response to detection (condition or event of statement) ".
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising, so that commodity or system including a series of key elements not only include those key elements, but also including without clear and definite Other key elements listed, or also include for this commodity or the intrinsic key element of system.In the feelings of not more limitations Under condition, the key element limited by sentence "including a ...", it is not excluded that in the commodity or system including the key element also There is other identical element.
Interaction agent includes front-end server, back-end server and client in the embodiment of the present invention.Back-end server To generate and send static file and data cached to front-end server, front-end server receives this static file and caching number According to.When user triggers accessing page request by client, front end services, will be with this access in response to this accessing page request Corresponding static file and data cached transmission are asked to client.
Fig. 1 is the flow chart of page access embodiment of the method one provided in an embodiment of the present invention, and what the present embodiment was provided should The executive agent of page access method can be back-end server, as shown in figure 1, this method comprises the following steps:
S101, website, the generation corresponding static file in website and data cached, static file are accessed with prefixed time interval Corresponding to the homepage data of website, the data cached dynamic content data corresponding to website.
A set of web station system is deployed on back-end server in advance, this website includes the homepage class page and non-homepage class The page.This website of back-end server meeting timer access, so as to obtain the corresponding homepage data of the homepage class page and non-homepage class The corresponding dynamic content data of the page.Alternatively, the homepage class page can include under each tag along sort of website homepage and website Each classification homepage;The non-homepage class page can include other classification pages in addition to homepage of classifying under each tag along sort.
Based on this, back-end server generates corresponding static file respectively according to this homepage data and dynamic content data With it is data cached, each homepage class page have with its one-to-one static file, and each non-homepage class page is also Have one-to-one data cached with it.Wherein, static file includes the static content data in the homepage class page and moved State content-data, for example, static content data can include the webpage header contents of the homepage class page, dynamic content data The content-data shown in the homepage class page can be included.It is data cached to include the dynamic content number in the non-homepage class page It is the content-data shown in the non-homepage class page according to, for example, this dynamic content data.
Back-end server generate static file and it is data cached while, it can also be added corresponding file identification and Data Identification, file identification is to represent the homepage class page corresponding to static file, and Data Identification is to represent data cached The corresponding non-homepage class page.Alternatively, file identification and Data Identification can be the page addresses of its corresponding page.
S102, by static file and data cached transmission to front-end server, so that front-end server uses static file With the access request of data cached processing user triggering.
Back-end server, can be by this after all static files and data cached generation are generated according to the page data of website Static file and the data cached back-end server that is stored in are local, while sending it to front-end server again.This front end services Device is the server for the website visiting request that can respond the client transmission of user.Namely when user triggers the visit of website Ask after request, the corresponding client of user can send access request on so far front-end server, and this front-end server is recycled The static file sent by back-end server and the data cached access request to handle user.
Alternatively, due to each static file and data cached there are corresponding file identification and Data Identification, and this File identification and Data Identification can be page addresses, therefore, and after user triggers website visiting request, front-end server can Static text corresponding with this page address is locally found in front-end server with the page address included according to access request Part is data cached, and will static file corresponding with access request or it is data cached return to client, allowed users to Into the access of website.
In the present embodiment, back-end server accesses the website being deployed in back-end server every prefixed time interval, from And obtain the corresponding data of all pages in website.Back-end server generates static file, then root according to the homepage data of website It is data cached according to the software test data generation in website, and this static file and data cached transmission are able to access that to user On front-end server.This causes the static file and data cached, static file of the advance website that is just stored with front-end server The access request of user's triggering is no longer dependent on data cached generation.It is preceding after user triggers the access request of website End server can be directly using being pre-stored within local static file and the data cached net to handle user's triggering Stand access request, improve the speed that user accesses website.Meanwhile, it is local using front-end server when website is broken down The static file prestored and the data cached access request to handle user, can also avoid user from occurring obtaining mistake Website data even can not access the situation of website, it is ensured that user can normally access website, so as to improve the use body of user Test.
Fig. 2 is the flow chart of page access embodiment of the method two provided in an embodiment of the present invention, as shown in Fig. 2 this method It may include steps of:
S201, website is accessed with prefixed time interval, according to the website homepage data of website, is generated corresponding with website homepage The first static file.
Back-end server can be visited being deployed in the website homepage of website on back-end server in advance every preset time Ask.Alternatively, back-end server can include website with timing automatic the access request for initiating website in the access request Homepage page address, websites response is asked in this, by the website homepage data feedback of website to back-end server.Back-end server The website homepage data of this website are obtained, and the first static file corresponding with website homepage is generated according to this data.
S202, obtains the corresponding homepage data of classifying of each tag along sort in website homepage.
S203, according to each classification homepage data, is correspondingly generated the second static file corresponding with each classification homepage.
S204, obtains other corresponding classification page datas of each tag along sort in website homepage, other classification page datas It is the dynamic content data in other classification pages, other classification pages are the pages under each tag along sort in addition to homepage of classifying.
S205, according to other classification page datas, is correspondingly generated corresponding data cached with other classification pages.
The implementation process of the above method is described in detail by taking webcast website as an example below.It should be noted that with webcast website Exemplified by illustrate and be only easy for understanding technical scheme, and type of the present invention not to website is defined.
In actual applications, webcast website can be classified numerous direct broadcasting rooms according to the live content of direct broadcasting room, each Classification corresponds to a tag along sort.At least one display page is usually there will be under each tag along sort to be used to show the classification The corresponding direct broadcasting room information of multiple direct broadcasting rooms under label.First page under some tag along sort is commonly referred to as the tag along sort Other pages under classification homepage, the tag along sort are referred to as other classification pages.Homepage of either classifying or other classification pages Face can all show the direct broadcasting room information of preset number.Alternatively, direct broadcasting room information can include direct broadcasting room number, direct broadcasting room mark Topic, direct broadcasting room thumbnail, main broadcaster's information, currently viewing number etc..
Similar to the website homepage data for obtaining website, alternatively, back-end server also can be initiated regularly for straight Broadcast the access request of the tag along sort of some in website, and according to the page header contents under this access acquisition request this tag along sort And dynamic content data.Wherein, dynamic content data are direct broadcasting room information mentioned above, and page header contents are the page The middle other guide for removing direct broadcasting room information, for example, the login of user, registration button, direct broadcasting room types index etc..
For the tag along sort corresponding to access request, alternatively, back-end server can be incited somebody to action according to the popularity of direct broadcasting room Dynamic content data under the labeling obtained are ranked up, pre- further according to what is shown in ranking results and each page If the direct broadcasting room of number is each direct broadcasting room, corresponding dynamic content data set number of pages to identify, and this number of pages mark shows direct broadcasting room Dynamic content data which page under the labeling should be shown in.Alternatively, the popularity of direct broadcasting room can use current sight Number is seen to show.
The dynamic content data group constituent class homepage data of first page, rear end are designated by page header contents and number of pages This classification homepage data of server by utilizing generate the second static file.It is made up of simultaneously number of pages mark identical dynamic content data Other classification page datas corresponding with number of pages mark, back-end server utilizes other corresponding classification pages of this different number of pages mark Face data generate the data cached of other corresponding classification pages.
S206, by static file and data cached transmission to front-end server, so that front-end server uses static file With the access request of data cached processing user triggering.
The implementation procedure of above-mentioned steps is similar to the corresponding steps of previous embodiment, may refer to embodiment as shown in Figure 1 In associated description, will not be repeated here.
In the present embodiment, back-end server generates corresponding the respectively to website homepage and each classification homepage in advance One static file and the second static file, and corresponding caching is generated to other classification pages under a certain tag along sort Data.Back-end server in the lump by this first static file, the second static file and data cached transmission to front-end server, User is set directly to use this static file and the corresponding Website page of data cached acquisition access request when accessing website Data, can avoid when website is broken down, user occur obtain mistake website data even can not access website Situation.
Fig. 3 is the flow chart of page access embodiment of the method three provided in an embodiment of the present invention, as shown in figure 3, this method It may include steps of:
S301, website, the generation corresponding static file in website and data cached, static file are accessed with prefixed time interval Corresponding to the homepage data of website, the data cached dynamic content data corresponding to website.
The implementation procedure of above-mentioned steps is similar to the corresponding steps of previous embodiment, may refer to embodiment as shown in Figure 1 In associated description, will not be repeated here.
S302, obtains the static file and data cached corresponding first version number and the first data of last generation Amount.
S303, by the static file being currently generated and the data cached corresponding second edition number and the second data volume and the One version number and the first data volume are compared, to determine the need for updating the static file and caching number of last generation According to.
In actual applications, the technical staff of website is in order to provide the user more preferable Video service, it will usually to website Optimize upgrading, therefore the static file of back-end server generation and data cached there can be multiple versions.Work as technical staff Such a Local uniqueness can't be perceive intuitively that by carrying out Local uniqueness user to website, now, and back-end server is micro- for this Adjusted the page generation static file and it is data cached be not in version number change.And when page of the technical staff to website When face carries out structural or functional adjustment, such as add New function in the page or page Show Styles adjusted, Back-end server can have version number's change for the static file and data cached of this adjustment generation.
Back-end server when generating static file and being data cached, can all record static file and data cached institute every time Corresponding version number and data volume size.After prefixed time interval is reached, back-end server can be by accessing deployment again In the website on back-end server static file is generated again and data cached.Back-end server can be by contrasting version number And data volume determines whether with the static file that is currently generated and data cached has been stored in back-end server to update Local original static file and data cached.It is succinct for the description of renewal process, can by original static file and Data cached corresponding version number and data volume are referred to as first version number, the first data volume, by the static file being currently generated and Data cached corresponding version number and data volume are referred to as the second edition number, the second data volume.
It is alternatively possible to judge whether to static file and data cached renewal by following rule.
If first version number is identical with the second edition number, according to the comparative result of the first data volume and the second data volume, Determine the need for updating the last static file generated and data cached.
Specifically, the form that static file and data cached version number can be numbered using numeral, such as 1.1.1.1. If first version number is identical with the second edition number, show that the page of website is finely tuned or do not changed, now Need further to compare the first data volume and the second data volume.When data volume does not change, then show to be currently generated is quiet State file and it is data cached with original static file and it is data cached be identical, now back-end server does not update original Static file and data cached.When data volume changes and changes floating less than or equal to predetermined threshold value, show net The page stood is strictly to cause data volume to there occurs the change in zone of reasonableness, now, back-end services because of being finely tuned Device is with the static file that is currently generated and data cached updates original static file and data cached.When the change of data volume Float larger, then it is likely to be to be generated according to the website homepage data and dynamic content data of mistake to show back-end server The corresponding static file of second data volume and data cached, in order to avoid the content of pages of mistake is sent to server, and then Make user watch mistake web site contents, now back-end server then not to original static file and data cached progress more Newly.
If first version number and second edition difference, it is determined that need to update the static file and caching of last generation Data.
Specifically, if first version number and second edition difference, show to there occurs structural or feature in website Adjustment, that is to say that there is more great change website, now back-end server is then eased up with the static file that is currently generated Deposit data updates original static file and data cached, enables the server to receive the page number of newest website According to.
What deserves to be explained is, above-mentioned static file and data cached whether update by back-end server to be judged. But in actual applications, this deterministic process can also be performed by front-end server, it that is to say that back-end server will directly can work as Previous existence into static file and data cached transmission to front-end server, by front-end server is judged using above-mentioned judgment rule Whether with the static file that is currently generated and data cached static file and caching to be stored in server local before updating Data.
S304, by static file and data cached transmission to front-end server, so that front-end server uses static file With the access request of data cached processing user triggering.
The implementation procedure of above-mentioned steps is similar to the corresponding steps of previous embodiment, may refer to embodiment as shown in Figure 1 In associated description, will not be repeated here.
In the present embodiment, by original static file and static file and caching number data cached and be currently generated According to the comparison of distinguished corresponding version number and data volume, the page data of correct and newest website is sent to front end Server.After user triggers the access request of website, front-end server can send this correct page data to user Client so that avoid user see mistake page data, meanwhile, newest page data is sent to the client of user End could be used that family timely uses the website of latest edition, improve the usage experience of user.
Fig. 4 is the structural representation of page access device embodiment one provided in an embodiment of the present invention, as shown in figure 4, should Page access device includes:Generation module 11, sending module 12.
Generation module 11, for accessing website, the corresponding static file in generation website and caching number with prefixed time interval According to static file corresponds to the homepage data of website, the data cached dynamic content data corresponding to website.
Sending module 12, for by static file and data cached transmission to front-end server so that front-end server makes The access request triggered with static file and data cached processing user.
Fig. 4 shown devices can perform the method for embodiment illustrated in fig. 1, and the part that the present embodiment is not described in detail can join Examine the related description to embodiment illustrated in fig. 1.In implementation procedure and the technique effect embodiment shown in Figure 1 of the technical scheme Description, will not be repeated here.
Fig. 5 is the structural representation of page access device embodiment two provided in an embodiment of the present invention, as shown in figure 5, should Generation module 11 in page access device is specifically included:First generation unit 111, the generation unit of acquiring unit 112 and second 113。
First generation unit 111, for the website homepage data according to website, generates corresponding with website homepage first quiet State file.
Acquiring unit 112, for obtaining the corresponding homepage data of classifying of each tag along sort in website homepage.
Second generation unit 113, for according to each classification homepage data, being correspondingly generated and each classification homepage corresponding the Two static files.
Alternatively, generation module 11 specifically also includes:
3rd generation unit 114, it is corresponding with other classification pages for according to other classification page datas, being correspondingly generated It is data cached.
Acquiring unit 112, is additionally operable to obtain other corresponding classification page datas of each tag along sort in website homepage, other Classification page data is the dynamic content data in other classification pages, and other classification pages are except classification is first under each tag along sort The page outside page.
Fig. 5 shown devices can perform the method for embodiment illustrated in fig. 2, and the part that the present embodiment is not described in detail can join Examine the related description to embodiment illustrated in fig. 2.In implementation procedure and the technique effect embodiment shown in Figure 2 of the technical scheme Description, will not be repeated here.
Fig. 6 is the structural representation of page access device embodiment three provided in an embodiment of the present invention, as shown in fig. 6, On the basis of embodiment illustrated in fig. 4, the page access device also includes:Acquisition module 21, update module 22.
Acquisition module 21, for obtain last generation static file and data cached corresponding first version number and First data volume.
Update module 22, for by the static file being currently generated and the data cached corresponding second edition number and second Data volume is compared with first version number and the first data volume, to determine the need for the static file for updating last generation With it is data cached.
Alternatively, if update module 22 is identical with the second edition number specifically for first version number, according to the first data The comparative result of amount and the second data volume, it is determined whether need to update the static file of last generation and data cached, and
If first version number and second edition difference, it is determined that need to update the static file and caching of last generation Data.
Fig. 6 shown devices can perform the method for embodiment illustrated in fig. 3, and the part that the present embodiment is not described in detail can join Examine the related description to embodiment illustrated in fig. 3.In implementation procedure and the technique effect embodiment shown in Figure 3 of the technical scheme Description, will not be repeated here.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can To be or may not be physically separate, the part shown as unit can be or may not be physics list Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of general hardware platform necessary to add, naturally it is also possible to pass through hardware.Understood based on such, above-mentioned skill The part that art scheme substantially contributes to prior art in other words can be embodied in the form of product, computer production Product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are to cause one Platform computer installation (can be personal computer, server, or network equipment etc.) performs each embodiment or embodiment Some parts described in method.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (10)

1. a kind of page access method, it is characterised in that including:
Website is accessed with prefixed time interval, the corresponding static file in website and data cached, the static file is generated Corresponding to the homepage data of the website, the data cached dynamic content data corresponding to the website;
By the static file and it is described it is data cached send to front-end server so that the front-end server use it is described quiet State file and the access request of the data cached processing user triggering.
2. according to the method described in claim 1, it is characterised in that the corresponding static file in the generation website, including:
According to the website homepage data of the website, the first static file corresponding with website homepage is generated;
Obtain the corresponding homepage data of classifying of each tag along sort in the website homepage;
According to each classification homepage data, the second static file corresponding with each classification homepage is correspondingly generated.
3. method according to claim 2, it is characterised in that the generation website is corresponding data cached, including:
Other corresponding classification page datas of each tag along sort in the website homepage are obtained, other described classification page datas are Dynamic content data in other classification pages, other described classification pages are that the classification homepage is removed under each tag along sort The outer page;
According to other described classification page datas, it is correspondingly generated corresponding data cached with other classification pages.
4. according to the method described in claim 1, it is characterised in that described by the static file and described data cached to send Before front end to server, in addition to:
Obtain the static file and data cached corresponding first version number and the first data volume of last generation;
By the static file being currently generated and the data cached corresponding second edition number and the second data volume and institute State first version number and first data volume is compared, to determine the need for the static state text for updating the last generation Part and data cached.
5. method according to claim 4, it is characterised in that described by the static file being currently generated and described slow The second edition number and the second data volume corresponding to deposit data are compared with the first version number and first data volume, To determine the need for updating the static file of the last generation and data cached, including:
If the first version number is identical with the second edition number, according to first data volume and second data volume Comparative result, it is determined whether need to update the static file of the last generation and data cached;
If the first version number and the second edition difference, it is determined that need to update the static state text of the last generation Part and data cached.
6. a kind of page access device, it is characterised in that including:
Generation module, for accessing website with prefixed time interval, generates the corresponding static file in the website and data cached, The static file corresponds to the homepage data of the website, the data cached dynamic content number corresponding to the website According to;
Sending module, for by the static file and it is described it is data cached send to front-end server so that the front end takes The access request that business device is triggered using the static file and the data cached processing user.
7. device according to claim 6, it is characterised in that the generation module is specifically included:
First generation unit, for the website homepage data according to the website, generates corresponding with website homepage first static File;
Acquiring unit, for obtaining the corresponding homepage data of classifying of each tag along sort in the website homepage;
Second generation unit, it is static for according to each classification homepage data, being correspondingly generated corresponding with each classification homepage second File.
8. device according to claim 7, it is characterised in that the generation module specifically also includes:
3rd generation unit, for according to other classification page datas, being correspondingly generated caching corresponding with other classification pages Data;
The acquiring unit, is additionally operable to obtain other corresponding described classification page numbers of each tag along sort in the website homepage According to other described classification page datas are the dynamic content data in other classification pages, and other described classification pages are described The page under each tag along sort in addition to the classification homepage.
9. device according to claim 6, it is characterised in that described device also includes:
Acquisition module, static file and data cached corresponding first version number and the first number for obtaining last generation According to amount;
Update module, for by the static file being currently generated and the data cached corresponding second edition number and the Two data volumes are compared with the first version number and first data volume, to determine the need for updating the last time The static file of generation and data cached.
10. device according to claim 9, it is characterised in that the update module specifically for:
If the first version number is identical with the second edition number, according to first data volume and second data volume Comparative result, it is determined whether need to update the static file of the last generation and data cached;
If the first version number and the second edition difference, it is determined that need to update the static state text of the last generation Part and data cached.
CN201710423520.7A 2017-06-07 2017-06-07 page access method and device Pending CN107071066A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710423520.7A CN107071066A (en) 2017-06-07 2017-06-07 page access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710423520.7A CN107071066A (en) 2017-06-07 2017-06-07 page access method and device

Publications (1)

Publication Number Publication Date
CN107071066A true CN107071066A (en) 2017-08-18

Family

ID=59617450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710423520.7A Pending CN107071066A (en) 2017-06-07 2017-06-07 page access method and device

Country Status (1)

Country Link
CN (1) CN107071066A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881396A (en) * 2018-05-24 2018-11-23 平安普惠企业管理有限公司 Loading method, device, equipment and the computer storage medium of network data
CN109165369A (en) * 2018-07-12 2019-01-08 北京猫眼文化传媒有限公司 Webpage display process and device
CN109241477A (en) * 2018-07-27 2019-01-18 沈文策 A kind of Website page loading method, device, electronic equipment and storage medium
CN109857391A (en) * 2019-01-18 2019-06-07 山石网科通信技术股份有限公司 Processing method and processing device, storage medium and the electronic device of data
CN109936605A (en) * 2017-12-18 2019-06-25 北京京东尚科信息技术有限公司 A kind of method and apparatus of loading interface data
CN110012320A (en) * 2018-01-05 2019-07-12 武汉斗鱼网络科技有限公司 Label adaptation method, storage medium, electronic equipment and the system of direct broadcasting room
CN110442395A (en) * 2019-07-29 2019-11-12 微民保险代理有限公司 Dissemination method, device, front-end server and the back-end server of product configuration data
CN110737856A (en) * 2019-09-10 2020-01-31 苏宁云计算有限公司 page acquisition method, device and system
CN110830820A (en) * 2018-08-08 2020-02-21 北京国双科技有限公司 Emergency data processing method and device
CN110830816A (en) * 2018-08-08 2020-02-21 北京国双科技有限公司 Emergency data processing method and device
CN111783000A (en) * 2020-06-30 2020-10-16 中国工商银行股份有限公司 Portal website staticizing processing method and device
CN112181391A (en) * 2020-10-10 2021-01-05 菏泽学院 Method and system capable of dynamically expanding data
CN113872809A (en) * 2021-09-28 2021-12-31 绿盟科技集团股份有限公司 Access method, device, electronic equipment and storage medium
CN115630248A (en) * 2022-12-21 2023-01-20 深圳高灯计算机科技有限公司 Page determination method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364461A (en) * 2011-06-30 2012-02-29 广州市动景计算机科技有限公司 Page content data acquisition method and server
CN105095493A (en) * 2015-08-21 2015-11-25 成都秋雷科技有限责任公司 Web page access processing method
CN106446075A (en) * 2016-09-07 2017-02-22 广州华多网络科技有限公司 Page request processing method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364461A (en) * 2011-06-30 2012-02-29 广州市动景计算机科技有限公司 Page content data acquisition method and server
CN105095493A (en) * 2015-08-21 2015-11-25 成都秋雷科技有限责任公司 Web page access processing method
CN106446075A (en) * 2016-09-07 2017-02-22 广州华多网络科技有限公司 Page request processing method and apparatus

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109936605A (en) * 2017-12-18 2019-06-25 北京京东尚科信息技术有限公司 A kind of method and apparatus of loading interface data
CN109936605B (en) * 2017-12-18 2021-11-05 北京京东尚科信息技术有限公司 Method and device for loading interface data
CN110012320B (en) * 2018-01-05 2021-02-02 武汉斗鱼网络科技有限公司 Live broadcast room label adaptation method, storage medium, electronic device and system
CN110012320A (en) * 2018-01-05 2019-07-12 武汉斗鱼网络科技有限公司 Label adaptation method, storage medium, electronic equipment and the system of direct broadcasting room
CN108881396B (en) * 2018-05-24 2022-04-15 平安普惠企业管理有限公司 Network data loading method, device, equipment and computer storage medium
CN108881396A (en) * 2018-05-24 2018-11-23 平安普惠企业管理有限公司 Loading method, device, equipment and the computer storage medium of network data
CN109165369A (en) * 2018-07-12 2019-01-08 北京猫眼文化传媒有限公司 Webpage display process and device
CN109241477A (en) * 2018-07-27 2019-01-18 沈文策 A kind of Website page loading method, device, electronic equipment and storage medium
CN110830816A (en) * 2018-08-08 2020-02-21 北京国双科技有限公司 Emergency data processing method and device
CN110830820A (en) * 2018-08-08 2020-02-21 北京国双科技有限公司 Emergency data processing method and device
CN110830816B (en) * 2018-08-08 2021-12-07 北京国双科技有限公司 Emergency data processing method and device
CN109857391A (en) * 2019-01-18 2019-06-07 山石网科通信技术股份有限公司 Processing method and processing device, storage medium and the electronic device of data
CN110442395A (en) * 2019-07-29 2019-11-12 微民保险代理有限公司 Dissemination method, device, front-end server and the back-end server of product configuration data
CN110737856A (en) * 2019-09-10 2020-01-31 苏宁云计算有限公司 page acquisition method, device and system
CN111783000A (en) * 2020-06-30 2020-10-16 中国工商银行股份有限公司 Portal website staticizing processing method and device
CN111783000B (en) * 2020-06-30 2023-08-08 中国工商银行股份有限公司 Static processing method and device for portal website
CN112181391A (en) * 2020-10-10 2021-01-05 菏泽学院 Method and system capable of dynamically expanding data
CN113872809A (en) * 2021-09-28 2021-12-31 绿盟科技集团股份有限公司 Access method, device, electronic equipment and storage medium
CN115630248A (en) * 2022-12-21 2023-01-20 深圳高灯计算机科技有限公司 Page determination method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107071066A (en) page access method and device
US9734261B2 (en) Context aware query selection
US10547571B2 (en) Message service providing method for message service linked to search service and message server and user terminal to perform the method
US9300755B2 (en) System and method for determining information reliability
KR101322821B1 (en) System and method for keyword searching in messenger and computer readable medium processing the method
US20150143215A1 (en) Method and system for accessing audio/video community virtual rooms
US20150154303A1 (en) System and method for providing content recommendation service
WO2018213326A1 (en) Predicting intent of a search for a particular context
US8719292B2 (en) Interactive system for internet information retrieval and exploration
CN101931646A (en) Internet brows management method, system and terminal
CN107872534B (en) Information pushing method and device, server and readable storage medium
CN108416006A (en) Information off-line recommends method, apparatus, client, server and storage medium
CN104010035A (en) Method and system for application program distribution
CN104901961B (en) A kind of data push method, server, terminal and system
CN107168974A (en) The display control method and device of message in display items related content, social class application
WO2014176896A1 (en) System and method for updating information in an instant messaging application
CN104699744A (en) Information searching method and device
CN104010223A (en) Method and system for taking over terminal system for video playing
CN105653717B (en) A kind of method and device that information is shared
US10853430B1 (en) Automated agent search engine
US20080033918A1 (en) Systems, methods and computer program products for supplemental data communication and utilization
CN101515288B (en) Display method of network vedio in tabbed browser and processing unit thereof
CN103023704A (en) Method and system for accessing virtual network service equipment
KR20200013843A (en) System and method for providing product manual based on chatbot
US20140280335A1 (en) System and method to allow a domain name server to process a natural language query and determine context

Legal Events

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

Application publication date: 20170818

RJ01 Rejection of invention patent application after publication