CN107465722A - The implementation method and device of web access - Google Patents

The implementation method and device of web access Download PDF

Info

Publication number
CN107465722A
CN107465722A CN201710537000.9A CN201710537000A CN107465722A CN 107465722 A CN107465722 A CN 107465722A CN 201710537000 A CN201710537000 A CN 201710537000A CN 107465722 A CN107465722 A CN 107465722A
Authority
CN
China
Prior art keywords
resource
page
terminal
request
static
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710537000.9A
Other languages
Chinese (zh)
Other versions
CN107465722B (en
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.)
Advanced Nova Technology Singapore Holdings Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710537000.9A priority Critical patent/CN107465722B/en
Publication of CN107465722A publication Critical patent/CN107465722A/en
Application granted granted Critical
Publication of CN107465722B publication Critical patent/CN107465722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/562Brokering proxy services
    • 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/566Grouping or aggregating service requests, e.g. for unified processing
    • 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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This specification provides the implementation method that a kind of web is accessed, and applies in content distributing network CDN node, including:The page resource request that receiving terminal is sent;After determining the page resource request for the request of dynamic resource according to predetermined resource typing rule, the dynamic resource of the terminal request is obtained from business service end;Being returned to terminal includes the page resource response of the dynamic resource, and carrying out web page for terminal shows.

Description

The implementation method and device of web access
Technical field
This specification is related to network communication technology field, more particularly to the implementation method and device of a kind of web access.
Background technology
With the development and popularization of mobile internet, government, trade company, enterprise etc. provided the user on network it is more next More business services.User generally has two kinds using the mode of these business services, the visitor that a kind of use is installed in terminal Family end carries out business procedure;Another kind is to carry out business procedure with browser with web access in terminal.
In the application scenarios for carrying out business procedure are accessed with web, in the network infrastructure inadequate place of complete degree or In transnational carry out web access, user usually needs to wait for a long time person when the page is opened.Asked to improve this Topic, generally use CDN (Content Delivery Network, i.e. content distributing network) technologies lift access speed.One In money web products on each page static resource (as picture, page framework etc. be common to each user and change frequency it is low Content of pages) be distributed to by CDN in each CDN node, when these static resources of terminal request, by away from terminal most Near CDN node is responded.But for being not suitable for being deployed in the dynamic resource on CDN, as produced in specific business procedure Business datum, because user is different and different content of pages etc., its acquisition speed still needs raising.
The content of the invention
In view of this, this specification provides the implementation method that a kind of web is accessed, and applies in content distributing network CDN node On, including:
The page resource request that receiving terminal is sent;
After being determined the page resource request for the request of dynamic resource according to predetermined resource typing rule, from business Service end obtains the dynamic resource of the terminal request;
Being returned to terminal includes the page resource response of the dynamic resource, and carrying out web page for terminal shows.
The implementation method that a kind of web that this specification provides is accessed, is applied in terminal, including:
Page resource request is sent to content distributing network CDN node, the page resource request is to dynamic resource Request;
Receive CDN node return page resource response, including by CDN node according to the page resource ask from The dynamic resource that business service end obtains;
Web page is showed using the dynamic resource.
This specification additionally provides the realization device that a kind of web is accessed, and applies in content distributing network CDN node, wraps Include:
Page resource request reception unit, the page resource request sent for receiving terminal;
Dynamic resource acquiring unit, for determining that the page resource request is to dynamic according to predetermined resource typing rule After the request of state resource, the dynamic resource of the terminal request is obtained from business service end;
Dynamic resource issuance unit, the page resource that the dynamic resource is included for being returned to terminal responds, for terminal Web page is carried out to show.
The realization device that a kind of web that this specification provides is accessed, is applied in terminal, including:
Dynamic resource request unit, for sending page resource request, the page money to content distributing network CDN node Source request is the request to dynamic resource;
Dynamic resource receiving unit, for receiving the page resource response of CDN node return, including by CDN node The dynamic resource obtained according to page resource request from business service end;
Dynamic resource shows unit, for showing web page using the dynamic resource.
A kind of content distributing network CDN node that this specification provides, including:Memory and processor;The memory On be stored with can by processor run computer program;When the processor runs the computer program, above-mentioned answer is performed With the step described in the implementation method of the web access in CDN node.
This specification additionally provides a kind of terminal, including:Memory and processor;Being stored with the memory can be by Manage the computer program of device operation;When the processor runs the computer program, the above-mentioned web applied in terminal is performed Step described in the implementation method of access.
A kind of computer-readable recording medium that this specification provides, is stored thereon with computer program, the computer When program is run by processor, the step described in the implementation method that the above-mentioned web applied in CDN node is accessed is performed.
This specification additionally provides a kind of computer-readable recording medium, is stored thereon with computer program, the calculating When machine program is run by processor, the step described in the implementation method that the above-mentioned web applied in terminal is accessed is performed.
From above technical scheme, in the embodiment of this specification, from terminal to CDN node request dynamic resource, CDN Node obtains dynamic resource from business service end and is sent to terminal, because CDN node and business take according to the request of terminal The facility of network and running situation are generally far better than the network between terminal and business service end between business end, so as to greatly Accelerate terminal and the speed for carrying out business procedure is accessed by web.
Brief description of the drawings
Fig. 1 is that one kind is applied in CDN node in this specification embodiment, the flow chart for the implementation method that web is accessed;
Fig. 2 is that one kind is applied in terminal in this specification embodiment, the flow chart for the implementation method that web is accessed;
When Fig. 3 is a kind of terminal request static resource in this specification application example, interacting between terminal and CDN node Schematic diagram;
When Fig. 4 is a kind of terminal request dynamic resource in this specification application example, terminal, CDN node and business service Interaction schematic diagram between device;
Fig. 5 is a kind of hardware structure diagram of equipment where terminal or CDN node;
Fig. 6 is that one kind is applied in CDN node in this specification embodiment, the logical construction for the realization device that web is accessed Figure;
Fig. 7 is that one kind is applied in terminal in this specification embodiment, the building-block of logic for the realization device that web is accessed.
Embodiment
CDN is one layer of intelligent virtual network on existing Internet basic, by placing node everywhere in network Server, CDN system can in real time according to network traffics and the network condition of each node, load state and to user away from From with the integrated information such as response time, the request of user is oriented in the CDN node nearest from user, user is obtained nearby Required content, solve the situation of network congestion, improve the response speed accessed Client-initiated web.
For any one CDN system, the deployed position of usual CDN node can take into full account the network-like of region The factors such as condition, flow distribution, to realize the rapid data transmission between the terminal of user as far as possible.In addition, CDN node is generally transported Row accesses on IDC (Internet Data Center, Internet data center) computer rooms or the network equipment of core net The speed of other servers (the business service end that a certain business service is such as provided) can also be significantly faster than region terminal-pair this The access speed of a little servers.
For above-mentioned consideration, the embodiment of this specification proposes a kind of implementation method of new web access, and terminal will be to dynamic The request of state resource is sent to CDN node, and CDN node obtains the dynamic resource of terminal request to business service end, and returns to Terminal, can so utilize the quick transmission between CDN node and terminal, and and can is utilized between CDN node and business service end Quick transmission, so as to greatly accelerate terminal web access in obtain dynamic resource speed, be advantageous to business procedure Smoothly complete, to solve problems of the prior art.
In the embodiment of this specification, terminal can be mutual by network with CDN node, CDN node and business service end Access.Wherein, terminal can be that mobile phone, tablet personal computer, PC (Personal Computer, PC), notebook etc. are set It is standby;CDN node or business service end may operate on a physical equipment, can also operate in two or more things Manage in equipment, mutually cooperateed with by these physical equipments to realize each of CDN node in this specification embodiment or business service end Item function.This specification embodiment saves to the species of equipment where terminal, CDN node or business service end, and terminal with CDN The type of communication network, agreement etc. do not limit between point, between CDN node and business service end.
In the embodiment of this specification, the implementation method that web is accessed applies flow in CDN node as shown in figure 1, should It is as shown in Figure 2 with the flow in terminal.
In terminal, step 210, page resource request is sent to CDN node, page resource request is to dynamic resource Request.
In CDN node, step 110, the page resource request that receiving terminal is sent.
The embodiment of this specification is applied in web products.Web products include being used for realizing that is arrived a multiple specific industry Business process or the web page for realizing the parts to multiple specific business procedures, these web pages can be for The page or can receive the page that user inputs that family browses, can also be the page with user mutual, or other The page of form, is not limited.
All domain names used using the web products of this specification embodiment are deployed on CDN system.When there is terminal to make During with the web products, these domain names can be used to initiate to access.According to the operation principle of CDN system, current distance terminal is nearest The IP address of CDN node will be used as the result of DNS (Domain Name System, domain name system) parsings.So, this is used The request initiated during web products will be sent in CDN node.
Same web products can store the resource to be used in a network by multiple domain names.So work as terminal When carrying out resource request in the web products, it is often required to parse multiple domain names, adds the time delay for opening webpage.Can be by web All resources of product all use same domain name, and only need to carry out a dns resolution obtains the IP address of CDN node, follow-up to be It can be used and be buffered in the address of local CDN node to initiate the request of the web products, so as to accelerate the speed of web access.
After terminal obtains the address of CDN node, page resource request is sent to CDN node.
In the embodiment of this specification, page resource includes showing the various information needed for web page, including static resource And dynamic resource.In practical application scene, it can will be suitable for terminal distributing using CDN mechanism according to CDN system features Page resource as static resource, using other resources as dynamic resource.For example, static resource can be multiple including being common to User, the page content data infrequently changed, such as picture, font, CSS (CSS, Cascading Style Sheets), JS (JavaScript) etc.;Dynamic resource can include other resources in page resource in addition to static resource, such as Change over time frequently business information, during the business of web products is carried out caused business datum, because user is different and Different page content data etc..
Realized according to the specific page of web products, it can be quiet to show one required for web page to multiple resources State resource or dynamic resource, more situations are both to include static resource, also including dynamic resource.When user is in terminal Browser in open a web page, or when carrying out interactive operation on web page, terminal needs acquisition to show to connect down Several resources needed for web page (web page being opened or the web page with interaction results etc.) come.According to clear Look at the realization mechanism of device, terminal can initiate page resource request respectively for required each resource.So, the page that terminal is sent Request of the face resource request either to static resource, or the request to dynamic resource.
In CDN node, step 120, determining that page resource request is that dynamic is provided according to predetermined resource typing rule After the request in source, the dynamic resource of the terminal request is obtained from business service end.
After CDN node receives the page resource request of terminal, judge that the page resource is according to predetermined resource typing rule Request to dynamic resource or the request to static resource.If requested resource is dynamic resource, CDN node is according to end The page resource request at end, initiate to obtain the communication of dynamic resource to business service end.Business service end returns to it to CDN node Ask the dynamic resource of (that is to say terminal request).
In the prior art, business service end has provided the terminal with the approach for obtaining dynamic resource, and CDN node can use phase Same approach comes to business service end request dynamic resource.Business service end can also be used with terminal not between CDN node Same mode to provide the dynamic resource of user to CDN node, and the embodiment of this specification does not limit, as long as CDN node energy Enough dynamic resources obtained from business service end needed for terminal.
Predetermined resource typing rule can be according to the dividing mode of dynamic resource in practical application scene and static resource, pipe The factors such as reason mode determine.For example, can be using dynamic resource and static resource at different paths as the one of reference address Part, so, when being included the predefined paths of dynamic resource by the address of the resource of terminal request, you can learn that the page provides Source request is the request to dynamic resource;If what resource address included is the predefined paths of static resource, page money Source request is the request to static resource.For another example, according to the extension name of resource divide static resource or dynamic resource should With in scene, being then the predetermined extension of static resource according to the extension name of requested resource, or dynamic resource be pre- Extension name is determined, to learn that requested is dynamic resource or static resource.
It should be noted that in this specification embodiment, CDN node carrys out replacement terminal to industry equivalent to the agency of terminal Business service end request dynamic resource, to utilize network condition more superior between CDN node and business service end, to accelerate end End obtains the speed of dynamic resource.In one implementation, business service end can be used as source station, be sent out by CDN system The part resource (such as static resource) of cloth web products, in this implementation, the friendship between CDN node and business service end Mutually include two parts, a part is the function of the CDN node of CDN system issued resource synchronous with source station in itself, another portion It is function of the CDN node proxy terminal to business service end request dynamic resource to divide, and rear portion is not that CDN system has in itself Some functions.
, can be in CDN node in order to ensure the transmission speed between CDN node and business service end from network facilities aspect Transmitted between business service end using special line, and the transmission bandwidth of special line can be adjusted according to the data traffic of transmission It is whole, to remain to the requirement for meeting response speed when flow increases.
In CDN node, step 130, the page resource response for including dynamic resource is returned to terminal, is carried out for terminal Web page shows.
In terminal, step 220, the page resource response that CDN node server returns is received, is saved including by CDN The dynamic resource that point obtains according to page resource request from business service end.
In terminal, step 230, web page is showed using dynamic resource.
CDN node is after the dynamic resource of business service end transmission is received, to terminal back page resource response, wherein wrapping The dynamic resource of the terminal of business service end offer is provided.Terminal responded according to page resource in dynamic resource, to show web The page.The specific method that terminal shows web page refer to prior art, repeat no more.
In the embodiment of this specification, the static resource of web products can be by CDN system with cache way or mirror-image fashion To issue.By the operating mechanism of CDN system, CDN node can locally preserve the static resource of web products (in mirror-image fashion Middle static resource is pushed in CDN node and stored, and this is cached to after being obtained in cache way from the Source Site of static resource Ground).When the page resource request of terminal is the request to static resource, CDN node can be according to the operation machine of CDN system System, static resource is handed down to terminal in being responded to the page resource of terminal.
In a kind of implementation, static resource can be stored in terminal local by browser in terminal, and at this The version information of preserved static resource is safeguarded on ground, and the static resource for current page is compared by version information Whether update, to reduce the data volume for needing to transmit between terminal and CDN node.
Specifically, when the page resource request of terminal is the request to static resource, terminal is asked in page resource It is middle carry preserved in terminal the static resource version information (can with specific version information come with GC group connector not yet Preserve the situation of asked static resource).CDN node is determining that page resource request is according to predetermined resource typing rule After the request of static resource, the version information in extraction page resource request, and the version of the static resource locally preserved Information compares, if the version information for the static resource that CDN node preserves is consistent with the version information that terminal preserves, CDN The consistent notice of version is returned to terminal by node in page resource response;If two version informations are inconsistent, CDN node By the version information (static resource preserved in CDN node of static resource after the fresh information of the static resource and renewal Version information) page resource response in return to terminal.After terminal receives the page request response of CDN node return, such as The response of fruit page resource includes the consistent notice of version, and terminal shows web page using the static resource locally preserved;Such as Fruit page resource responds the version information after the fresh information for including the static resource and renewal, and terminal is come according to fresh information Upgrade the static resource locally preserved, and the version that the version information of the static resource is revised as in page resource response is believed Breath, and web page is showed with the static resource after upgrading.
In above-mentioned implementation, the static resource fresh information that CDN node is handed down to terminal can be the quiet of redaction State resource is in itself or the incremental data of static resource that is preserved relative to terminal of the static resource that preserves of CDN node.Afterwards A kind of mode can further reduce the data volume for needing to transmit between terminal and CDN node, improve the speed that web is accessed.
It can be seen that in the embodiment of this specification, terminal will be sent to CDN node, CDN node root to the request of dynamic resource According to the request of terminal, obtain dynamic resource from business service end and be sent to terminal, so as to which CDN node and terminal can be utilized Between quick transmission, and can greatly accelerates terminal and passed through using quick transmission between CDN node and business service end Web accesses the speed for carrying out business procedure.
In an application example of this specification, the visit of the web products for payment transaction of Third-party payment platform Ask that entrance uses single domain name.So terminal at most only needs a DNS query (in browser when using the web products In when there is no the DNS cache of its domain name), the DNS query for being able to farthest reduce terminal expends, and avoids the extra time from opening Pin.
The page resource of each page is divided into static resource according to the extension name of resource in the web products and dynamic provides Source.Wherein, static resource includes picture, font, CSS, JS etc., is respectively provided with the static resource extension name of determination;Dynamic resource bag To include with " .json " be extension name, " .do " is a kind of extension name servlet (services for being used to interactively browsing and changing data Device end program) etc., it is respectively provided with the dynamic resource extension name of determination.
The static resource for needing to use in the web products is distributed in a mirror-image fashion by CDN system, in each CDN node There is the backup of static resource, and safeguard the version information for the static resource for having backup.The unique domain name of the web products is by CDN System take over, when terminal use web products, using the domain name initiate page resource request by be sent to from terminal recently In CDN node.When terminal request static resource, interacting between terminal, CDN node and service server is as shown in Figure 3;When During terminal request dynamic resource, interacting between terminal, CDN node and service server is as shown in Figure 4.
User is when using the web products in terminal, target web page that terminal operates according to user, for the Web page Each page resource on face initiates page resource request to CDN node.If the page resource of the web page had both included static money Source, it is also including dynamic resource, then existing in multiple page resources request that terminal is sent to CDN node that static resource is asked Ask, there is the request to dynamic resource again.
Terminal, if the resource of request is static resource, provides when initiating page resource request to CDN node in the page Version number's (a kind of version information) of the static resource of carried terminal local cache in the request of source.If local provide without the static state The caching in source, then be set to 0 by version number.
CDN node is after the page resource request of terminal transmission is received, according in request address pathname (pathname) Extension name whether be predetermined dynamic resource extension name, judge that page resource request is request to dynamic resource or right The request of static resource.
If page resource request is the request to static resource, CDN node extracts terminal from page resource request The version number of the static resource of preservation, and the version number of the static resource that CDN node locally preserves are compared.If two Version number is identical, and CDN node is to terminal back page resource response, wherein only carrying the consistent mark of version number (one kind notice Mode).If version number is different, CDN node by the static resource version locally preserved, with terminal preserve static resource version This incremental data, and the version number of local static resource, it is encapsulated in page resource response and is sent to terminal.Wherein, increase The generation and terminal for measuring data upgrade the static resource locally preserved using incremental data, using a kind of React (Java Script bank) a kind of Diff (algorithm for being used to carry out Documents Comparison) mechanism realization.Terminal receive page resource response after, if Wherein carrying the consistent mark of version number, then terminal shows web page according to the static resource locally preserved;If the page Incremental data is carried in resource response, then the static resource locally preserved is updated to save with CDN by terminal using Diff algorithms The static resource that point preserves is consistent, and updates local version number.Terminal is according to the static resource exhibition locally preserved after renewal Existing web page.
If the request to dynamic resource, then to the service server of Third-party payment platform, (operation has to CDN node The business service end of tripartite's payment platform) obtain terminal request dynamic resource, obtaining service server return dynamic money Behind source, it is encapsulated in page resource response and is sent to terminal.Can be with communication flows with bandwidth between CDN node and service server The special line of change carries out information transfer.Terminal shows Web page after page resource response is received according to dynamic resource therein Face.
Corresponding with the realization of above-mentioned flow, the embodiment of this specification additionally provides a kind of web applied in CDN node and visited The realization device asked, and the realization device that a kind of web applied in terminal is accessed.Both devices can be real by software It is existing, it can also be realized by way of hardware or software and hardware combining.Exemplified by implemented in software, as the dress on logical meaning Put, be by corresponding to CPU (Central Process Unit, the central processing unit) generals of equipment where terminal or CDN node Computer program instructions read what operation in internal memory was formed.For hardware view, except the CPU shown in Fig. 5, internal memory and Outside nonvolatile memory, equipment where the terminal or CDN node where the realization device that web is accessed generally also includes being used for Carry out the chip etc. of wireless signal transmitting-receiving other hardware, and/or other hardware such as board for realizing network communicating function.
Fig. 6 show the realization device that a kind of web of this specification embodiment offer is accessed, and applies in CDN node, wraps Page resource request reception unit, dynamic resource acquiring unit and dynamic resource issuance unit are included, wherein:Page resource request connects Receive unit and be used for the page resource request that receiving terminal is sent;Dynamic resource acquiring unit is used to advise according to predetermined resource type Then determine page resource request be to the request of dynamic resource after, the dynamic of the terminal request is obtained from business service end Resource;Dynamic resource issuance unit is used to return to the page resource response for including the dynamic resource to terminal, is carried out for terminal Web page shows.
In a kind of implementation, when page resource request is the request to static resource, the page resource please Also include in asking:The version information for the static resource that terminal preserves;Described device also includes static resource issuance unit, uses In determined according to predetermined resource typing rule page resource request be to the request of static resource after, when what is locally preserved When the version information of the static resource is consistent with the version information that terminal preserves, the consistent notice of version is rung in page resource Terminal is returned in answering;Otherwise the version information of static resource after the fresh information of static resource and renewal is rung in page resource Terminal is returned in answering, the static resource and its version information that it is preserved for terminal staging.
Above-mentioned is in implementation, and the fresh information includes:The static resource locally preserved preserves relative to terminal The incremental data of static resource.
Optionally, the predetermined resource typing rule includes:The address of requested resource include predetermined path or by Request resource has predetermined extension name.
Optionally, the web is accessed and initiated when terminal is using web products, and the web products use same domain name.
Optionally, transmitted between the CDN node and the business service end using special line, transmission bandwidth is according to transmission Data traffic is adjusted.
Fig. 7 show the realization device that a kind of web of this specification embodiment offer is accessed, and applies in terminal, including Dynamic resource request unit, dynamic resource receiving unit and dynamic resource show unit, wherein:Dynamic resource request unit is used for Page resource request is sent to content distributing network CDN node, the page resource request is the request to dynamic resource;Dynamically Resource receiving unit is used for the page resource response for receiving CDN node return, is provided including by CDN node according to the page The dynamic resource that source request obtains from business service end;Dynamic resource shows unit and is used to show web using the dynamic resource The page.
In a kind of implementation, described device also includes static resource request unit, static resource receiving unit and static state Resource shows unit, wherein:Static resource request unit is used to send page resource request, the page resource to CDN node Ask as the request to static resource, including the version information of the static resource locally preserved;Static resource receives Unit is used for the page resource response for receiving CDN node return, including the consistent notice of version or the static resource The version information of static resource after fresh information and renewal;Static resource shows unit, for including when page resource responds During the consistent notice of version, web page is showed using the static resource locally preserved;When page resource response includes institute When stating the fresh information of static resource, the static resource locally preserved is upgraded according to fresh information and updates static resource Version information, web page is showed using the static resource after upgrading.
In above-mentioned implementation, the fresh information includes:What the static resource that CDN node preserves preserved relative to terminal The incremental data of static resource.
Optionally, the address of the dynamic resource includes predetermined path, or, the dynamic resource has predetermined expansion Open up name.
The embodiment of this specification provides a kind of CDN node, and the CDN node includes memory and processor.Wherein, deposit The computer program that can be run by processor is stored with reservoir;Processor performs in the computer program of operation storage The each step for the implementation method that the web in CDN node accesses is applied in this specification embodiment.It is corresponding to be used in CDN node On web access implementation method each step detailed description refer to before content, be not repeated.
The embodiment of this specification provides a kind of terminal, and the terminal includes memory and processor.Wherein, on memory It is stored with the computer program that can be run by processor;Processor performs this explanation in the computer program of operation storage The each step for the implementation method that the web in terminal accesses is applied in book embodiment.What the corresponding web with terminal was accessed The detailed description of each step of implementation method refer to before content, be not repeated.
The embodiment of this specification provides a kind of computer-readable recording medium, and computer is stored with the storage medium Program, these computer programs perform in this specification embodiment when being run by processor and apply the web in CDN node Each step of the implementation method of access.Correspond to the detailed of each step of the implementation method with the web access in CDN node Content before describing to refer to, is not repeated.
The embodiment of this specification provides a kind of computer-readable recording medium, and computer is stored with the storage medium Program, these computer programs perform in this specification embodiment when being run by processor and apply the web in terminal to access Implementation method each step.The detailed description of each step for the implementation method that the corresponding web with terminal is accessed please Referring to content before, it is not repeated.
The preferred embodiment of this specification is the foregoing is only, it is all the application's not to limit the application Within spirit and principle, any modification, equivalent substitution and improvements done etc., it should be included within the scope of the application protection.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.
Internal memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping Include the other element being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described Other identical element also be present in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of this specification can be provided as method, system or computer program production Product.Therefore, the embodiment of this specification can use complete hardware embodiment, complete software embodiment or combine software and hardware side The form of the embodiment in face.Moreover, the embodiment of this specification can be can use using computer is wherein included in one or more It is real in the computer-usable storage medium (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form for the computer program product applied.

Claims (24)

1. the implementation method that a kind of web is accessed, is applied in content distributing network CDN node, including:
The page resource request that receiving terminal is sent;
After being determined the page resource request for the request of dynamic resource according to predetermined resource typing rule, from business service End obtains the dynamic resource of the terminal request;
Being returned to terminal includes the page resource response of the dynamic resource, and carrying out web page for terminal shows.
2. according to the method for claim 1, when page resource request is the request to static resource, the page Also include in resource request:The version information for the static resource that terminal preserves;
Methods described also includes:The page resource request is being determined according to predetermined resource typing rule to be asked to static resource It is when the version information of the static resource locally preserved is consistent with the version information that terminal preserves, version is consistent after asking Notice page resource response in return to terminal;Otherwise by the version of static resource after the fresh information of static resource and renewal This information returns to terminal in page resource response, the static resource and its version information that it is preserved for terminal staging.
3. according to the method for claim 2, the fresh information includes:The static resource locally preserved is protected relative to terminal The incremental data for the static resource deposited.
4. according to the method for claim 1, the predetermined resource typing rule includes:The address of requested resource includes Predetermined path or requested resource has predetermined extension name.
5. according to the method for claim 1, the web is accessed and initiated when terminal is using web products, the web products Using same domain name.
6. according to the method for claim 1, being transmitted between the CDN node and the business service end using special line, pass Defeated bandwidth is adjusted according to the data traffic of transmission.
7. the implementation method that a kind of web is accessed, is applied in terminal, including:
Page resource request is sent to content distributing network CDN node, the page resource request is the request to dynamic resource;
The page resource response that CDN node returns is received, is asked including by CDN node according to the page resource from business The dynamic resource that service end obtains;
Web page is showed using the dynamic resource.
8. according to the method for claim 7, methods described also includes:
Page resource request is sent to CDN node, the page resource request is the request to static resource, including local The version information of the static resource preserved;
The page resource response that CDN node returns is received, including the renewal of the consistent notice of version or the static resource The version information of static resource after information and renewal;
When page resource response includes the consistent notice of version, Web page is showed using the static resource locally preserved Face;When page resource response includes the fresh information of the static resource, upgrade the institute locally preserved according to fresh information State static resource and update the version information of static resource, web page is showed using the static resource after upgrading.
9. according to the method for claim 8, the fresh information includes:The static resource that CDN node preserves is relative to end Hold the incremental data of the static resource preserved.
10. according to the method for claim 7, the address of the dynamic resource includes predetermined path, or, the dynamic Resource has predetermined extension name.
11. the realization device that a kind of web is accessed, is applied in content distributing network CDN node, including:
Page resource request reception unit, the page resource request sent for receiving terminal;
Dynamic resource acquiring unit, for determining that the page resource request is to be provided to dynamic according to predetermined resource typing rule After the request in source, the dynamic resource of the terminal request is obtained from business service end;
Dynamic resource issuance unit, the page resource that the dynamic resource is included for being returned to terminal are responded, carried out for terminal Web page shows.
12. device according to claim 11, when page resource request is the request to static resource, the page Also include in the resource request of face:The version information for the static resource that terminal preserves;
Described device also includes:Static resource issuance unit, for determining that the page provides according to predetermined resource typing rule Source request be to the request of static resource after, when the version that version information and the terminal of the static resource locally preserved preserve When information is consistent, the consistent notice of version is returned into terminal in page resource response;Otherwise the renewal of static resource is believed Breath and renewal after static resource version information page resource response in return to terminal, for terminal staging its preservation described in Static resource and its version information.
13. device according to claim 12, the fresh information includes:The static resource locally preserved is relative to terminal The incremental data of the static resource of preservation.
14. device according to claim 11, the predetermined resource typing rule includes:The address Zhong Bao of requested resource Including predetermined path or requested resource has predetermined extension name.
15. device according to claim 11, the web is accessed and initiated when terminal is using web products, the web productions Product use same domain name.
16. device according to claim 11, transmitted between the CDN node and the business service end using special line, Transmission bandwidth is adjusted according to the data traffic of transmission.
17. the realization device that a kind of web is accessed, is applied in terminal, including:
Dynamic resource request unit, for sending page resource request to content distributing network CDN node, the page resource please Ask as the request to dynamic resource;
Dynamic resource receiving unit, for receive CDN node return page resource response, including by CDN node according to The dynamic resource that the page resource request obtains from business service end;
Dynamic resource shows unit, for showing web page using the dynamic resource.
18. device according to claim 17, described device also include:
Static resource request unit, for sending page resource request to CDN node, the page resource request is that static state is provided The request in source, including the version information of the static resource locally preserved;
Static resource receiving unit, for receiving the page resource response of CDN node return, lead to including version is consistent Know or the fresh information of the static resource and renewal after static resource version information;
Static resource shows unit, for when page resource respond include version consistent notice when, using what is locally preserved The static resource shows web page;When page resource response includes the fresh information of the static resource, according to renewal Information upgrades the static resource locally preserved and updates the version information of static resource, using the static resource exhibition after upgrading Existing web page.
19. device according to claim 18, the fresh information includes:CDN node preserve static resource relative to The incremental data for the static resource that terminal preserves.
20. device according to claim 17, the address of the dynamic resource includes predetermined path, or, described dynamic State resource has predetermined extension name.
21. a kind of content distributing network CDN node, including:Memory and processor;Being stored with the memory can be by handling The computer program of device operation;When the processor runs the computer program, such as claim 1 to 6 any one is performed Described step.
22. a kind of terminal, including:Memory and processor;The computer that can be run by processor is stored with the memory Program;When the processor runs the computer program, the step as described in claim 7 to 10 any one is performed.
23. a kind of computer-readable recording medium, is stored thereon with computer program, the computer program is run by processor When, perform the step as described in claim 1 to 6 any one.
24. a kind of computer-readable recording medium, is stored thereon with computer program, the computer program is run by processor When, perform the step as described in claim 7 to 10 any one.
CN201710537000.9A 2017-07-04 2017-07-04 Web access realization method and device Active CN107465722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710537000.9A CN107465722B (en) 2017-07-04 2017-07-04 Web access realization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710537000.9A CN107465722B (en) 2017-07-04 2017-07-04 Web access realization method and device

Publications (2)

Publication Number Publication Date
CN107465722A true CN107465722A (en) 2017-12-12
CN107465722B CN107465722B (en) 2021-07-09

Family

ID=60544282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710537000.9A Active CN107465722B (en) 2017-07-04 2017-07-04 Web access realization method and device

Country Status (1)

Country Link
CN (1) CN107465722B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109150965A (en) * 2018-07-06 2019-01-04 百度在线网络技术(北京)有限公司 The anti-screen method of information resources, device, computer equipment and storage medium
CN110598149A (en) * 2019-08-15 2019-12-20 平安普惠企业管理有限公司 Webpage access method, device and storage medium
CN110955851A (en) * 2019-11-29 2020-04-03 海南车智易通信息技术有限公司 Network request processing method, system and computing equipment
CN111355612A (en) * 2020-02-28 2020-06-30 中国工商银行股份有限公司 CDN node emergency processing method and system for source station fault
CN111614494A (en) * 2020-05-08 2020-09-01 北京百度网讯科技有限公司 Network resource simulation method and device, electronic equipment and computer readable storage medium
CN112468570A (en) * 2020-11-24 2021-03-09 福建天泉教育科技有限公司 Data request processing method and CDN server side
CN112637074A (en) * 2019-10-08 2021-04-09 中国移动通信集团浙江有限公司 Web static resource coordination method, device and distribution system
CN112732362A (en) * 2021-01-18 2021-04-30 北京展心展力信息科技有限公司 Transnational software resource access method and device, electronic equipment and storage medium
CN112887362A (en) * 2021-01-08 2021-06-01 重庆锐明信息技术有限公司 Equipment access method, equipment access device and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150081835A1 (en) * 2012-05-21 2015-03-19 Tencent Technology (Shenzhen) Company Limited Method and apparatus for speeding up web page access
CN104754073A (en) * 2015-03-25 2015-07-01 百度在线网络技术(北京)有限公司 Resource access method and device
CN104778063A (en) * 2015-04-16 2015-07-15 小米科技有限责任公司 Method and device for updating resource
CN105956030A (en) * 2016-04-25 2016-09-21 浪潮电子信息产业股份有限公司 WEB system and WEB request processing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150081835A1 (en) * 2012-05-21 2015-03-19 Tencent Technology (Shenzhen) Company Limited Method and apparatus for speeding up web page access
CN104754073A (en) * 2015-03-25 2015-07-01 百度在线网络技术(北京)有限公司 Resource access method and device
CN104778063A (en) * 2015-04-16 2015-07-15 小米科技有限责任公司 Method and device for updating resource
CN105956030A (en) * 2016-04-25 2016-09-21 浪潮电子信息产业股份有限公司 WEB system and WEB request processing method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109150965A (en) * 2018-07-06 2019-01-04 百度在线网络技术(北京)有限公司 The anti-screen method of information resources, device, computer equipment and storage medium
CN109150965B (en) * 2018-07-06 2021-09-21 百度在线网络技术(北京)有限公司 Information resource anti-shielding method and device, computer equipment and storage medium
CN110598149A (en) * 2019-08-15 2019-12-20 平安普惠企业管理有限公司 Webpage access method, device and storage medium
CN112637074A (en) * 2019-10-08 2021-04-09 中国移动通信集团浙江有限公司 Web static resource coordination method, device and distribution system
CN112637074B (en) * 2019-10-08 2023-04-28 中国移动通信集团浙江有限公司 Web static resource coordination method, device and distribution system
CN110955851A (en) * 2019-11-29 2020-04-03 海南车智易通信息技术有限公司 Network request processing method, system and computing equipment
CN111355612A (en) * 2020-02-28 2020-06-30 中国工商银行股份有限公司 CDN node emergency processing method and system for source station fault
CN111614494A (en) * 2020-05-08 2020-09-01 北京百度网讯科技有限公司 Network resource simulation method and device, electronic equipment and computer readable storage medium
CN111614494B (en) * 2020-05-08 2023-04-07 北京百度网讯科技有限公司 Network resource simulation method and device, electronic equipment and computer readable storage medium
CN112468570A (en) * 2020-11-24 2021-03-09 福建天泉教育科技有限公司 Data request processing method and CDN server side
CN112887362A (en) * 2021-01-08 2021-06-01 重庆锐明信息技术有限公司 Equipment access method, equipment access device and server
CN112887362B (en) * 2021-01-08 2023-03-10 重庆锐明信息技术有限公司 Equipment access method, equipment access device and server
CN112732362A (en) * 2021-01-18 2021-04-30 北京展心展力信息科技有限公司 Transnational software resource access method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107465722B (en) 2021-07-09

Similar Documents

Publication Publication Date Title
CN107465722A (en) The implementation method and device of web access
CN106528432B (en) The construction method and device of test scene data bury a test method
US10574771B2 (en) Methods and systems for rewriting scripts to redirect web requests
US9760909B2 (en) Systems and methods for generating lead intelligence
CN106874471B (en) Information pushing method and device
US20160065684A1 (en) Method and apparatus for automatically optimizing the loading of images in a cloud-based proxy service
CN107391664A (en) Page data processing method and system based on WEB
CN106294379A (en) The loading method of a kind of page, device and system
CN104216695A (en) Method and system for providing webpage information to be displayed on webpage and displaying webpage information
CN107979632A (en) The processing method of pushed information, apparatus and system
US20140111545A1 (en) Caching Support for Visual Search and Augmented Reality in Mobile Networks
CN104714965A (en) Static resource weight removing method, and static resource management method and device
CN108989362A (en) A kind for the treatment of method and apparatus of static resource
US10158548B2 (en) Methods and systems for signing resource identifiers
CN106897336A (en) Web page files sending method, webpage rendering intent and device, webpage rendering system
CN108023867A (en) Method, gateway server and the filtering server of mobile terminal web advertisement filtering
EP3528474B1 (en) Webpage advertisement anti-shielding methods and content distribution network
CN105141632B (en) Method and apparatus for checking the page
CN109992406A (en) The method and client that picture requesting method, response picture are requested
US20070288591A1 (en) Method, system, and program product for caching application data in a browser cache
CN107872548A (en) Web page interlinkage method, apparatus and readable storage medium storing program for executing
CN109936605A (en) A kind of method and apparatus of loading interface data
CN106547769A (en) A kind of DOI display packings and device
CN109408748A (en) Method and apparatus for handling information
CN107844488A (en) Data query method and apparatus

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201019

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201019

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240208

Address after: Guohao Times City # 20-01, 128 Meizhi Road, Singapore

Patentee after: Advanced Nova Technology (Singapore) Holdings Ltd.

Country or region after: Singapore

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Innovative advanced technology Co.,Ltd.

Country or region before: United Kingdom