CN106528563A - Content access method and apparatus - Google Patents

Content access method and apparatus Download PDF

Info

Publication number
CN106528563A
CN106528563A CN201510577882.2A CN201510577882A CN106528563A CN 106528563 A CN106528563 A CN 106528563A CN 201510577882 A CN201510577882 A CN 201510577882A CN 106528563 A CN106528563 A CN 106528563A
Authority
CN
China
Prior art keywords
content
address
access
reference address
character string
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510577882.2A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510577882.2A priority Critical patent/CN106528563A/en
Publication of CN106528563A publication Critical patent/CN106528563A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a content access method and apparatus. The content access method comprises the steps of obtaining access contents corresponding to a preset access address, and storing the access contents to an agent server; receiving a first access request sent by a first terminal, wherein the first access request carries a first access address; judging whether the first access address is a preset access address or not; and if yes, extracting access contents corresponding to the preset access address from the agent server, and sending the access contents to the first terminal. According to the content access method provided by the invention, the data processing amount of a content server can be reduced by utilizing the agent server, and a part of resource pressure of the content server can be shared, so that the content access speed of a user is increased.

Description

A kind of contents access method and device
Technical field
The present invention relates to communication technical field, more particularly to a kind of contents access method and device.
Background technology
With the development of the Internet (web) technology, the Internet has been deep into the various aspects of people's life, Such as shopping online, on-line payment, financial management in the Internet etc..
The process that web content is accessed at present, by web server, user terminal and back-end data number Data exchange realization is carried out between server.With reference to Fig. 1, the process that specifically user accesses web content is: User terminal sends access request to web server 101, and web server 101 is according to access request from rear Substantial amounts of web data content is inquired about in platform data server 102, and returns corresponding web content to use Family terminal.
But when user's access content is a lot, such as substantial amounts of user accesses web content in synchronization When, web server needs more substantial data processing, therefore web server resource is caused greatly Pressure, result even in web server paralysis, and then cause user access web content speed ratio compared with Slowly, reduce Consumer's Experience.
The content of the invention
It is an object of the invention to provide a kind of contents access method and device, are accessed with solving current user The slow technical problem of the speed of web content.
In order to solve above-mentioned technical problem, the invention provides following technical scheme:
The embodiment provides a kind of contents access method, comprises the steps:
The corresponding access content of default reference address is obtained from content server, and the access content is stored To proxy server;
The first access request that first terminal sends is received, first access request carries the first reference address;
Judge whether first reference address is the default reference address;
If so, then access content corresponding with the default reference address is extracted from the proxy server, and It is sent to the first terminal;
If it is not, then obtain the corresponding access content of first reference address from the content server, and will The access content is transmitted directly to the first terminal.
In present disclosure access method, the corresponding renewal frequency for accessing content of the default reference address Rate is less than predeterminated frequency.
In present disclosure access method, first reference address includes:Address character string, it is described Default reference address includes:Preset address character string;
It is described to judge that the step of whether first reference address is the default reference address includes:
Judge whether the address character string is identical with the preset address character string;
If identical, judge that first reference address is the default reference address;
If differing, first reference address is judged not as the default reference address.
In present disclosure access method, judging address character string with the preset address character string not After identical, before judging first reference address not as the default reference address, the access to content Method also includes:
Determine whether the address character string it is corresponding access content whether with the preset address character string Corresponding access content is identical;
If accessing content to differ, first reference address is judged not as the default reference address.
In present disclosure access method, also include:
In the access corresponding with the preset address character string of the corresponding access content of the address character string In the case of holding identical, judge that first reference address is the default reference address.
It is in present disclosure access method, described to judge that the corresponding content that accesses of the address character string is The no identical step of content that accesses corresponding with the preset address character string includes:
Obtain the difference character that the address character string is distinguished with the preset address character string;
Judge whether the difference character can be such that the corresponding content that accesses of the address character string presets with described Address character string is corresponding to access content difference;
If so, then judge that the corresponding access content of the address character string is corresponding with the preset address character string Access content differ;
If it is not, then judging that the corresponding access content of the address character string is corresponding with the preset address character string Access content it is identical.
It is in present disclosure access method, described to judge that the corresponding content that accesses of the address character string is The no identical step of content that accesses corresponding with the preset address character string includes:
The request header information in first access request is obtained, the request header information includes:First accesses Address character string and required parameter;
Judge whether the corresponding access content of the address character string is pre- with described according to the request header information If the corresponding access content of address character string is identical.
In present disclosure access method, when first reference address is the default reference address, Extracting before accessing content from the proxy server, the contents access method also includes:
Judge described in the proxy server preset reference address it is corresponding access content it is whether expired;
If it is not, then extracting the corresponding access content of the reference address from the proxy server;
If so, then the corresponding access content of first reference address is obtained from the content server, should Access content to store to the proxy server, and the access content is sent to into the first terminal.
In present disclosure access method, it is described to judge described in the proxy server, to preset access The corresponding whether expired step of content that accesses in address includes:
Obtain the corresponding storage time for accessing content of the default reference address;
Judge described in proxy server, to preset the corresponding access content of reference address according to the storage time It is whether expired.
It is in present disclosure access method, described that institute in proxy server is judged according to the storage time Stating the corresponding whether expired step of content that accesses of default reference address includes:
Obtain the time difference between current time and the storage time;
Judge the time difference whether more than predetermined threshold value;
If so, then judge described in the proxy server, to preset the corresponding access content expiration of reference address;
If it is not, then judge described in the proxy server preset reference address it is corresponding access content it is not expired.
It is in present disclosure access method, described to obtain default reference address correspondence from content server Access content, and include the step of the access content is stored to proxy server:
The second access request that second terminal sends is received, second access request carries the second reference address;
Judge whether second reference address is default reference address;
If so, then obtain from content server and preset the corresponding access content of reference address, and will be described pre- If the corresponding content that accesses of reference address is stored to the proxy server.
Embodiments of the invention additionally provide a kind of content access device, including:Content processing module, reception Module, address judgment module and transmission processe module;
The content processing module, for obtaining in the corresponding access of default reference address from content server Hold, and the access content is stored to proxy server;
The receiver module, for receiving the first access request of first terminal transmission, first access please Seek the first reference address of carrying;
The address judgment module, for judging whether first reference address is the default reference address;
The transmission processe module, in the case of being judged as YES in the address judgment module, from described Proxy server extracts access content corresponding with the default reference address, and is sent to the first terminal;
The content obtaining module, in the case of being judged as NO in the address judgment module, from described Content server obtains the corresponding access content of first reference address, and the access content is directly transmitted To the first terminal.
In present disclosure access mechanism, the corresponding renewal frequency for accessing content of the default reference address Rate is less than predeterminated frequency.
In present disclosure access mechanism, first reference address includes:Address character string, it is described Default reference address includes:Preset address character string;
The address judgment module includes:Character judging submodule;
The character judging submodule, is used for:
Judge whether the address character string is identical with the preset address character string;
If identical, judge that first reference address is the default reference address;
If differing, first reference address is judged not as the default reference address.
In present disclosure access mechanism, the address judgment module also includes:Content judging submodule;
The content judging submodule, in the case of being judged as NO in the character judging submodule, sentences Before fixed first reference address is not the default reference address, judge that the address character string is corresponding Access content access content whether corresponding with the preset address character string identical;If accessing content to differ, First reference address is then judged not as the default reference address.
In present disclosure access mechanism, the content judging submodule, specifically for:
The request header information in first access request is obtained, the request header information includes:First accesses Address character string and required parameter;
Judge whether the corresponding access content of the address character string is pre- with described according to the request header information If the corresponding access content of address character string is identical.
In present disclosure access mechanism, also include:Expired judge module;
In the address, the expired judge module, for judging that first reference address is the default visit When asking address, extract before accessing content from the proxy server in the transmission processe module, judge institute State described in proxy server preset reference address it is corresponding access content it is whether expired;
The transmission processe module, in the case of being judged as NO in the expired judge module 706, from The proxy server extracts the corresponding access content of the reference address;
The content processing module, is additionally operable in the case where the expired judge module is judged as YES, from institute State content server and obtain the corresponding access content of first reference address, the access content is stored to institute Proxy server is stated, and the access content is sent to into the first terminal.
The embodiment provides a kind of contents access method and device;Wherein the embodiment of the present invention is provided Contents access method, using proxy server in advance from content server (such as web server) Obtain a part of content to be stored, after the access request for receiving user, from the storage of proxy server The corresponding content that accesses of middle extracting directly returns to user;As can be seen here, content provided in an embodiment of the present invention Access method can reduce the data processing amount of content server using proxy server, share content service A part of resource pressure of device, and then improve the speed that user accesses content;Further, since for some The access request of user need not be forwarded to content server process, directly can be processed by proxy server, The speed that user accesses content is further improved, Consumer's Experience is improved.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to institute in embodiment description The accompanying drawing that needs are used is briefly described, it should be apparent that, drawings in the following description are only the present invention Some embodiments, for those skilled in the art, on the premise of not paying creative work, also Other accompanying drawings can be obtained according to these accompanying drawings.
Fig. 1 is the structural representation that existing web content accesses system;
Fig. 2 is a kind of schematic flow sheet of contents access method that the embodiment of the present invention one is provided;
Fig. 3 is that one kind that the embodiment of the present invention one is provided judges address whether identical schematic flow sheet;
Fig. 4 is the schematic flow sheet of another kind of contents access method that the embodiment of the present invention one is provided;
Fig. 5 is a kind of structural representation of content access system that the embodiment of the present invention two is provided;
Fig. 6 is that a kind of content access system that the embodiment of the present invention two is provided realizes that the flow process that user accesses is shown It is intended to;
Fig. 7 is the structural representation of the first content access device that the embodiment of the present invention three is provided;
Fig. 8 is the structural representation of second content access device that the embodiment of the present invention three is provided;
Fig. 9 is the structural representation of the third content access device that the embodiment of the present invention three is provided;
Figure 10 is the structural representation of the 4th kind of content access device that the embodiment of the present invention three is provided.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the invention, rather than Whole embodiments.Based on the embodiment in the present invention, those skilled in the art are not making creative labor The every other embodiment obtained under the premise of dynamic, belongs to the scope of protection of the invention.
Embodiments provide a kind of contents access method and device.It is described in detail respectively below.
Embodiment one:
In order to be lifted, user accesses the speed of content or server shows efficiency of the content to user, this enforcement Example provides a kind of contents access method, and the content and method can be implemented by proxy server or other entities Or other equipment is implementing, the present embodiment mainly, as a example by implementing in proxy server, introduces this reality Apply the contents access method of example;As shown in Fig. 2 the contents access method of the present embodiment comprises the steps:
Step 201, obtains the corresponding access content of default reference address, and the access content was stored to generation Reason server.
Specifically, proxy server is the server newly increased on the basis of existing content access system, Difference and web server and background data server in existing content access system, the proxy server can Preset in the corresponding access of reference address with obtaining from web server or background data server in advance Hold, and store to local.
Such as proxy server after user access request is received sends the user access request to web Server, web server can be according to inquiring about in corresponding in access request in the rear platform data server Hold, and return to user;
Again for example, proxy server is after user access request is received, direct according to the user access request Corresponding content is inquired about in platform data server in the rear, and returns to user.Agency's clothes in the present embodiment By Http (HyperText Transfer Protocol, Hyper text transfer association between business device and content server View) communicated.
The dynamic content that content can be generated for web server, such as web services are accessed in the present embodiment Device issues user using certain methods from the content that background data server is obtained, make background data server with User data interaction, realizes that dynamic generates web content, now should be from background data server acquisition Hold and be web dynamic contents;Certainly the access content of the present embodiment can also be static content, such as web The web content that server oneself is generated.
In practical application scene, it can be various, such as picture that the present embodiment accesses the content type of content Data (image data in game screen data, caricature website in web game etc.), lteral data (example Such as the lteral data in web game login interface, the lteral data in web game scene etc.), multimedia Data (the video data and audio frequency number in video website in video picture data and voice data, web game According to) etc..
It is to arrange in advance and need to obtain the access for accessing content storage to preset reference address in the present embodiment Location;The address of such as some web games, the address (web page address of Baidu's picture) of picture website, regard The address (web page address of Tengxun's video) of frequency website, and navigation website address (hao123 webpages Address) etc..Certainly it can also be some content options correspondences in webpage to preset reference address in the present embodiment Reference address;Such as, the corresponding reference address of certain this caricature in caricature website, in video website certain The corresponding reference address of individual video, the corresponding reference address of certain this novel in literature website, in gaming certain Individual store or the corresponding reference address of copy etc..
Preferably, in the present embodiment, reference address can be URL (Uniform Resoure Locator, system One URLs), such as http://image.baidu.com/, http://www.qq.com/ etc..
By ensureing that the content that user accesses makes newest content, in the present embodiment, preset address can be content Update reference address infrequently;Specifically, the corresponding renewal frequency for accessing content of the default reference address Rate is less than predeterminated frequency;Wherein predeterminated frequency can be set according to actual access demand or reference address correspondence Access contents attribute setting.Preferably, presetting reference address in the present embodiment can include:Web game URL, the URL of certain scene of game picture, the URL of caricature website, caricature website in web game In in the URL of certain this caricature, the URL (such as the url of starting point net) of literature website or literature website URL of certain this novel etc., in a practical situation the content update of this class website be not very frequently, therefore Some contents of this kind of website or data can be prestored to proxy server so that user is accessing During the type web site contents, the content of acquisition with newest content difference less, can improve user and access speed Degree.
Default reference address corresponding access content is stored into the process into proxy server in the present embodiment Can include:By in the internal memory or local disk of access content caching to proxy server.To for example access Content is stored in disk with the formation of file, or is put into internal memory by system-level internal memory mapping mode, Mode of the content caching in internal memory will wherein be accessed and can improve storage efficiency, and then improve user and access speed Degree.In the present embodiment, caching can be not only a user service, often greatly as a shared buffer memory Amount user uses.
Preferably, in the present embodiment proxy server be Nginx proxy server, nginx proxy servers It is efficient http-server, self-defining module can be loaded, http request is processed, Nginx proxy server has very strong compatibility, goes for polyglot, such as C/C++/Lua Deng.
Above-mentioned steps can be realized by changing the configuration file in Nginx proxy server in the present embodiment 201。
Step 202, receives the first access request that first terminal sends, and first access request carries the One reference address.
The access request that access request can be sent for the mobile terminal of user in the present embodiment;User can touch Send out mobile terminal and corresponding access request is sent to proxy server, to obtain corresponding access content.Specifically Ground, user can trigger the application program after the application program (APP) on opening certain mobile terminal Corresponding access request, to ask corresponding content to be shown, the access request are sent to proxy server Carry corresponding URL.For example, when user opens caricature APP, caricature APP can be sent out to proxy server Corresponding picture access request is sent, and the caricature picture for showing, the access is needed in APP main interfaces to obtain Request accesses the URL of picture needed for carrying;After for example user opens the caricature APP on mobile terminal again, When choosing certain this caricature in the APP main interfaces, caricature APP can send picture to proxy server and visit Request is asked, the picture included to obtain this caricature is shown that the access request can carry this this caricature pair The URL for answering.Again for example, when user triggers certain game APP on mobile terminal, game APP meetings Game data access request is sent to proxy server, is shown with obtaining game data, the game data The URL of the game data that access request is accessed needed for carrying.
In addition, user can also be after first terminal logs in web browser, in triggering web browser Website option, now browser will be to the corresponding access request of proxy server transmission, and such as Http please Ask, the access request carries the corresponding reference address in the website, the url of such as website.In the present embodiment One terminal carries out data exchange with proxy server by ICP/IP protocol.Again for example, for by terminal On browser open navigation website, navigation page click on " top news " option after, browser can be sent out A Http access request is sent to proxy server, the access request carries " top news " website correspondence Url.
Step 203, judges that whether the first reference address is default reference address, if so, then execution step 204, If it is not, then execution step 205.
Specifically, first terminal is sending the first access request to proxy server, and proxy server is being received To after the first access request, the first reference address is extracted from the first access request, then access first Address is compared with default reference address, to judge whether the first reference address is default reference address.
In the case where http agreements are followed, the first access request be http request, the request include request Header, wherein request header information include url and some required parameters, such as requesting method parameter (get Parameter, post parameters, head row required parameter (user-agent, cookie, host etc.) etc..
Step 204, extracts access content corresponding with default reference address from proxy server, and sends To the first terminal.
It is default reference address in the first reference address, showing that proxy server is locally stored has the first access The corresponding access content in location, now can extract access corresponding with default reference address from proxy server Content, and it is sent to first terminal.
For example, the caricature APP that user is installed on mobile terminal is opened, and select in caricature APP main interfaces When taking certain this caricature and being read, mobile terminal will send the access for carrying this caricature to proxy server The access request of location, proxy server are receiving the access request, after obtaining the reference address of this caricature, Need whether the reference address for judging this caricature is default reference address, if when identical, showing agency's clothes Business device has cached the image data of this caricature in advance, now, performs locally stored from proxy server The middle image data for extracting this caricature is sent to the mobile terminal of user, and the mobile terminal is receiving picture Carry out picture to show after data, it is seen that by the contents access method application of the present embodiment to caricature access scenario, The data processing amount of web server can be reduced using proxy server, share the one of web server Part resource pressure, and then the speed that user accesses caricature is improved, improve Consumer's Experience.
Again for example, when user opens certain web game by computer browser, computer browser can be to agency Server sends the access request for carrying web game URL, and proxy server receives the access request, After obtaining web game URL, need to judge whether web game URL is default URL, if It is to show the buffered game data of the web game of the proxy server (such as game login interface number According to etc.), now proxy server will be sent to from the locally stored middle game data for extracting the web game Mobile terminal, mobile terminal are shown after the game data is received;It can be seen that by the content of the present embodiment Access method application is into web game access scenario, it is possible to use proxy server is reducing web services The game data treating capacity of device, shares a part of resource pressure of web server, and then improves user The speed of web game is accessed, Consumer's Experience is improved.
Again for example, " www.baidu.com " is input in the address field of browser of the user on first terminal, Now browser can send corresponding access request to proxy server, and the access request carries content and is The url of " www.baidu.com ", if proxy server judges that the url is identical with default url, Show that proxy server has been stored with " www.baidu.com " corresponding content of pages, now, only need From the locally stored middle content of pages for extracting Baidu search and return to browser and be shown;It can be seen that by this reality The contents access method application of example is applied extremely by the scene of browser access webpage, it is possible to use agency service Device shares a part of resource pressure of web server reducing the web data treating capacity of web server, And then the speed that user accesses webpage is improved, improve Consumer's Experience.
Step 205, obtains the corresponding access content of first reference address from the content server, and The access content is transmitted directly to into the first terminal.
It is not default reference address in the first reference address, shows that proxy server does not locally store the first visit Ask address corresponding access content, now need to extract from the content server (such as web server) with The corresponding access content of first reference address, and it is sent to first terminal.
Specifically, the first access request is transmitted to web server, web server root by proxy server Access content corresponding with the first reference address is inquired about from background data server according to the first access request, and It is transmitted directly to first terminal.Proxy server follows http agreements with content server.
For example, user clicks on web game " cutting imperial miracle " in the navigation page that browser of mobile terminal shows When, now, mobile terminal will send access request to proxy server, and the url that the access request is carried is: http://zlcq.xy.com/?Seid=4823;Proxy server judges request after the access request is received The url of carrying is not default reference address, and now the access request is transmitted to web services by proxy server Device, web server query webpage game " cutting imperial miracle " in background data server according to the access request Content of pages, and the content of pages for inquiring sent to mobile terminal shown.If, agency's clothes Business device has prestored the corresponding games page data of web game " cutting imperial miracle " URL (generally net View data infrequently, voice data etc. is updated in page game) in the case of, now, proxy server After the access request for receiving mobile terminal transmission, can judge that the url that the access request is carried is default Url, then proxy server will from it is locally stored it is middle extract the web game games page data is activation to Mobile terminal, mobile terminal can be shown after games page data are received.
The contents access method that the present embodiment is provided, can apply and pass through mobile terminal APP or passing through In the scenes such as PC browser access contents, which adopts proxy server in advance from content server (such as web Server) in obtain a part of content and stored, after the access request for receiving user, from agency's clothes In the storage of business device, the corresponding content that accesses of extracting directly returns to user;As can be seen here, the present embodiment is provided Contents access method can reduce the data processing amount of content server using proxy server, share in Hold a part of resource pressure of server, and then improve the speed that user accesses content;Further, since right Content server process need not be forwarded in the access request of some users, directly can be entered by proxy server Row is processed, and is further improved the speed that user accesses content, is improved Consumer's Experience;Particularly apply The scene of picture access can more embody the present embodiment method superiority.
In addition, preset address can update the not corresponding preset address of frequency content, Ke Yi in the present embodiment In the case of ensureing that access content is accurate, access speed is lifted.
Lower mask body introduces the process of realizing of above-mentioned steps 203, in the present embodiment reference address and default visit Ask that address can be made up of character string, such as " http://sz.meituan.com/ ", the present embodiment can be with It is whether identical judging whether reference address is identical by the character string for comparing reference address;Specifically, at this Setting the first reference address in embodiment includes:Address character string, the default reference address include:Default ground Location character string;Now, above-mentioned steps 203 can be specifically included:
Judge whether the address character string is identical with the preset address character string;
If identical, judge that first reference address is the default reference address;
If differing, first reference address is judged not as the default reference address.
The url that such as the first access request is carried is www.baidu.com, and default url is also During www.baidu.com, judge that the two url are identicals, i.e. reference address is identical.
However, in a practical situation, when the character string of two reference address is differed, the two access The corresponding access content in location may be identical, now it can be assumed that the two reference address are identical visit Address is asked, so as to further improve access speed.
For example, url is " http://www.jd.com/ ", with url " http://www.jd.com/?Cu " is right The content answered is identical, i.e. the homepage in Jingdone district store.In addition, also many url character strings are different, But corresponding content of pages identical situation, is not just described here one by one.
According to foregoing description, as shown in figure 3, step 203 is specifically included in the present embodiment contents access method:
Step 301, judges whether address character string is identical with preset address character string, if differing, holds Row step 302, if identical, execution step 303.
The url that for example access request is carried is " http://www.jd.com/?Cu ", default reference address is “http://www.jd.com/ ", judges that through step 301 character string of the two addresses is differed, then turns To step 302.
Step 302, judges whether the corresponding access content of address character string is corresponding with preset address character string Access content identical, if identical, execution step 303, if differing, execution step 304.
In the case where the character string of address is differed, proxy server also needs to judge the character of reference address Whether the corresponding content that accesses of the character string of string and default reference address is identical, for example, judge “http://www.jd.com/?Cu ", " http:The two url character strings of //www.jd.com/ " are corresponding Whether content is identical;Or judge http://ac.qq.com/ComicView/chapter/id/17114/cid/180 With " http://ac.qq.com/ComicView/chapter/id/17114/cid/180?Auth=1 " the two url words Whether the corresponding content of symbol string is identical.
Specifically, the present embodiment judges that two address character strings are corresponding and accesses content whether identical realization side Formula includes:
Obtain the difference character that the address character string is distinguished with the preset address character string;
Judge whether the difference character can be such that the corresponding content that accesses of the address character string presets with described Address character string is corresponding to access content difference;
If so, then judge that the corresponding access content of the address character string is corresponding with the preset address character string Access content differ;
If it is not, then judging that the corresponding access content of the address character string is corresponding with the preset address character string Access content it is identical.
Specifically, for example the difference character of the character string of above-mentioned reference address and the character string of default reference address For "?Cu ", at this time, it may be necessary to judge character "?Whether cu " can make the corresponding content of two reference address Difference, for example, it can be determined that whether the difference character for distinguishing is to preset negligible character, if it is, Show that the difference character will not make the corresponding content of two reference address different, if it is not, then showing the area Malapropism symbol can make the corresponding content of two reference address different.Preset negligible character rule of thumb to set For example, general "?" "=" be negligible character, which does not interfere with the corresponding content in address.Equally Process can come judge it is above-mentioned "?Whether auth=1 " can make the corresponding content of two reference address different. Although it should be appreciated that it is above-mentioned by taking the url of shopping website as an example introducing whether the present embodiment judges address Identical mode, is not offered as the judgement that the present embodiment judgment mode is only applicable to shopping website url, and which is same Sample is applied to judgement of web game url etc..
In addition, judging the address character string in the present embodiment, whether corresponding to access content default with described The character string corresponding content identical process that accesses in location can be specifically included:
Request header information in first access request is obtained, wherein, request header information includes:First accesses Address character string and required parameter;
Judge whether the corresponding access content of the address character string is pre- with described according to the request header information If the corresponding access content of address character string is identical.
In the present embodiment, required parameter can be specifically included:Requesting method parameter (get parameters, post parameters), Head row required parameter (user-agent, cookie, host etc.) etc..After request header information is obtained, Can according to the header information comprehensive descision corresponding content of the first reference address to be asked whether with it is default The corresponding content of reference address is identical.
For example when the first access request is http agreement requests, the present embodiment method can extract the agreement request Header, from header obtain get parameters, url, host parameter, user-agent, cookie parameter, According to these parameters and information, connect parameters etc., then judge that the first reference address to be asked is corresponding Content it is whether identical with the corresponding content of default reference address.
Step 303, judges the first reference address as the default reference address.
It is identical in the character string access content corresponding with the character string of default reference address for judging reference address In the case of, such as " http://www.jd.com/?Cu ", with " http://www.jd.com/ " corresponds to capital Eastern store page content, now judges that the two reference address are identicals.
Step 304, judges the first reference address not as the default reference address.
Content not phase is accessed the character string of the character string for judging reference address and default reference address is corresponding With in the case of, the first reference address of surface is two diverse reference address with default reference address, this When judge the first reference address not as default reference address.
Preferably, in the present embodiment, step 203, step 301- step 304 can be in Nginx agency services Device is realized using programming languages such as such as C/C++/Lua.Wherein Lua is the script of a lightweight, Can very easily with C/C++ interprogram communications and calling system service;Therefore Lua language has very strong simultaneous Capacitive, in current all scripts, the speed of Lua is most fast, is the optimal choosing of embedded script Select;Upper above-mentioned steps convenient to carry out 203, step 301- step 304, Ke Yijin are realized using lua language One step improves the speed of data buffer storage, and then further improves access speed.
In order to improve the accuracy of access to content, that is, improve the accuracy of the access content that user obtains, this reality A content and method is applied when first reference address being judged for the default reference address, from the agency Server local is extracted before accessing content, in addition it is also necessary to preset reference address pair in judging the proxy server Whether the access content answered is expired, if no expired, from the locally extracted reference address of proxy server Corresponding access content, if expired, needs from corresponding access of content server acquisition to store to agency's clothes Business device, and the access content is sent to into first terminal.
As shown in figure 4, the present embodiment additionally provides another kind of contents access method, comprise the steps:
Step 401, obtains the corresponding access content of default reference address, and the access content was stored to generation Reason server.
Specifically, the process that storage accesses content in the present embodiment can be the mistake for accessing content in other-end Carry out in journey;For example this step can include:
The second access request that second terminal sends is received, second access request carries the second reference address;
Judge whether second reference address is default reference address;
If so, the corresponding access content of default reference address is obtained, and will be the default reference address corresponding Access content to store to the proxy server;Can specifically send access request to web server with Obtain the corresponding access content of default reference address.
In the present embodiment, second terminal and current first terminal can be same terminal, or it is different Terminal;Specifically, can be two terminals of same user, or the terminal of two different users.
The present embodiment method can access content in other-end before first terminal carries out access to content During, corresponding access content is stored, and content is provided for follow-up same access, for example, user 1 When accessing certain this caricature by the caricature APP on mobile terminal a, proxy server is obtained from web server The image data of this caricature is taken, and the image data of this caricature is cached to proxy server, in agency Server is sent to image data after the mobile terminal a of user 1;On user 2 is by mobile terminal b Caricature APP accessing during identical caricature, proxy server i.e. can be from the figure of locally extracted this caricature Sheet data is sent to the mobile terminal b of user 2, without the need in the figure for obtaining same caricature from web server Sheet data, can lift the speed that user accesses caricature;User passes through mobile terminal accessing web game in the same manner Process is also similar to.
Judge in the present embodiment whether second reference address is that default reference address can adopt above-mentioned figure Process shown in 3 is just repeated no more here realizing.
Certainly, the implementation of this step can also include other modes, for example, defeated in proxy server Enter default reference address, then proxy server generation is corresponding asks corresponding to Web server request Content, stores the content that web server is returned to local afterwards.
Preferably, in the present embodiment, content server can be web server or background data server, Can be by the internal memory of content caching to proxy server or disk in the present embodiment.
Step 402, receives the first access request that first terminal sends, and the first access request carries first and visits Ask address.
Specifically, first terminal can pass through browser or certain application sends http request to agency service To proxy server, the request carries url to the http request that device, such as mobile phone are sent by qq browsers; Or mobile phone applies the access request of such as mobile phone Taobao, caricature control, the transmission of qq farms to generation by certain Reason server etc..
Step 403, judges that whether the first reference address is default reference address, if so, then execution step 404, If it is not, then execution step 407.
By character string, this step can relatively judge whether reference address is identical, specifically may be referred to Fig. 3 is stated, is not just being repeated here.
Step 404, judges whether the corresponding content that accesses of the default reference address of proxy server storage is expired, If so, then execution step 405, if it is not, then execution step 406.
Can be out-of-date in view of the content stored in proxy server, such as when background data server is updated over After the corresponding contents of certain url, the corresponding contents of the url of proxy server storage are the content before updating, The content that user's acquisition will now be caused not is newest content, for this kind of situation, the present embodiment Increased judge content whether process the step of.
Specifically, judge that accessing the whether expired step of content can specifically include:
Obtain the corresponding storage time for accessing content of default reference address;
Judge in proxy server, preset whether reference address is corresponding accesses content according to the storage time It is expired;Specifically, the time difference between current time and storage time is obtained, the time difference is judged Whether it is more than predetermined threshold value, if so, then judges described in proxy server, to preset the corresponding access of reference address Content expiration;If so, then judge described in proxy server, to preset the corresponding access content expiration of reference address.
For example, in the case of predetermined threshold value is 24 little, certain url is (such as picture url, web game url Deng) corresponding content storage time is (such as character moulding data in caricature picture, novel content, web game Storage time etc.) for 12 points of August in 2015 12 days, current time is August in 2015 13 days 10 Point, now the time difference between two times is 22 hours, and now time difference is less than predetermined threshold value 24 Hour, then judge that the access content for storing does not have expired, if current time not August in 2015 13 days 13 Point, now the time difference between two times is that 25 hours are more than predetermined threshold value 24 hours, then judge The access content expiration of storage.
The present embodiment first can also judge content whether mistake later by compare current time and Preset Time Phase, wherein Preset Time are according to storage time setting, such as certain url (picture url, web game Url etc.) corresponding content storage time is (such as character moulding in caricature picture, novel content, web game Time data memory etc.) for 12 points of August in 2015 12 days, now Preset Time can plus 1 day, i.e., For 12 points of August in 2015 13 days, if current time is 10 points of August in 2015 13 days, earlier than default Time, show that the content for storing is not expired, if to be that 14 points of August in 2015 13 days is later than pre- for current time If the time, then the content expiration of surface storage.
Step 405, extracts access content corresponding with default reference address from proxy server, and is sent to First terminal.
Judge to access needed for the locally stored user of proxy server content it is not expired in the case of, surface this The content of Shi Daili server storages is newest content, then directly from the locally extracted content of proxy server (such as character moulding data etc. in caricature picture, novel chapters and sections content, web game) are sent to user terminal.
Step 406, reacquire the corresponding access content of the first reference address, by the access content store to Proxy server, and the access content is sent to into first terminal.
Judging to access needed for the locally stored user of proxy server content expiration (as proxy server is local In the caricature picture of storage, novel chapters and sections content, web game, character moulding data, web game scene are drawn Face data are expired) in the case of, the content of surface now proxy server storage is not newest content, then Need to reacquire corresponding content (such as character moulding in caricature picture, novel chapters and sections content, web game Data, web game scenic picture data etc.), then storage content, transmits the content to user terminal.
In the present embodiment in the case where storage content is expired, the first access can be obtained from content server After the corresponding new access content in location, by the new access content update to proxy server, specifically, using this New content stores the corresponding content of the first reference address before updating, or will be stored in proxy server before The corresponding content of the first reference address delete, the new content for then obtaining in storage.
Step 407, obtains the corresponding access content of the first reference address from content server, and this is accessed Content is transmitted directly to first terminal.
In the case where the first reference address is not default reference address, show that proxy server does not store this The corresponding access content of first reference address, now needs for the first access request to be sent to content server, Corresponding access is obtained according to the first access request by content server and is transmitted directly to user terminal.
For example, the content update of General website typically will not be delayed with proxy server in advance than very fast Deposit related news content;When Netease's news APP that user passes through on mobile phone accesses news, Netease's news APP can send access request to proxy server, and the access request accesses the url of news needed for carrying, this When the url of the news can be judged not for presetting url due to proxy server, show that proxy server is not stored The access request can be forwarded to web server by the news content accessed needed for user, proxy server, Corresponding news content is searched in background data server by web server, and is transmitted directly to terminal Browser display.
Preferably, in the case that proxy server is Nginx proxy server in the present embodiment, to accessing The forwarding of request is performed by the Nginx proxy modules in Nginx proxy server, and in access request The realization of the whether expired judgement of the judgement of reference address and access content, can be in Nginx agency services The program that the embedded lua language of device is write is realized.
The contents access method that the present embodiment is provided, can be while user's access speed be improved, can be with Ensure to access the accuracy of content, improve the experience of user.
Embodiment two:
A kind of content access system is present embodiments provided, as shown in figure 5, including:First mobile terminal 500th, proxy server 501, web server 502 and background data server 503, preferably agency's clothes Business device 501 is Nginx proxy server;Proxy server 501, web server 502 and back-end data Http agreements are followed between server 503.
With reference to Fig. 6, the content access system realizes that user accesses the process of content and comprises the steps:
Step 600, the first mobile terminal 500 send the first access request to proxy server 501, and this One access request carries the first reference address.
Specifically, the caricature APP for installing on the first mobile terminal 500 or game APP, touches in user Give transmission to carry the picture access request of correspondence picture reference address or carry correspondence game data access The game access of address is asked to proxy server;Such as, user open caricature APP after, in caricature The caricature of APP recommends interface to choose the caricature for wanting to read, and now first terminal 500 will be to agency service Device 501 sends picture access request, and the picture access request carries caricature correspondence URL;Again such as, User is in opening game APP, and after logging in game APP, user clicks on game store or fights mould After formula, first terminal 500 will send game data access request to proxy server, and the game data is visited Ask that request carries the URL in game store, or the reference address of battle mode contextual data.
Step 601, proxy server 501 receive the first access request that the first mobile terminal sends, from the The first reference address is extracted in one access request.
Step 602, proxy server 501 judge whether the first reference address is default reference address, if so, Then execution step 603.
Such as, judge that whether the corresponding URL of caricature that user wants to read is default URL, or judge Whether the URL in game store is default URL, or judge the corresponding access of battle mode contextual data Whether location is default reference address.
First access request is transmitted to web server 502, web by step 603, proxy server 501 Server 502 is according to inquiring about in the first access request in the rear platform data server 503 and default access The corresponding access content in location, and proxy server 501 is returned to by content is accessed.
Specifically, picture access request or game data access request can be turned by proxy server 501 Issue web server;Web server is according to picture access request or game data access request rear Corresponding picture or game data are searched in head data server 503, and returns to proxy server 501.
Step 604, the caching of the proxy server 501 corresponding access content of default reference address, and this is visited Ask that content is sent to the first mobile terminal 500, so that the first mobile terminal 500 shows the access content.
Specifically, proxy server caches image data or game data, and by image data or game Data is activation gives the first mobile terminal 500, caricature APP or game APP in the first mobile terminal 500 Shown after receiving the image data or game data.
Step 605, proxy server 501 receive the second access request that the second mobile terminal 504 sends, Second access request carries the second reference address.
Specifically, the caricature APP for installing on the second mobile terminal 504 or game APP are (with first eventually The caricature APP or game APP that end 500 is installed is identical), send under user's triggering and carry corresponding diagram The game access request of the picture access request of piece reference address or carrying correspondence game data reference address To proxy server 501;Such as, after caricature APP of the other users on the second mobile terminal is opened, The caricature of caricature APP recommends interface to choose as the user in step 600 during caricature, now second moves Dynamic terminal 504 will send picture access request to proxy server 501, and the picture access request is carried should Caricature correspondence URL;Again such as, user is opening game APP, and after logging in game APP, user Game store (identical with the game store that user in step 600 chooses) or battle mode are clicked on (with step The battle mode that user chooses in rapid 600 is identical) after, second terminal 504 will be to proxy server 501 Game data access request is sent, the game data access request carries the URL in game store, or right The reference address of war pattern contextual data.
Step 606, proxy server 501 judge whether the second reference address is above-mentioned default reference address, If so, then execution step 607, if it is not, then execution step 611.
Specifically, as the user of second terminal 504 uses same APP with the user of first terminal 501, And the access content chosen in same APP is identical, now proxy server 501 can judge the second visit Address is asked for default reference address.
Step 607, proxy server 501 judge whether the corresponding content that accesses of the preset address for storing is expired, If it is not, then execution step 608, if so, then execution step 609.
Specifically, proxy server 501 judges the image data or game data of the caching of above-mentioned steps 604 It is whether expired, judge that expired mode may be referred to the associated description in embodiment one.
Step 608, proxy server 501 are extracted the corresponding content that accesses of preset address from storage and are sent to Second mobile terminal 504.
Specifically, proxy server 501 will extract the image data of the caching of above-mentioned steps 604 from storage Or game data is transmitted directly to the second mobile terminal 504, after the second mobile terminal 504 receives data Shown in APP.
Second access request is transmitted to web server 502, web by step 609, proxy server 501 Server 502 inquires about corresponding access content in background data server 503 according to the second access request, And access content corresponding with the second reference address is sent to into proxy server 501.
Specifically, picture is asked by proxy server 501 or game data request is transmitted to web services Device 502, web server 502 inquire about corresponding picture number from background data server 503 according to request According to or game data, and be sent to proxy server 501.
Step 610, the caching of proxy server 501 receive access content, and will receive the second access The corresponding content that accesses in location is sent to the second mobile terminal 504, is terminated.
Specifically, the caching of proxy server 501 receives image data or game data, and by picture number According to or game data send to the second mobile terminal 504;Second mobile terminal 504 is receiving picture number According to or game data after shown.
Preferably, in order to be suitable for practical situation, in the present embodiment, proxy server 501 receives visiting in caching Also need to judge whether cache access content before asking content, specifically, proxy server can considered The factors such as 501 memory space, user's request, systematic steady state, terminal port configuring condition are judging whether to delay Deposit access content.
Second access request is transmitted to web server 502, web by step 611, proxy server 501 Server 502 inquires about corresponding access content in background data server according to the second access request, and will Access content corresponding with the second reference address is sent to proxy server 501.
Specifically, if the image data accessed needed for second terminal 504 or game data and above-mentioned steps In 600 when the image data or different game data of first terminal access, which is sent in access request Reference address is also different with the address of access request in above-mentioned steps 600, now proxy server 501 The second reference address can be judged not for preset address, proxy server 501 can be by picture access request or trip Play data access request is forwarded to web server 502, and web server 502 is according to request from back-end data Corresponding image data or game data is inquired about in server 503, and is sent to proxy server 501.
Second reference address corresponding access content is directly sent to the by step 612, proxy server 501 Two mobile terminals 504, terminate.
Proxy server 501 receive web server 502 return image data or game data it Afterwards, image data or game data can be transmitted directly to mobile terminal 504
The content access system that the present embodiment is provided compares existing content access system, increased agency service Device 501, shares the pressure of web server using proxy server 501, improves in mobile terminal accessing The speed of appearance, or the efficiency of mobile terminal displaying web content, improve Consumer's Experience while also saving Bandwidth resources;The advantages of content access system of the present embodiment also has easy to implement, cost is relatively low in addition.
Embodiment three:
A kind of content access device is present embodiments provided, as shown in fig. 7, comprises:Content processing module 701st, receiver module 702, address judgment module 703 and transmission processe module 704;The present embodiment it is interior Hold access mechanism to realize as independent entity, it is also possible to which basis is in other network equipments, such as generation In reason server, wherein,
Content processing module 701, for obtaining the corresponding access content of default reference address, and this is accessed Content is stored to proxy server;
Receiver module 702, for receiving the first access request of first terminal transmission, first access please Seek the first reference address of carrying;
Address judgment module 703, for judging whether first reference address is the default reference address;
Transmission processe module 704, in the case of being judged as YES in the address judgment module 703, from The proxy server extracts access content corresponding with the default reference address, and is sent to described first Terminal;
Content obtaining module 705, in the case of being judged as NO in the address judgment module 703, from The content server obtains the corresponding access content of first reference address, and will be the access content direct It is sent to the first terminal.
Content access device application proxy service the present embodiment provided during user accesses content Proxy server can be made to reduce the data processing amount of content server in device, the one of content server is shared Part resource pressure, and then improve the speed that user accesses content;Further, since for some users' Access request need not be forwarded to content server process, directly can be processed by proxy server, enter one Step improves the speed that user accesses content, improves Consumer's Experience.
Preferably, in order to ensure the accuracy of the content of user's access, described in the present embodiment, preset access The corresponding renewal frequency for accessing content in location is less than predeterminated frequency.Also will some content updates infrequently content There is proxy server, a part of pressure of content server is shared by proxy server.
Preferably, described in the present embodiment, the first reference address includes:Address character string, the default access Address includes:Preset address character string;As shown in figure 8, address judgment module 703 described in the present embodiment Including:Character judging submodule 7031;
The character judging submodule 7031, is used for:
Judge whether the address character string is identical with the preset address character string;
If identical, judge that first reference address is the default reference address;
If differing, first reference address is judged not as the default reference address.
Preferably, it is further to lift the speed that user accesses content, the present embodiment can be by corresponding content phase Same different address regards same address as, specifically, as shown in figure 9, on the basis of the above, this enforcement Described in example, address judgment module 703 can also include:Content judging submodule 7032;
Content judging submodule 7032, for situation about being judged as NO in the character judging submodule 7031 Under, before judging first reference address not as the default reference address, judge the address character string It is corresponding access content it is whether corresponding with the preset address character string access content it is identical;If accessing content Differ, then first reference address is judged not as the default reference address.
Preferably, the content judging submodule, specifically for:
The request header information in first access request is obtained, the request header information includes:First accesses Address character string and required parameter;
Judge whether the corresponding access content of the address character string is pre- with described according to the request header information If the corresponding access content of address character string is identical.
Preferably, accuracy is accessed in order to improve user, as shown in Figure 10, in the above access mechanism On the basis of, also include:Expired judge module 706;
Wherein, expired judge module 706, for judging first reference address for described in the address During default reference address, extract before accessing content from the proxy server in the transmission processe module, Judge described in the proxy server preset reference address it is corresponding access content it is whether expired;
Transmission processe module 704, in the case of being judged as NO in the expired judge module 706, from The proxy server extracts the corresponding access content of the reference address;
Content processing module 701, can be also used for situation about being judged as YES in the expired judge module 706 Under, the corresponding access content of first reference address is obtained from the content server, by the access content Store to the proxy server, and the access content is sent to into the first terminal.
The present embodiment content access device can constantly update the access content of proxy server storage, improve While user's access speed, the accuracy that user accesses is lifted.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment Suddenly can be by program to instruct the hardware of correlation to complete, the program can be stored in a computer-readable In storage medium, storage medium can include:Read only memory (ROM, Read Only Memory), Random access memory (RAM, Random Access Memory), disk or CD etc..
A kind of contents access method for being provided to the embodiment of the present invention above and device are described in detail, Specific case used herein is set forth to the principle of the present invention and embodiment, above example Illustrate that being only intended to help understands the method for the present invention and its core concept;Simultaneously for the technology of this area Personnel, according to the thought of the present invention, will change in specific embodiments and applications, comprehensive Upper described, this specification content should not be construed as limiting the invention.

Claims (17)

1. a kind of contents access method, it is characterised in that comprise the steps:
The corresponding access content of default reference address is obtained, and the access content is stored to proxy server;
The first access request that first terminal sends is received, first access request carries the first reference address;
Judge whether first reference address is the default reference address;
If so, access content corresponding with the default reference address is then extracted from proxy server, concurrently Give first terminal.
2. contents access method as claimed in claim 1, it is characterised in that the default reference address The corresponding renewal frequency for accessing content is less than predeterminated frequency.
3. contents access method as claimed in claim 1, it is characterised in that first reference address Including:Address character string, the default reference address include:Preset address character string;
It is described to judge that the step of whether first reference address is the default reference address includes:
Judge whether the address character string is identical with the preset address character string;
If identical, judge that first reference address is the default reference address;
If differing, first reference address is judged not as the default reference address.
4. contents access method as claimed in claim 3, it is characterised in that judging address character string After differing with the preset address character string, first reference address is judged not as the default access Before address, the contents access method also includes:
Determine whether the address character string it is corresponding access content whether with the preset address character string Corresponding access content is identical;
If accessing content to differ, first reference address is judged not as the default reference address.
5. contents access method as claimed in claim 4, it is characterised in that also include:
In the access corresponding with the preset address character string of the corresponding access content of the address character string In the case of holding identical, judge that first reference address is the default reference address.
6. contents access method as claimed in claim 4, it is characterised in that the judgement address The corresponding content content identical that accesses whether corresponding with the preset address character string that accesses of character string is walked Suddenly include:
Obtain the difference character that the address character string is distinguished with the preset address character string;
Judge whether the difference character can be such that the corresponding content that accesses of the address character string presets with described Address character string is corresponding to access content difference;
If so, then judge that the corresponding access content of the address character string is corresponding with the preset address character string Access content differ;
If it is not, then judging that the corresponding access content of the address character string is corresponding with the preset address character string Access content it is identical.
7. contents access method as claimed in claim 4, it is characterised in that the judgement address The corresponding content content identical that accesses whether corresponding with the preset address character string that accesses of character string is walked Suddenly include:
The request header information in first access request is obtained, the request header information includes:First accesses Address character string and required parameter;
Judge whether the corresponding access content of the address character string is pre- with described according to the request header information If the corresponding access content of address character string is identical.
8. the contents access method as described in any one of claim 1-7, it is characterised in that when described When one reference address is the default reference address, extracting from proxy server before accessing content, institute Stating contents access method also includes:
Judge described in the proxy server preset reference address it is corresponding access content it is whether expired;
If it is not, then perform from proxy server extracting the content that accesses corresponding with the default reference address Step;
If so, the corresponding access content of first reference address is then reacquired, the access content is stored To the proxy server, and the access content is sent to into the first terminal.
9. contents access method as claimed in claim 8, it is characterised in that the judgement agency Presetting the corresponding whether expired step of content that accesses of reference address described in server includes:
Obtain the corresponding storage time for accessing content of the default reference address;
Judge described in proxy server, to preset the corresponding access content of reference address according to the storage time It is whether expired.
10. contents access method as claimed in claim 9, it is characterised in that described according to the storage Time judges to preset the whether expired step bag of the corresponding access content of reference address described in proxy server Include:
Obtain the time difference between current time and the storage time;
Judge the time difference whether more than predetermined threshold value;
If so, then judge described in the proxy server, to preset the corresponding access content expiration of reference address;
If it is not, then judge described in the proxy server preset reference address it is corresponding access content it is not expired.
11. contents access methods as described in any one of claim 1-7, it is characterised in that the acquisition The corresponding access content of default reference address, and the access content is stored to concrete the step of proxy server Including:
The second access request that second terminal sends is received, second access request carries the second reference address;
Judge whether second reference address is default reference address;
If so, then the corresponding access content of default reference address is obtained from content server, and will be described default The corresponding content that accesses of reference address is stored to the proxy server.
12. a kind of content access devices, it is characterised in that include:Content processing module, receiver module, Address judgment module and transmission processe module;
The content processing module, for obtaining the corresponding access content of default reference address, and this is accessed Content is stored to proxy server;
The receiver module, for receiving the first access request of first terminal transmission, first access please Seek the first reference address of carrying;
The address judgment module, for judging whether first reference address is the default reference address;
The transmission processe module, in the case of being judged as YES in the address judgment module, from described Proxy server extracts access content corresponding with the default reference address, and is sent to the first terminal;
The content obtaining module, in the case of being judged as NO in the address judgment module, from described Content server obtains the corresponding access content of first reference address, and the access content is directly transmitted To the first terminal.
13. content access devices as claimed in claim 12, it is characterised in that the default access The corresponding renewal frequency for accessing content in location is less than predeterminated frequency.
14. content access devices as claimed in claim 12, it is characterised in that first access Location includes:Address character string, the default reference address include:Preset address character string;
The address judgment module includes:Character judging submodule;
The character judging submodule, is used for:
Judge whether the address character string is identical with the preset address character string;
If identical, judge that first reference address is the default reference address;
If differing, first reference address is judged not as the default reference address.
15. content access devices as claimed in claim 14, it is characterised in that the address judges mould Block also includes:Content judging submodule;
The content judging submodule, in the case of being judged as NO in the character judging submodule, sentences Before fixed first reference address is not the default reference address, judge that the address character string is corresponding Access content access content whether corresponding with the preset address character string identical;If accessing content to differ, First reference address is then judged not as the default reference address.
16. content access devices as claimed in claim 15, it is characterised in that the content judges son Module, specifically for:
The request header information in first access request is obtained, the request header information includes:First accesses Address character string and required parameter;
Judge whether the corresponding access content of the address character string is pre- with described according to the request header information If the corresponding access content of address character string is identical.
17. content access devices as described in any one of claim 12-16, it is characterised in that also include: Expired judge module;
In the address, the expired judge module, for judging that first reference address is the default visit When asking address, extract before accessing content from the proxy server in the transmission processe module, judge institute State described in proxy server preset reference address it is corresponding access content it is whether expired;
The transmission processe module, in the case of being judged as NO in the expired judge module, from described Proxy server extracts the corresponding access content of the reference address;
The content processing module, is additionally operable in the case where the expired judge module is judged as YES, again Access content corresponding with first reference address is obtained, the access content is stored to the agency service Device, and the access content is sent to into the first terminal.
CN201510577882.2A 2015-09-11 2015-09-11 Content access method and apparatus Pending CN106528563A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510577882.2A CN106528563A (en) 2015-09-11 2015-09-11 Content access method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510577882.2A CN106528563A (en) 2015-09-11 2015-09-11 Content access method and apparatus

Publications (1)

Publication Number Publication Date
CN106528563A true CN106528563A (en) 2017-03-22

Family

ID=58346562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510577882.2A Pending CN106528563A (en) 2015-09-11 2015-09-11 Content access method and apparatus

Country Status (1)

Country Link
CN (1) CN106528563A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483609A (en) * 2017-08-31 2017-12-15 深圳市迅雷网文化有限公司 A kind of Network Access Method, relevant device and system
CN108337317A (en) * 2018-02-09 2018-07-27 马上消费金融股份有限公司 Method and device for processing route request
CN108768775A (en) * 2018-05-30 2018-11-06 努比亚技术有限公司 Information processing method, electronic equipment and computer storage media
CN109308336A (en) * 2018-09-06 2019-02-05 成都大学 Data processing method, processing equipment and storage medium
CN110933129A (en) * 2019-10-18 2020-03-27 网宿科技股份有限公司 Data scheduling method, plug-in, device and scheduling server
CN114205678A (en) * 2021-11-16 2022-03-18 湖南新云网科技有限公司 Video access method, access device, terminal and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624920A (en) * 2012-03-31 2012-08-01 奇智软件(北京)有限公司 Method and device for performing access through proxy server
CN102780711A (en) * 2011-05-09 2012-11-14 腾讯科技(深圳)有限公司 Method, device and system for accessing application data of SNS (Social Network Site)
CN103188293A (en) * 2011-12-28 2013-07-03 腾讯科技(深圳)有限公司 Method and system for allowing mobile terminal to access webpage
CN103455478A (en) * 2012-05-21 2013-12-18 腾讯科技(深圳)有限公司 Webpage access accelerating method and device
CN104142966A (en) * 2013-09-26 2014-11-12 腾讯科技(深圳)有限公司 Web page displaying method and client

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780711A (en) * 2011-05-09 2012-11-14 腾讯科技(深圳)有限公司 Method, device and system for accessing application data of SNS (Social Network Site)
CN103188293A (en) * 2011-12-28 2013-07-03 腾讯科技(深圳)有限公司 Method and system for allowing mobile terminal to access webpage
CN102624920A (en) * 2012-03-31 2012-08-01 奇智软件(北京)有限公司 Method and device for performing access through proxy server
CN103455478A (en) * 2012-05-21 2013-12-18 腾讯科技(深圳)有限公司 Webpage access accelerating method and device
CN104142966A (en) * 2013-09-26 2014-11-12 腾讯科技(深圳)有限公司 Web page displaying method and client

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483609A (en) * 2017-08-31 2017-12-15 深圳市迅雷网文化有限公司 A kind of Network Access Method, relevant device and system
CN107483609B (en) * 2017-08-31 2018-08-28 深圳市迅雷网文化有限公司 A kind of Network Access Method, relevant device and system
CN108337317A (en) * 2018-02-09 2018-07-27 马上消费金融股份有限公司 Method and device for processing route request
CN108337317B (en) * 2018-02-09 2021-07-16 马上消费金融股份有限公司 Method and device for processing route request
CN108768775A (en) * 2018-05-30 2018-11-06 努比亚技术有限公司 Information processing method, electronic equipment and computer storage media
CN108768775B (en) * 2018-05-30 2022-01-14 努比亚技术有限公司 Information processing method, electronic device, and computer storage medium
CN109308336A (en) * 2018-09-06 2019-02-05 成都大学 Data processing method, processing equipment and storage medium
CN110933129A (en) * 2019-10-18 2020-03-27 网宿科技股份有限公司 Data scheduling method, plug-in, device and scheduling server
CN114205678A (en) * 2021-11-16 2022-03-18 湖南新云网科技有限公司 Video access method, access device, terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN106528563A (en) Content access method and apparatus
US9646254B2 (en) Predicting next web pages
CN102438045B (en) Method and system for pre-fetching web page, and method for accessing web page
CN102075570B (en) Method for implementing HTTP (hyper text transport protocol) message caching mechanism based on keywords
US20080222242A1 (en) Method and System for Improving User Experience While Browsing
CN106055603B (en) Browser access network address recommended method, client and system based on VPN
US20140082019A1 (en) Historical browsing session management
AU2016202333B2 (en) Historical browsing session management
KR20160030381A (en) Method, device and router for access webpage
US9280266B2 (en) Apparatus and method for displaying information as background of user interface
WO2004029834A1 (en) Method, system, and program for maintaining data in distributed caches
US20150334043A1 (en) Differential cache for representational state transfer (rest) api
CN103916474B (en) The definite method, apparatus and system of cache-time
CN105357192B (en) The method, apparatus and system of Web page push
US7970758B2 (en) Automatic completion with LDAP
CN110430188A (en) A kind of quick url filtering method and device
CN107105336A (en) Data processing method and data processing equipment
CN105279156B (en) Network information communication means and network information browsing apparatus
CN104615597A (en) Method, device and system for clearing cache file in browser
WO2015058614A1 (en) Bookmark storage method and device, and method and device for determining bookmark to be browsed
CN106354792A (en) Webpage display method and device
CN104980311B (en) Predict the method, apparatus and system of network access
JP2002183000A (en) Method and system for referring to data through network
CN110247996B (en) Wireless router device of configurable cache system based on intelligent classroom
CN106682171A (en) Caching method and device of webpage data

Legal Events

Date Code Title Description
C06 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: 20170322

RJ01 Rejection of invention patent application after publication