WO2016101763A1 - 通过cdn下载资源的实现方法和装置、服务器、客户端 - Google Patents

通过cdn下载资源的实现方法和装置、服务器、客户端 Download PDF

Info

Publication number
WO2016101763A1
WO2016101763A1 PCT/CN2015/095805 CN2015095805W WO2016101763A1 WO 2016101763 A1 WO2016101763 A1 WO 2016101763A1 CN 2015095805 W CN2015095805 W CN 2015095805W WO 2016101763 A1 WO2016101763 A1 WO 2016101763A1
Authority
WO
WIPO (PCT)
Prior art keywords
static resource
address
server
source server
address information
Prior art date
Application number
PCT/CN2015/095805
Other languages
English (en)
French (fr)
Inventor
李纪峰
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
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 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2016101763A1 publication Critical patent/WO2016101763A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • 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
    • H04L67/63Routing a service request depending on the request content or context

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to an implementation method and apparatus, a server, and a client for downloading resources through a CDN.
  • CDN Content Distribution Network
  • CDN Content Distribution Network
  • the CDN can guide the user to the nearest node server in real time according to the network traffic and the connection and load status of each node, as well as the distance to the user and the response time, so that the user can obtain the required data nearby ( Mainly static resources), to solve the network congestion situation, improve the speed of users to download data.
  • the data in the source server needs to be synchronized to the CDN server in time.
  • the updated data content is manually synchronized to the CDN server, which is labor intensive and error-prone.
  • the present invention has been made in order to provide an implementation method, apparatus, server and client for downloading resources through a CDN that overcomes the above problems or at least partially solves or alleviates the above problems.
  • the present invention provides an apparatus for downloading resources by using a CDN, including:
  • An intercepting module configured to intercept original webpage data sent by the source server to the client; the original webpage data includes address information of the source server and address information of the static resource at the source server;
  • a modifying module configured to adjust address information of the static resource in the intercepted original webpage data to the link address of the corresponding CDN server, to obtain modified webpage data; wherein the link address carries Address information of the source server and address information of the static resource at the source server;
  • a sending module configured to send the modified webpage data to the client, so that the client downloads the corresponding static resource from the corresponding CDN server.
  • the present invention provides a client, including:
  • the address of the static resource in the webpage data is a link address to the CDN server, where the link address carries the address information of the source server where the static resource is located, and the static resource is in the source server. Address information;
  • the download request module is configured to download, according to the address of the static resource, the corresponding static resource to the corresponding CDN;
  • the second receiving module is configured to receive a static resource returned by the CDN server.
  • the present invention provides a server, the server comprising:
  • the receiving module is configured to receive a static resource download request initiated by the client according to the address of the static resource in the webpage data;
  • the address of the static resource in the webpage data is a link address to the CDN server, where the link address carries the static resource Address information of the source server and address information of the static resource in the source server;
  • a determining module configured to determine whether a static resource requested to be downloaded by the static resource download request received by the first receiving module is cached
  • a sending module configured to: when the determining module determines that the corresponding static resource is cached, send the cached corresponding static resource to the client; when the determining module determines that the corresponding static resource is not cached, according to the corresponding The address information of the source server where the static resource is located in the link address corresponding to the static resource and the address information of the static resource in the source server request the corresponding static resource from the corresponding source server, and then cache and send after receiving the corresponding static resource. To the client.
  • the present invention provides an implementation method for downloading resources by using a CDN, including:
  • Blocking original webpage data sent by the source server to the client includes address information of the source server and address information of the static resource at the source server;
  • the link address carries the address of the source server Information and address information of the static resource at the source server
  • the present invention provides an implementation method for downloading resources by using a CDN, including:
  • the address of the static resource in the webpage data is a link address to the CDN server, and the link address carries the address information of the source server where the static resource is located and the address information of the static resource in the source server;
  • the present invention provides an implementation method for downloading resources by using a CDN, including:
  • the address of the static resource in the webpage data is a link address to the CDN server, and the link address carries the address information of the source server where the static resource is located And address information of the static resource in the source server;
  • the address information of the source server where the static resource is carried in the link address corresponding to the corresponding static resource and the address information of the static resource in the source server request the corresponding static resource from the corresponding source server, and the corresponding resource is received.
  • the corresponding static resource returned by the source server is cached and sent to the client.
  • a computer program comprising computer readable code, when said computer readable code is run on a computing device, causing said computing device to perform download via CDN as described above How to implement resources.
  • a computer readable medium storing the above computer program is provided sequence.
  • the original webpage data sent by the source server to the client is intercepted;
  • the original webpage data includes the address information of the source server and the address information of the static resource in the source server;
  • the original webpage data to be intercepted is static
  • the address information of the source server is adjusted to point to the link address of the corresponding CDN server, and the modified webpage data is obtained.
  • the link address carries the address information of the source server and the static resource in the source.
  • the address information of the server; the modified webpage data is sent to the client, so that the client downloads the corresponding static resource from the corresponding CDN server. In this way, the client will jump to the corresponding CDN server to request static resources.
  • the CDN server can trigger the address of the source server indicated by the link address and the address of the static resource in the source server. Proactively request the corresponding static resource from the source server. This achieves active synchronization of the CDN server to the source server.
  • FIG. 1 is a schematic flowchart of a method for implementing a resource downloading through a CDN according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for implementing a resource downloading through a CDN according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for implementing a resource downloading through a CDN according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of an application scenario of a method for implementing a resource downloading through a CDN according to the present invention
  • FIG. 5 is a schematic flowchart of a method for implementing a resource downloading through a CDN according to an embodiment of the present invention
  • Figure 6 is a portion of webpage data sent by the source server to the client during a possible response
  • FIG. 7 is a webpage data obtained by modifying a part of webpage data shown in FIG. 6;
  • FIG. 8 is a schematic structural diagram of an apparatus for implementing downloading resources by using a CDN according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a client according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 11 is a block diagram schematically showing a computing device for performing an implementation method of downloading resources by CDN according to the present invention
  • Fig. 12 schematically shows a storage unit for holding or carrying program code implementing an implementation method of downloading resources by CDN according to the present invention.
  • FIG. 1 a flow diagram of a method for implementing downloading resources through a CDN according to an embodiment of the present invention is shown.
  • the method may be performed by a function module located on the source server side or a device including the function module, and the method may include:
  • Step 101 intercepting original webpage data sent by the source server to the client;
  • the original webpage data includes address information of the source server and address information of the static resource at the source server;
  • Step 102 Adjust the address information of the static resource in the intercepted original webpage data to the link address of the corresponding CDN server, and obtain the modified webpage data.
  • the link address carries the source server. Address information and address information of the static resource at the source server;
  • Step 103 Send the modified webpage data to the client, so that the client downloads the corresponding static resource from the corresponding CDN server.
  • the client after receiving the corresponding webpage data, the client jumps to the corresponding CDN server to request a static resource. If the corresponding static resource is not cached to the CDN server, the CDN server can trigger the source indicated by the link address according to the link address. The address of the server and the address of the static resource in the source server actively request the corresponding static resource from the source server. This achieves active synchronization of the CDN server to the source server.
  • the data sent by the source server to the client may be identified according to the format of the webpage data, intercepted after the webpage data is recognized, or may be registered in the source server.
  • the data to be intercepted is such that the source server adds a corresponding interception identifier to the webpage data when sending the webpage data, and intercepts the data with the interception identifier after monitoring, or implements the original webpage data by other existing methods. Interception, no longer enumerated here.
  • the original webpage data referred to in the embodiment of the present invention actually refers to webpage data sent by the source server to the client, where the word "original" is used to distinguish the modified webpage data.
  • the original webpage data here may be webpage data corresponding to the webpage requested by the client to the source server according to the domain name input by the client, or may be webpage data that the source server actively pushes to the client.
  • the address information of the source server may be the domain name information of the source server, or the IP information.
  • the address information of the static resource in the source server may be path information or label information of the static resource in the source server.
  • the address information of the source server and/or the address information of the static resource in the source server may also be expressed in other forms, and the specific format does not affect the implementation of the present invention, and the corresponding technical solutions should also fall within the protection scope of the present invention.
  • the static resources referred to in the embodiment of the present invention may be specifically pictures of js (javascript, scripted language) and css (Cascading Style Sheets) format.
  • the domain name of the corresponding CDN server may be directly added to the static resource before the address information of the source server, and then the address information of the static resource in the source server is added to the address of the source server where the static resource is located. The information then forms address information carrying the active server and address information of the static resource in the source server and points to the link address of the CDN server.
  • the download request will jump to the corresponding CDN server.
  • the corresponding CDN server referred to in the embodiment of the present invention is relative to the destination client, and generally refers to a CDN server whose client falls within its coverage, so that the near download can be implemented.
  • the step 102 may further include adjusting the webpage data.
  • the process of the content length in the header of the message In this way, after receiving the corresponding webpage data, the client can verify whether the sent webpage data has an error according to the length of the content.
  • the original webpage data may also include a reference address (Referer) information of the static resource.
  • the reference address information of the static resource may also be carried in the link address in the modified webpage data.
  • the advantage of this is that when the client requests the link address, the corresponding CDN server can obtain the reference address information of the corresponding static resource according to the link address, so that the corresponding CDN server cannot correctly obtain the source server of the link address.
  • the address information can be used to determine the address information of the source server by using the reference address information.
  • the reference address information may be located at the end of the entire link address in a specific application.
  • the address information of the static resource in the intercepted original webpage data is adjusted to point to the link address of the corresponding CDN server, which may refer to all the static resources in the original webpage data at the source server.
  • the address information is modified to point to the link address of the corresponding CDN server, and may also only mean that the address information of some static resources in the source server is modified to point to the link address of the corresponding CDN server.
  • the client directly requests the source server to download the static resource.
  • an embodiment of the present invention provides another method for implementing a resource downloading by using a CDN.
  • the method may be performed by a client, as shown in FIG. 2, which is a schematic flowchart of the method, including:
  • Step 201 Receive webpage data; the address of the static resource in the webpage data is a link address to the CDN server, where the link address carries the address information of the source server where the static resource is located and the address information of the static resource in the source server;
  • Step 202 Request, according to the address of the static resource, the corresponding CDN server to download the corresponding static resource.
  • Step 203 Receive a static resource returned by the CDN server.
  • the access request is redirected to the access request.
  • the CDN server can download the corresponding static resource from the server and cache it to the CDN server according to the address information of the source server where the static resource is carried in the link address and the address information of the static resource in the source server.
  • the CDN server can implement the near downloading by using the CDN server.
  • the CDN server can actively request the uncached static resource from the source server according to the address information of the source server and the address information of the static resource in the source server, so that the CDN server can automatically implement and source the CDN server. Server synchronization.
  • the webpage data received here may be webpage data obtained through step 102 in FIG.
  • the link address in the webpage data herein may also carry the reference address information of the static resource.
  • the implementation process of each step in step 201 to step 203 may be consistent with the corresponding process in the prior art, and details are not described herein again.
  • an embodiment of the present invention further provides an implementation method for downloading by using a CDN, where the method can be performed by a CDN server, as shown in FIG. 3, which is a schematic flowchart of the method, including:
  • Step 301 Receive a static resource download request initiated by the client according to the address of the static resource in the webpage data.
  • the webpage data may be, in step 202 of FIG. 2, the client requests the corresponding CDN server to download the corresponding static resource according to the address of the static resource.
  • the static resource download request sent at the time, correspondingly, the address of the static resource in the webpage data is the link address of the CDN server, and the link address carries the address information of the source server where the static resource is located and the static resource is in the source server. Address information;
  • Step 302 it is determined whether the requested static resource has been cached; if not, go to step 303, and if yes, go to step 305;
  • Step 303 Request the corresponding static resource from the source server according to the address information of the source server where the static resource is located in the link address corresponding to the corresponding static resource and the address information of the static resource in the source server, and then go to step 304. ;
  • Step 304 after receiving the corresponding static resource returned by the corresponding source server, and then proceeding to step 305;
  • Step 305 Send the cached corresponding static resource to the client.
  • the CDN server after receiving the static resource download request initiated by the client according to the address of the static resource in the webpage data, determining whether the requested static resource is cached, and if yes, sending the cached corresponding resource to the client, if If no, the corresponding static resource is requested from the source server where the corresponding static resource is located, and is cached after receiving the corresponding static resource.
  • the CDN server can automatically request the corresponding static resource according to the download request for the static resource for the first time, and automatically synchronize with the source server.
  • the CDN server can directly return the corresponding static resource to the client because the corresponding static resource has been downloaded and cached according to the foregoing steps 303 and 304. This enables the near download of static resources.
  • step 304 the process proceeds to step 305.
  • the static resource may be first sent to the client. End, then cache, sending the static resource to the client in a sequential relationship does not affect the implementation of the present invention.
  • the address information of the static resource in the source server may be used as the label information of the static resource in the local cache, or according to the static resource.
  • the address information in the source server caches the static resources to the corresponding address in the CDN server. In this way, the CDN server can conveniently find the static resource and send it to the client when receiving the download request for the static resource next time.
  • the static resource may be stored in other manners, for example, the address of the static resource in the source server is converted according to a preset rule to obtain a local storage address, and then cached locally, or After the static resource is stored locally, the correspondence between the address stored in the source server and the address stored in the local server is recorded, and the CDN server can also find the static resource after receiving the download request for the static resource.
  • the address of the static resource in the source server is converted according to a preset rule to obtain a local storage address, and then cached locally, or After the static resource is stored locally, the correspondence between the address stored in the source server and the address stored in the local server is recorded, and the CDN server can also find the static resource after receiving the download request for the static resource.
  • step 303 the process of obtaining the source server address information of the corresponding static resource and obtaining the address information of the static resource in the source server should be included, and then the source information according to the source server and the static resource are in the source.
  • the address information in the server sends a request to the source server to download a corresponding static resource, where the request includes address information of the static resource in the source server to request the corresponding static resource from the source server.
  • the address information of the source server is the domain name of the source server
  • the address information of the static resource in the source server is the path in the source server
  • the path in the source service may be placed on the source server. After the domain name, a link to the source server is generated, and a download request is initiated for the link to request the source server to download the corresponding static resource.
  • the source server, the interception server, the client, and the CDN server are included, wherein the interception server is deployed on a route between the source server and the client on a side close to the source server, and through the network.
  • the CDN server is connected to the source server and the client through the network.
  • the interception server is used here. Performing the method described in FIG. 1, the client is configured to perform the method in FIG. 2, and the CDN server is configured to perform the method in FIG.
  • the domain name to which it is bound is www.cdn1XXX1.com; and that the source server is bound
  • the domain name is www.1XXX1.com.
  • the interception server pre-registers an event that needs to intercept the response in the client.
  • the source server sends the webpage data corresponding to the event that needs to intercept the response, the corresponding interception tag is added to the header of the webpage data.
  • the specific process of the method can be as shown in FIG. 5, including:
  • Step 501 The client receives the domain name www.1XXX1.com input by the user, and sends an access request to the source server. Then, the process moves to step 502.
  • Step 502 The source server receives the access request sent by the client, and sends the webpage data to the client. Then, the process moves to step 503.
  • Figure 6 contains a static resource of a picture in css format
  • the reference address is located after the path of the static file in the source server.
  • the domain name of the source server is carried in the tag information of the web page www.1XXX1.com. It is also assumed that the tag information in the webpage data carries an interception identifier for indicating that the webpage data needs to be intercepted.
  • the interception server can determine that the webpage data needs to be intercepted according to the interception identifier.
  • the specific format of the link address can be www.cdn1XXX1.com/bootstrap/css/bootstrap.min.css?
  • the domain name of the CDN server contains www.cdn1XXX1.com, the path of the static resource in the source server /bootstrap/css/bootstrap.min.css, source server
  • the domain name (web_real_domain) www.1XXX1.com, the reference address of the static information rel "stylesheet".
  • the modification of the webpage data content in FIG. 6 can be modified as shown in FIG.
  • Step 504 The intercepting server sends the modified webpage data to the client.
  • Step 505 The client receives the modified webpage data sent by the intercepting server. Then, the process moves to step 506.
  • the client may also need to access other resources in the webpage data, such as dynamic resources, etc., which are not the present invention. The main concern is not explained here in detail. Since the download request is a connection address to the CDN server, the download request is redirected to the CDN server.
  • Step 507 The CDN server receives the download request sent by the client, and determines whether the corresponding static resource is cached in the server. If not, the process proceeds to step 508. If yes, the process proceeds to step 512.
  • the CDN server extracts the static resource in the source server from the link address requesting the static resource.
  • the path /bootstrap/css/bootstrap.min.css determines whether the path corresponds to the static resource.
  • Step 508 The CDN server extracts the link address of the source server www.1XXX1.com from the link address requesting the static resource, and the path /bootstrap/css/bootstrap.min.css of the static resource in the source server. Then, go to step 509.
  • step 509 the CDN server generates a link www.1XXX1.com/bootstrap/css/bootstrap.min.css for requesting the static resource from the source server, and initiates a download request for the link. Then, the process moves to step 510.
  • Step 510 The source server receives the download request sent by the CDN, and extracts the path bootstrap/css/bootstrap.min.css of the requested static resource in the source server, and sends the static resource stored in the path to the CDN server. Then, the process proceeds to step 511.
  • Step 511 The CDN server receives the static resource sent by the source server, and stores the static resource in the path of bootstrap/css/bootstrap.min.css. Then go to step 512.
  • step 512 the CDN server sends the cached static resource to the client.
  • the process of downloading the static resource through the CDN server is completed. If the static resource is a static resource that is updated, the result of the determination in step 507 is no, and the CDN server requests the static resource from the source server by itself. Automatic synchronization of updated static resources is implemented. In the subsequent process, if another client initiates a download request for the static resource, according to the above process, the result of the determination in step 507 will be yes, and the process directly jumps to step 512 to send the cached static resource. To the client. This enables the near download of static resources through the CDN server.
  • FIG. 8 is a schematic structural diagram of an apparatus for implementing a resource downloading by using a CDN according to an embodiment of the present invention.
  • the apparatus for downloading resources by using a CDN provided by the embodiment may be applied to the method shown in FIG. 5 as an intercepting server.
  • the device may include: an intercepting module 801, a modifying module 802, and a sending module 803, where
  • the intercepting module 801 is configured to intercept original webpage data sent by the source server to the client; the original webpage data includes address information of the source server and address information of the static resource at the source server;
  • the modifying module 802 is configured to adjust the address information of the static resource in the intercepted original webpage data to the link address of the corresponding CDN server to obtain the modified webpage data, where the link address carries The address information of the source server and the address information of the static resource at the source server;
  • the sending module 803 is configured to send the modified webpage data to the client, so that the client downloads the corresponding static resource from the corresponding CDN server.
  • the device for downloading resources by using the CDN provided by the embodiment, intercepting original webpage data sent by the source server to the client; the original webpage data includes address information of the source server and address information of the static resource in the source server Adjusting, in the intercepted original webpage data, the address information of the static resource in the source server to the link address of the corresponding CDN server, and obtaining the modified webpage data; wherein the link address carries the source server Address information and address information of the static resource at the source server; sending the modified webpage data to the client End, so that the client downloads the corresponding static resource from the corresponding CDN server. In this way, the client will jump to the corresponding CDN server to request static resources.
  • the CDN server can trigger the address of the source server indicated by the link address and the address of the static resource in the source server. Proactively request the corresponding static resource from the source server. This achieves active synchronization of the CDN server to the source server.
  • the implementation device for downloading resources through the CDN may be a functional module or a device having a corresponding function.
  • the device itself can be a functional module of the source server or the CDN server.
  • the modifying module 802 may be configured to modify the address information of the static resource in the intercepted original webpage data to the link address of the corresponding CDN server and adjust the content length in the webpage data, and obtain the modified Web page data.
  • the link address carries the reference address information of the static resource, and the reference address information of the static resource is obtained from the webpage data.
  • An embodiment of the present invention further provides a client, as shown in FIG. 9, the client includes a first receiving module 901, a download requesting module 902, and a second receiving module 903, where
  • the first receiving module 901 is configured to receive webpage data; the address of the static resource in the webpage data is a link address to the CDN server, where the link address carries the address information of the source server where the static resource is located, and the static resource is in the source server. Address information in ;
  • the download request module 902 is configured to request, according to the address of the static resource, the corresponding static resource to be downloaded to the corresponding CDN;
  • the second receiving module 903 is configured to receive a static resource returned by the CDN server.
  • the access request is redirected to the CDN server.
  • the CDN server can download the corresponding static resource from the server according to the address information of the source server where the static resource carried in the link address and the address information of the static resource in the source server, and cache the corresponding static resource to the CDN server, so that the CDN server can be used on the one hand.
  • the CDN server can actively request the un-cached static resource from the source server according to the address information of the source server and the address information of the static resource in the source server, so that the CDN server can automatically synchronize with the source server.
  • the static resource returned by the CDN server is downloaded by the CDN server to the source server according to the address information of the source server where the static resource carried in the link address is located and the address information of the static resource in the source server.
  • the link address here also carries the reference address information of the static resource.
  • An embodiment of the present invention further provides a CDN server.
  • the server includes a receiving module 1001, a determining module 1002, and a sending module 1003, where
  • the receiving module 1001 is configured to receive a static resource download request initiated by the client according to the address of the static resource in the webpage data;
  • the address of the static resource in the webpage data is a link address to the CDN server, where the link address carries the static resource Address information of the source server and address information of the static resource in the source server;
  • the determining module 1002 is configured to determine whether the static resource requested to be downloaded by the static resource download request received by the first receiving module 1001 is cached;
  • the sending module 1003 is configured to: when the determining module 1002 determines that the corresponding static resource is cached, send the cached corresponding static resource to the client; when the determining module 1002 determines that the corresponding static resource is not cached, according to the corresponding static
  • the address information of the source server where the static resource carried in the link address corresponding to the resource and the address information of the static resource in the source server request corresponding static resources from the corresponding source server, and are cached and sent to the corresponding static resource after receiving the corresponding static resource.
  • the CDN server determines whether the requested static resource is cached after receiving the static resource download request initiated by the client according to the address of the static resource in the webpage data, and if yes, sends the cached corresponding resource to the client. End, if no, request the corresponding static resource from the source server where the corresponding static resource is located, and cache after receiving the corresponding static resource. In this way, for the static resource that is updated, the CDN server can automatically request the corresponding static resource according to the download request for the static resource for the first time, and automatically synchronize with the source server.
  • the foregoing link address further carries reference address information of the static resource.
  • the CDN server also includes:
  • the addressing module 1004 is configured to: after the determining module 1002 determines that the corresponding static resource is not cached, the sending module 1003 requests the corresponding static resource from the corresponding source server address according to the original address of the corresponding static resource, from the corresponding link address.
  • the address of the corresponding source server is extracted, and when the address of the corresponding source server fails to be extracted, the address of the corresponding source server is determined according to the reference address in the corresponding link address.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the means for implementing a resource download via CDN in accordance with an embodiment of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 11 illustrates a computing device that can implement an implementation method for downloading resources over a CDN in accordance with the present invention.
  • the computing device conventionally includes a processor 1110 and a computer program product or computer readable medium in the form of a memory 1120.
  • the memory 1120 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 1120 has a memory space 1130 for program code 1131 for performing any of the method steps described above.
  • the storage space 1130 for program code may include respective program codes 1131 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have a storage segment, a storage space, and the like that are similarly arranged to the storage 1120 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 1131 ', ie, code readable by a processor, such as, for example, 1110, which when executed by a computing device causes the computing device to perform each of the methods described above step.

Abstract

本发明提供了一种通过CDN下载资源的实现方法和装置、服务器、客户端,该方法包括:拦截源服务器向客户端发送的原始网页数据;原始网页数据包括有源服务器的地址信息和静态资源在源服务器的地址信息;将拦截的原始网页数据中静态资源在源服务器的地址信息调整为指向对应的CDN服务器的链接地址,之后发送到客户端,以使客户端从对应的CDN服务器中下载相应的静态资源。这样客户端会跳转到相应的CDN服务器请求静态资源,如果相应的静态资源没有缓存到CDN服务器,能够触发CDN服务器根据链接地址所指示的源服务器的地址以及静态资源的在源服务器中的地址主动向源服务器请求相应的静态资源。这样就实现了CDN服务器向源服务器的主动同步。

Description

通过CDN下载资源的实现方法和装置、服务器、客户端 技术领域
本发明涉及通信技术领域,尤其涉及一种通过CDN下载资源的实现方法和装置、服务器、客户端。
背景技术
CDN(Content Distribution Network,内容分发网络)是一种新型网络内容服务体系,其基于互联网络而构建,基于内容访问与应用的效率要求、质量要求和内容秩序而提供内容的分发和服务。CDN可以尽可能避开互联网上有可能影响数据传输速度和稳定性的瓶颈和环节,使内容传输的更快、更稳定。具体而言,CDN能够实时地根据网络流量和各节点的连接、负载状况以及到用户的距离和响应时间等综合信息,将用户导向至最近的节点服务器上,使用户可就近取得所需数据(主要是静态资源),解决网络拥挤的状况,提高用户下载数据的速度。
为了使用户能够正确接收到源服务器的数据内容,需要将源服务器中的数据及时同步到CDN服务器。现有技术中,每次在源服务器进行更新时,通过人工的方式将更新的数据内容同步到CDN服务器,工作量大,且容易出错。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决或者减缓上述问题的通过CDN下载资源的实现方法、装置、服务器及客户端。
第一方面,本发明提供了一种通过CDN下载资源的实现装置,包括:
拦截模块,用于拦截源服务器向客户端发送的原始网页数据;所述原始网页数据包括有所述源服务器的地址信息和静态资源在所述源服务器的地址信息;
修改模块,用于将拦截的原始网页数据中静态资源在所述源服务器的地址信息调整为指向对应的CDN服务器的链接地址,得到修改后的网页数据;其中,所述链接地址中携带有所述源服务器的地址信息以及静态资源在所述源服务器的地址信息;
发送模块,用于将修改后的网页数据发送到客户端,以使所述客户端从对应的CDN服务器中下载相应的静态资源。
第二方面,本发明提供了一种客户端,包括:
第一接收模块,用于接收网页数据;所述网页数据中静态资源的地址为指向CDN服务器的链接地址,所述链接地址携带有静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息;
下载请求模块,用于根据静态资源的地址向对应CDN请求下载相应的静态资源;
第二接收模块,用于接收CDN服务器返回的静态资源。
第三方面,本发明提供了一种服务器,所述服务器包括:
接收模块,用于接收客户端根据网页数据中静态资源的地址发起的静态资源下载请求;所述网页数据中静态资源的地址为指向CDN服务器的链接地址,所述链接地址携带有静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息;
判断模块,用于判断所述第一接收模块接收到的静态资源下载请求所请求下载的静态资源是否已缓存;
发送模块,用于在所述判断模块判断相应的静态资源已缓存时,将缓存的相应的静态资源发送至所述客户端;在所述判断模块判断相应的静态资源未缓存时,根据相应的静态资源对应的链接地址中携带的静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息向相应的源服务器请求相应的静态资源,在接收到相应的静态资源后缓存并发送到所述客户端。
第四方面,本发明提供了一种通过CDN下载资源的实现方法,其中,包括:
拦截源服务器向客户端发送的原始网页数据;所述原始网页数据包括有所述源服务器的地址信息和静态资源在所述源服务器的地址信息;
将拦截的原始网页数据中静态资源在所述源服务器的地址信息调整为指向对应的CDN服务器的链接地址,得到修改后的网页数据;其中,所述链接地址中携带有所述源服务器的地址信息以及静态资源在所述源服务器的地址信息;
将修改后的网页数据发送到客户端,以使所述客户端从对应的CDN服务器中下载相应的静态资源。
第五方面,本发明提供了一种通过CDN下载资源的实现方法,包括:
接收网页数据;所述网页数据中静态资源的地址为指向CDN服务器的链接地址,所述链接地址携带有静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息;
根据静态资源的地址向对应CDN服务器请求下载相应的静态资源;
接收CDN服务器返回的静态资源。
第六方面,本发明提供了一种通过CDN下载资源的实现方法,包括:
接收客户端根据网页数据中静态资源的地址发起的静态资源下载请求;所述网页数据中静态资源的地址为指向CDN服务器的链接地址,所述链接地址携带有静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息;
判断所请求下载的静态资源是否已缓存;
如果已缓存,将缓存的相应的静态资源发送至所述客户端;
如果未缓存,根据相应的静态资源对应的链接地址中携带的静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息向相应的源服务器请求相应的静态资源,在接收到相应的源服务器返回的相应的静态资源后缓存并发送到所述客户端。
根据本发明的又一方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行如上文所述的通过CDN下载资源的实现方法。
根据本发明的再一方面,提供了一种计算机可读介质,其中存储了上述的计算机程 序。
本发明的有益效果为:
本发明中,拦截源服务器向客户端发送的原始网页数据;所述原始网页数据包括有所述源服务器的地址信息和静态资源在所述源服务器的地址信息;将拦截的原始网页数据中静态资源在所述源服务器的地址信息调整为指向对应的CDN服务器的链接地址,得到修改后的网页数据;其中,所述链接地址中携带有所述源服务器的地址信息以及静态资源在所述源服务器的地址信息;将修改后的网页数据发送到客户端,以使所述客户端从对应的CDN服务器中下载相应的静态资源。这样客户端会跳转到相应的CDN服务器请求静态资源,如果相应的静态资源没有缓存到CDN服务器,能够触发CDN服务器根据链接地址所指示的源服务器的地址以及静态资源的在源服务器中的地址主动向源服务器请求相应的静态资源。这样就实现了CDN服务器向源服务器的主动同步。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1为本发明一实施例提供的一种通过CDN下载资源的实现方法的流程示意图;
图2为本发明一实施例提供的一种通过CDN下载资源的实现方法的流程示意图;
图3为本发明一实施例提供的一种通过CDN下载资源的实现方法的流程示意图;
图4为本发明提供的一种通过CDN下载资源的实现方法的应用场景的示意图;
图5为本发明一实施例提供的一种通过CDN下载资源的实现方法的流程示意图;
图6为一次可能的响应过程中源服务器发送至客户端的部分网页数据;
图7为对图6中所示的部分网页数据修改后得到的网页数据;
图8为本发明一实施例提供的一种通过CDN下载资源的实现装置的结构示意图;
图9为本发明一实施例提供的一种客户端的结构示意图;
图10为本发明一实施例提供的一种服务器的结构示意图;
图11示意性地示出了用于执行根据本发明的通过CDN下载资源的实现方法的计算设备的框图;以及
图12示意性地示出了用于保持或者携带实现根据本发明的通过CDN下载资源的实现方法的程序代码的存储单元。
具体实施方式
下面结合附图和具体的实施方式对本发明作进一步的描述。
如图1所示,为本发明一个实施例提供的一种通过CDN下载资源的实现方法的流程示 意图,该方法可以由位于源服务器侧的功能模块或者包含该功能模块的装置执行,该方法可以包括:
步骤101,拦截源服务器向客户端发送的原始网页数据;该原始网页数据包括有该源服务器的地址信息和静态资源在该源服务器的地址信息;
步骤102,将拦截的原始网页数据中静态资源在该源服务器的地址信息调整为指向对应的CDN服务器的链接地址,得到修改后的网页数据;其中,所述链接地址中携带有所述源服务器的地址信息以及静态资源在所述源服务器的地址信息;
步骤103,将修改后的网页数据发送到客户端,以使客户端从对应的CDN服务器中下载相应的静态资源。
本发明实施例中,客户端在接收到相应的网页数据后会跳转到相应的CDN服务器请求静态资源,如果相应的静态资源没有缓存到CDN服务器,能够触发CDN服务器根据链接地址所指示的源服务器的地址以及静态资源在源服务器中的地址主动向源服务器请求相应的静态资源。这样就实现了CDN服务器向源服务器的主动同步。
上述的各个步骤均可以通过多种方式实现,比如对于步骤101,可以根据网页数据的格式对源服务器发送到客户端的数据进行识别,在识别到网页数据后拦截;或者也可以在源服务器中注册需要拦截的数据,使源服务器在发送网页数据时在网页数据中添加相应的拦截标识,并在监控到带有拦截标识的数据后进行拦截,或者通过其他现有的方式实现对原始网页数据的拦截,在此不再一一列举。
不难理解,本发明实施例中所指的原始网页数据实际是指源服务器发送给客户端的网页数据,这里的“原始”二字是为了与修改后的网页数据进行区分。这里的原始网页数据可以为客户端根据用户输入的域名向源服务器请求的网页对应的网页数据,也可以为源服务器主动向客户端推送的网页数据。
在具体实施时,源服务器的地址信息可能为源服务器的域名信息,或者IP信息,静态资源在源服务器中的地址信息可能为该静态资源在源服务器中的路径信息或者标签信息。当然源服务器的地址信息和/或静态资源在源服务器中的地址信息也可以表现为其他形式,其具体格式不会影响本发明的实施,相应的技术方案也应该落入本发明的保护范围。
本发明实施例中所指的静态资源可以具体为js(javascript,直译式脚本语言),css(Cascading Style Sheets,层叠样式表)格式的图片。
对于步骤102,在具体实施时,可以在静态资源在源服务器的地址信息之前直接添加对应的CDN服务器的域名,之后,将静态资源在源服务器的地址信息添加到静态资源所在的源服务器的地址信息,之后形成携带有源服务器的地址信息以及静态资源在源服务器中的地址信息且指向CDN服务器的链接地址。这样在将修改后的网页数据发送到客户端之后,客户端根据静态资源的地址请求下载静态资源时,其下载请求会跳转到对应的CDN服务器上。不难理解的是,本发明实施例中所指的对应的CDN服务器是相对于目的客户端而言,一般来说,是指客户端落入其覆盖范围的CDN服务器,这样可以实现就近下载。
在具体应用时,上述步骤102中除了包含将拦截的原始网页数据中静态资源在源服务器的地址信息修改为指向对应的CDN服务器的链接地址之外,还可以包括调整网页数据的 报文头中的内容长度(Content length)的过程。这样,客户端在接收到相应的网页数据后,可以根据该内容长度验证发送的网页数据是否存在错误。
在具体应用时,原始网页数据中还可能包含静态资源的引用地址(Referer)信息,此时在步骤102中,还可以将静态资源的引用地址信息携带在修改后的网页数据中的链接地址中。这样做的好处是,当客户端请求该链接地址时,相应的CDN服务器可以获取根据该链接地址确定相应的静态资源的引用地址信息,这样相应的CDN服务器如果不能正确获取链接地址中源服务器的地址信息,可以通过该引用地址信息确定源服务器的地址信息。在具体应用时,该引用地址信息可以位于整个链接地址的末端。
在具体应用时,步骤102中,将拦截的原始网页数据中静态资源在源服务器的地址信息调整为指向对应的CDN服务器的链接地址,可以是指将原始网页数据中所有静态资源在源服务器的地址信息修改为指向对应的CDN服务器的链接地址,也可以仅是指将部分静态资源在源服务器中的地址信息修改为指向对应的CDN服务器的链接地址。对于地址未被修改的静态资源,客户端在接收到该网页数据后,会直接向源服务器请求下载这部分静态资源。
另一方面,本发明的一个实施例还提供了另一种通过CDN下载资源的实现方法,该方法可以由客户端执行,如图2所示,为该方法的流程示意图,包括:
步骤201,接收网页数据;所述网页数据中静态资源的地址为指向CDN服务器的链接地址,所述链接地址携带有静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息;
步骤202,根据静态资源的地址向对应CDN服务器请求下载相应的静态资源;
步骤203,接收CDN服务器返回的静态资源。
本发明实施例提供的方法中,当客户端根据静态资源的地址向对应的CDN服务器请求下载相应的静态资源时,即请求访问该指向CDN服务器的链接地址时,其访问请求会被跳转到CDN服务器上,CDN服务器能够根据链接地址中携带的静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息从服务器中下载相应的静态资源并缓存到CDN服务器,这样一方面,可以通过CDN服务器实现就近下载,另一方面能够使CDN服务器根据源服务器的地址信息和静态资源在源服务器中的地址信息主动向源服务器请求未缓存的静态资源,能够使CDN服务器自动实现与源服务器的同步。
这里所接收的网页数据可以为经过图1中的步骤102得到的网页数据。相应的,这里的网页数据中的链接地址也可以携带有静态资源的引用地址信息。步骤201-步骤203中的每一个步骤的实现过程可以与现有技术中相应的过程一致,在此不再赘述。
再一方面,本发明的一个实施例还提供了再一种通过CDN下载的实现方法,该方法可以由CDN服务器执行,如图3所示,为该方法的流程示意图,包括:
步骤301,接收客户端根据网页数据中静态资源的地址发起的静态资源下载请求;该网页数据可以为图2中的步骤202中客户端根据静态资源的地址向对应CDN服务器请求下载相应的静态资源时发送的静态资源下载请求,相应的,此时网页数据中静态资源的地址为指向CDN服务器的链接地址,且链接地址携带有静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息;
步骤302,判断所请求下载的静态资源是否已缓存;若否,转向步骤303,若是,转向步骤305;
步骤303,根据相应的静态资源对应的链接地址中携带的静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息,向相应的源服务器请求相应的静态资源,之后转向步骤304;
步骤304,接收相应的源服务器返回的相应的静态资源后缓存,之后转向步骤305;
步骤305,将缓存的相应的静态资源发送至客户端。
本发明实施例中,在接收客户端根据网页数据中静态资源的地址发起的静态资源下载请求后,判断所请求的静态资源是否缓存,若是,则将缓存的相应的资源发送至客户端,如果否,则向相应的静态资源所在的源服务器请求相应的静态资源,在接收到相应的静态资源后缓存。这样,对于发生更新的静态资源,CDN服务器能够根据首次针对该静态资源的下载请求向源服务器请求相应的静态资源,自动实现与源服务器的同步。对于未发生更新的静态资源,CDN服务器由于在之前已经根据上述步骤303和步骤304的流程下载并缓存了相应的静态资源,能够直接向客户端返回相应的静态资源。这样就实现了静态资源的就近下载。
需要指出的是,虽然图3中示出的是,在步骤304之后,转向步骤305的步骤,但是在实际应用中,在首次请求了相应的静态资源后,也可以首先将静态资源发送至客户端,之后再缓存,向客户端发送静态资源与缓存静态资源的先后关系并不影响本发明的实施。
在具体应用时,对于从源服务器接收到的静态资源,在进行缓存时,可以将该静态资源在源服务器中的地址信息作为该静态资源在本地缓存中的标签信息,或者按照该静态资源在源服务器中的地址信息将静态资源缓存到CDN服务器中相应的地址。这样CDN服务器在下次接收到针对该静态资源的下载请求时,能够方便的查找出该静态资源并发送至客户端。当然,在实际应用中,也可以按照其他的方式存储静态资源,比如将该静态资源在源服务器中的地址按照预设的规则进行转换映射得到在本地的存储地址,之后缓存到本地,或者在将静态资源存储到本地后,记录静态资源存储在源服务器中的地址与存储在本地的地址的对应关系,CDN服务器后续在接收到针对该静态资源的下载请求时也能查找到该静态资源并发送至客户端,本发明实施例提供的方式不应理解为对本发明的保护范围的限定。
在具体应用时,在步骤303中,还应该包括获取相应的静态资源所在的源服务器地址信息和获取静态资源在源服务器中的地址信息的过程,之后根据源服务器的地址信息以及静态资源在源服务器中的地址信息向源服务器发送请求下载相应的静态资源,该请求包含静态资源在源服务器中的地址信息,以向源服务器请求相应的静态资源。更进一步的,步骤303中,当源服务器的地址信息为源服务器的域名,静态资源在源服务器中的地址信息为在源服务器中的路径时,可以将在源服务中的路径放在源服务器的域名之后,生成一个指向源服务器的链接,并针对该链接发起下载请求,以向源服务器请求下载相应的静态资源。
下面结合具体的应用场景,对本发明的完整实施例进行详细的说明。如图4所示,在该应用场景中,包括源服务器、拦截服务器、客户端和CDN服务器,其中,拦截服务器部署在源服务器与客户端之间的路由上靠近源服务器的一侧,通过网络分别与源服务器和客户端相连,CDN服务器通过网络分别与源服务器和客户端相连。其中,这里的拦截服务器用以 执行图1中所述的方法,客户端用以执行图2中的方法,CDN服务器用以执行图3中的方法,假设其绑定的域名为www.cdn1XXX1.com;同时假设源服务器绑定的域名为www.1XXX1.com。另外假设拦截服务器在客户端中预先注册了需要拦截响应的事件,源服务器在发送需要拦截响应的事件对应的网页数据时,在该网页数据的报文头中添加相应的拦截标签。
该方法的具体流程可以如图5所示,包括:
步骤501,客户端接收用户输入的域名www.1XXX1.com,向源服务器发送访问请求。之后转向步骤502。
步骤502,源服务器接收客户端发送的访问请求,向客户端发送网页数据。之后转向步骤503。
假设源服务器发送给客户端的网页数据中源文件部分中的部分片段如图6所示,其中包含一个css格式的图片的静态资源,该静态资源在源服务器中的路径link href="/bootstrap/css/bootstrap.min.css",该静态资源的引用地址为rel="stylesheet",引用地址位于该静态文件在源服务器中的路径之后。另外,在该网页数据的标签信息中携带了源服务器的域名www.1XXX1.com。并假设该网页数据中的标签信息中携带了用于表示该网页数据需要拦截的拦截标识。
步骤503,拦截服务器拦截该网页数据,将其中的静态资源所对应的路径link href="/bootstrap/css/bootstrap.min.css"替换为一个指向所述CDN服务器,且包含源服务器的域名及该静态资源在源服务器中的路径的一个链接地址,并修改该网页数据的内容长度。之后转向步骤505。
由于该网页数据中携带了拦截标识,拦截服务器能够根据拦截标识确定该网页数据需要被拦截。
该链接地址的具体格式可以为www.cdn1XXX1.com/bootstrap/css/bootstrap.min.css?we b_real_domain=www.1XXX1.com"rel="stylesheet",其中CDN服务器的域名包含www.cdn1XXX1.com,该静态资源在源服务器中的路径/bootstrap/css/bootstrap.min.css,源服务器的域名(web_real_domain)www.1XXX1.com,该静态信息的引用地址rel="stylesheet"。图6中的网页数据内容修改经步骤504的修改后可以如图7所示。
步骤504,拦截服务器将修改后的网页数据发送至客户端。
步骤505,客户端接收拦截服务器发送的修改后的网页数据。之后转向步骤506。
步骤506,客户端向该网页数据中的静态资源的地址www.cdn1XXX1.com/bootstrap/cs s/bootstrap.min.css?web_real_domain=www.1XXX1.com"rel="stylesheet"发起下载请求。之后转向步骤507。在实际应用中,客户端也可能需要访问网页数据中的其他资源,比如动态资源等,这些不是本发明所主要关心的内容,在此亦不在进行详细的说明。由于该下载请求是指向CDN服务器的连接地址,则该下载请求会被转向该CDN服务器。
步骤507,CDN服务器接收客户端发送的下载请求,判断自身服务器中是否缓存了相应的静态资源,若否,则转向步骤508,若是,则转向步骤512。
具体的,CDN服务器从请求该静态资源的链接地址中提取该静态资源在源服务器中的 路径/bootstrap/css/bootstrap.min.css,判断自身是否缓存了该路径对应静态资源。
步骤508,CDN服务器从请求该静态资源的链接地址中提取源服务器的链接地址www.1XXX1.com,以及该静态资源在源服务器中的路径/bootstrap/css/bootstrap.min.css。之后转向步骤509。
如果步骤508中如果没能成功“从请求该静态资源的链接地址中提取源服务器的链接地址”,则可以提取该静态资源的引用地址rel="stylesheet",之后根据该引用地址获取源服务器的链接地址。
步骤509,CDN服务器生成一个用于向源服务器请求该静态资源的链接www.1XXX1.com/bootstrap/css/bootstrap.min.css,并发起针对该链接的下载请求。之后转向步骤510。
步骤510,源服务器接收CDN发送的下载请求,提取所请求的静态资源在源服务器中的路径bootstrap/css/bootstrap.min.css,将该路径下存储的静态资源发送至CDN服务器。之后转向步骤511。
步骤511,CDN服务器接收源服务器发送的静态资源,将该静态资源存储在bootstrap/css/bootstrap.min.css的路径下。之后转向步骤512。
步骤512,CDN服务器将缓存的静态资源发送至客户端。
至此,完成了静态资源通过CDN服务器下载的过程,如果该静态资源为发生更新的静态资源,那么在步骤507的判断结果为否,CDN服务器自行向源服务器请求该静态资源,通过这种方式,实现了更新的静态资源的自动同步。在后续过程中,如果再有其他的客户端发起了针对该静态资源的下载请求,按照上述的流程,在步骤507的判断结果会为是,直接跳转至步骤512,将缓存的静态资源发送至客户端。这样就通过CDN服务器实现了静态资源的就近下载。
图8为本发明一个实施例提供的一种通过CDN下载资源的实现装置的结构示意图,该实施例提供的通过CDN下载资源的实现装置可作为拦截服务器应用到图5中所示的方法中,该装置可以包括:拦截模块801、修改模块802和发送模块803,其中,
拦截模块801,用于拦截源服务器向客户端发送的原始网页数据;所述原始网页数据包括有所述源服务器的地址信息和静态资源在所述源服务器的地址信息;
修改模块802,用于将拦截的原始网页数据中静态资源在所述源服务器的地址信息调整为指向对应的CDN服务器的链接地址,得到修改后的网页数据;其中,所述链接地址中携带有所述源服务器的地址信息以及静态资源在所述源服务器的地址信息;
发送模块803,用于将修改后的网页数据发送到客户端,以使所述客户端从对应的CDN服务器中下载相应的静态资源。
本实施例提供的通过CDN下载资源的实现装置,拦截源服务器向客户端发送的原始网页数据;所述原始网页数据包括有所述源服务器的地址信息和静态资源在所述源服务器的地址信息;将拦截的原始网页数据中静态资源在所述源服务器的地址信息调整为指向对应的CDN服务器的链接地址,得到修改后的网页数据;其中,所述链接地址中携带有所述源服务器的地址信息以及静态资源在所述源服务器的地址信息;将修改后的网页数据发送到客户 端,以使所述客户端从对应的CDN服务器中下载相应的静态资源。这样客户端会跳转到相应的CDN服务器请求静态资源,如果相应的静态资源没有缓存到CDN服务器,能够触发CDN服务器根据链接地址所指示的源服务器的地址以及静态资源的在源服务器中的地址主动向源服务器请求相应的静态资源。这样就实现了CDN服务器向源服务器的主动同步。
需要指出的是,本发明实施例所提供的通过CDN下载资源的实现装置本身可以为一个功能模块或者为具有相应功能的装置。比如在实际应用中,该装置本身可以为源服务器或者CDN服务器的一个功能模块。
具体应用时,修改模块802可以用于将拦截的原始网页数据中静态资源在所述源服务器的地址信息修改为指向对应的CDN服务器的链接地址以及调整网页数据中的内容长度,得到修改后的网页数据。
具体应用时,上述的链接地址还携带有静态资源的引用地址信息,所述静态资源的引用地址信息是从所述网页数据中获取的。
本发明的一个实施例还提供了一种客户端,如图9所示,该客户端包括第一接收模块901、下载请求模块902和第二接收模块903,其中,
第一接收模块901,用于接收网页数据;所述网页数据中静态资源的地址为指向CDN服务器的链接地址,所述链接地址携带有静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息;
下载请求模块902,用于根据静态资源的地址向对应CDN请求下载相应的静态资源;
第二接收模块903,用于接收CDN服务器返回的静态资源。
本发明实施例提供的客户端根据静态资源的地址向对应的CDN服务器请求下载相应的静态资源时,即请求访问该指向CDN服务器的链接地址时,其访问请求会被跳转到CDN服务器上,CDN服务器能够根据链接地址中携带的静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息从服务器中下载相应的静态资源并缓存到CDN服务器,这样一方面,可以通过CDN服务器实现就近下载,另一方面能够使CDN服务器根据源服务器的地址信息和静态资源在源服务器中的地址信息主动向源服务器请求未缓存的静态资源,能够使CDN服务器自动实现与源服务器的同步。
在一些示例中,CDN服务器返回的静态资源为所述CDN服务器根据所述链接地址中携带的静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息向源服务器下载的。
在具体应用时,这里的链接地址还携带有静态资源的引用地址信息。
本发明的一个实施例还提供了一种CDN服务器,如图10所示,服务器包括接收模块1001、判断模块1002和发送模块1003,其中,
接收模块1001,用于接收客户端根据网页数据中静态资源的地址发起的静态资源下载请求;所述网页数据中静态资源的地址为指向CDN服务器的链接地址,所述链接地址携带有静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息;
判断模块1002,用于判断第一接收模块1001接收到的静态资源下载请求所请求下载的静态资源是否已缓存;
发送模块1003,用于在判断模块1002判断相应的静态资源已缓存时,将缓存的相应的静态资源发送至所述客户端;在判断模块1002判断相应的静态资源未缓存时,根据相应的静态资源对应的链接地址中携带的静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息向相应的源服务器请求相应的静态资源,在接收到相应的静态资源后缓存并发送到所述客户端。
本发明实施例提供的CDN服务器,在接收客户端根据网页数据中静态资源的地址发起的静态资源下载请求后,判断所请求的静态资源是否缓存,若是,则将缓存的相应的资源发送至客户端,如果否,则向相应的静态资源所在的源服务器请求相应的静态资源,在接收到相应的静态资源后缓存。这样,对于发生更新的静态资源,CDN服务器能够根据首次针对该静态资源的下载请求向源服务器请求相应的静态资源,自动实现与源服务器的同步。
可选的,上述的链接地址还携带有静态资源的引用地址信息。
该CDN服务器还包括:
寻址模块1004,用于在判断模块1002判断相应的静态资源未缓存后,发送模块1003根据相应的静态资源的原始地址向相应的源服务器地址请求相应的静态资源之前,从对应的链接地址中提取相应的源服务器的地址,在提取相应的源服务器的地址失败时,根据对应的链接地址中的引用地址确定相应的源服务器的地址。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的通过CDN下载资源的实现装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图11示出了可以实现根据本发明的通过CDN下载资源的实现方法的计算设备。该计算设备传统上包括处理器1110和以存储器1120形式的计算机程序产品或者计算机可读介质。存储器1120可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器1120具有用于执行上述方法中的任何方法步骤的程序代码1131的存储空间1130。例如,用于程序代码的存储空间1130可以包括分别用于实现上面的方法中的各种步骤的各个程序代码1131。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图12所述的便携式或者固定存储单元。该存储单元可以具有与图11的计算设备中的存储器1120类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码1131’,即可以由例如诸如1110之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。

Claims (18)

  1. 一种通过CDN下载资源的实现装置,包括:
    拦截模块,用于拦截源服务器向客户端发送的原始网页数据;所述原始网页数据包括有所述源服务器的地址信息和静态资源在所述源服务器的地址信息;
    修改模块,用于将拦截的原始网页数据中静态资源在所述源服务器的地址信息调整为指向对应的CDN服务器的链接地址,得到修改后的网页数据;其中,所述链接地址中携带有所述源服务器的地址信息以及静态资源在所述源服务器的地址信息;
    发送模块,用于将修改后的网页数据发送到客户端,以使所述客户端从对应的CDN服务器中下载相应的静态资源。
  2. 如权利要求1所述的装置,其中,所述修改模块,具体用于将拦截的原始网页数据中静态资源在所述源服务器的地址信息修改为指向对应的CDN服务器的链接地址以及调整网页数据中的内容长度,得到修改后的网页数据。
  3. 如权利要求1所述的装置,其中,所述链接地址还携带有静态资源的引用地址信息,所述静态资源的引用地址信息是从所述网页数据中获取的。
  4. 一种客户端,包括:
    第一接收模块,用于接收网页数据;所述网页数据中静态资源的地址为指向CDN服务器的链接地址,所述链接地址携带有静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息;
    下载请求模块,用于根据静态资源的地址向对应CDN请求下载相应的静态资源;
    第二接收模块,用于接收CDN服务器返回的静态资源。
  5. 如权利要求4所述的客户端,其中,CDN服务器返回的静态资源为所述CDN服务器根据所述链接地址中携带的静态资源所在的源服务器的地址信息,以及静态资源在源服务器中的地址信息向源服务器下载的。
  6. 如权利要求4所述的客户端,其中,所述链接地址还携带有静态资源的引用地址信息。
  7. 一种服务器,包括:
    接收模块,用于接收客户端根据网页数据中静态资源的地址发起的静态资源下载请求;所述网页数据中静态资源的地址为指向CDN服务器的链接地址,所述链接地址携带有静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息;
    判断模块,用于判断所述第一接收模块接收到的静态资源下载请求所请求下载的静态资源是否已缓存;
    发送模块,用于在所述判断模块判断相应的静态资源已缓存时,将缓存的相应的静态资源发送至所述客户端;在所述判断模块判断相应的静态资源未缓存时,根据相应的静态资源对应的链接地址中携带的静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息向相应的源服务器请求相应的静态资源,在接收到相应的静态资源后缓存并发送到所述客户端。
  8. 如权利要求7所述的服务器,其中,所述链接地址还携带有静态资源的引用地址信息;
    所述服务器还包括:
    寻址模块,用于在所述判断模块判断相应的静态资源未缓存后,所述发送模块根据相应的静态资源的原始地址向相应的源服务器地址请求相应的静态资源之前,从对应的链接地址中提取相应的源服务器的地址,在提取相应的源服务器的地址失败时,根据对应的链接地址中的引用地址Referer确定相应的源服务器的地址。
  9. 一种通过CDN下载资源的实现方法,包括:
    拦截源服务器向客户端发送的原始网页数据;所述原始网页数据包括有所述源服务器的地址信息和静态资源在所述源服务器的地址信息;
    将拦截的原始网页数据中静态资源在所述源服务器的地址信息调整为指向对应的CDN服务器的链接地址,得到修改后的网页数据;其中,所述链接地址中携带有所述源服务器的地址信息以及静态资源在所述源服务器的地址信息;
    将修改后的网页数据发送到客户端,以使所述客户端从对应的CDN服务器中下载相应的静态资源。
  10. 如权利要求9所述的方法,其中,所述将拦截的原始网页数据中静态资源在所述源服务器的地址信息修改为指向对应的CDN服务器的链接地址,得到修改后的网页数据包括:
    将拦截的原始网页数据中静态资源在所述源服务器的地址信息修改为指向对应的CDN服务器的链接地址以及调整网页数据中的内容长度,得到修改后的网页数据。
  11. 如权利要求9所述的方法,其中,所述链接地址还携带有静态资源的引用地址信息,所述静态资源的引用地址信息是从所述网页数据中获取的。
  12. 一种通过CDN下载资源的实现方法,包括:
    接收网页数据;所述网页数据中静态资源的地址为指向CDN服务器的链接地址,所述链接地址携带有静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息;
    根据静态资源的地址向对应CDN服务器请求下载相应的静态资源;
    接收CDN服务器返回的静态资源。
  13. 如权利要求12所述的方法,其中,
    CDN服务器返回的静态资源为所述CDN服务器根据所述链接地址中携带的静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息向源服务器下载的。
  14. 如权利要求12所述方法,其中,所述链接地址还携带有静态资源的引用地址信息。
  15. 一种通过CDN下载资源的实现方法,包括:
    接收客户端根据网页数据中静态资源的地址发起的静态资源下载请求;所述网页数据中静态资源的地址为指向CDN服务器的链接地址,所述链接地址携带有静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息;
    判断所请求下载的静态资源是否已缓存;
    如果已缓存,将缓存的相应的静态资源发送至所述客户端;
    如果未缓存,根据相应的静态资源对应的链接地址中携带的静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息向相应的源服务器请求相应的静态资源,在接收到相应的源服务器返回的相应的静态资源后缓存并发送到所述客户端。
  16. 如权利要求15所述的方法,其中,所述链接地址还携带有静态资源的引用地址信息;
    在所请求下载的静态资源未缓存,根据相应的静态资源对应的链接地址中携带的静态资源所在的源服务器的地址信息以及静态资源在源服务器中的地址信息向相应的源服务器请求相应的静态资源之前,所述方法还包括:从对应的链接地址中提取相应的源服务器的地址信息,在提取相应的源服务器的地址信息失败时,根据对应的链接地址中的引用地址信息确定相应的源服务器的地址。
  17. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求9至16任一项所述的通过CDN下载资源的实现方法。
  18. 一种计算机可读介质,其中存储了如权利要求17所述的计算机程序。
PCT/CN2015/095805 2014-12-22 2015-11-27 通过cdn下载资源的实现方法和装置、服务器、客户端 WO2016101763A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410806357.9 2014-12-22
CN201410806357.9A CN104468817B (zh) 2014-12-22 2014-12-22 通过cdn下载资源的实现方法和装置、服务器、客户端

Publications (1)

Publication Number Publication Date
WO2016101763A1 true WO2016101763A1 (zh) 2016-06-30

Family

ID=52914168

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/095805 WO2016101763A1 (zh) 2014-12-22 2015-11-27 通过cdn下载资源的实现方法和装置、服务器、客户端

Country Status (2)

Country Link
CN (2) CN106101231B (zh)
WO (1) WO2016101763A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109948025A (zh) * 2019-03-20 2019-06-28 上海古鳌电子科技股份有限公司 一种数据引用记录方法
CN110336848A (zh) * 2019-04-23 2019-10-15 网宿科技股份有限公司 一种访问请求的调度方法及调度系统、设备
CN112632440A (zh) * 2020-12-18 2021-04-09 西安博达软件股份有限公司 基于水印特征规则串的教师个人主页静态资源生成方法
CN114979146A (zh) * 2022-05-25 2022-08-30 中移(杭州)信息技术有限公司 回源方法、cdn设备、存储介质以及设备
CN116996579A (zh) * 2023-09-27 2023-11-03 联通在线信息科技有限公司 基于复用302地址提高分片请求下载速度的方法及系统
WO2023226887A1 (zh) * 2022-05-27 2023-11-30 华为技术有限公司 业务容灾方法、终端设备、软件开发包服务器和通信系统

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101231B (zh) * 2014-12-22 2020-02-21 北京奇虎科技有限公司 通过cdn下载资源的实现方法和装置、服务器、客户端
US11070608B2 (en) 2015-06-17 2021-07-20 Fastly, Inc. Expedited sub-resource loading
CN106612311A (zh) * 2015-10-23 2017-05-03 中兴通讯股份有限公司 数据推送方法及装置
CN105897852A (zh) * 2015-12-29 2016-08-24 乐视网信息技术(北京)股份有限公司 广告下载方法、客户端和服务器
CN106130951B (zh) * 2016-05-31 2020-05-01 努比亚技术有限公司 一种应用商店服务管理方法和装置
CN106790687A (zh) * 2017-02-17 2017-05-31 和创(北京)科技股份有限公司 网页呈现方法、网页数据处理方法和服务器
CN107135266B (zh) * 2017-05-19 2020-11-13 北京网高科技股份有限公司 Http代理框架安全数据传输方法
CN109254804A (zh) * 2018-09-10 2019-01-22 郑州云海信息技术有限公司 一种静态资源加载方法、装置、设备及可读存储介质
CN109714406B (zh) * 2018-12-18 2021-04-02 网宿科技股份有限公司 资源描述文件的处理、页面资源的获取方法及设备
CN110209949B (zh) * 2019-06-11 2021-10-15 湖南快乐阳光互动娱乐传媒有限公司 资源推送方法及装置
CN112688825B (zh) * 2019-10-18 2022-04-05 上海哔哩哔哩科技有限公司 Cdn节点测试方法、装置以及计算机设备
CN112866325B (zh) * 2019-11-28 2023-05-16 北京金山云网络技术有限公司 资源文件传输方法、装置、cdn中的上层及边缘节点
CN110955851B (zh) * 2019-11-29 2023-05-26 海南车智易通信息技术有限公司 一种网络请求处理方法、系统、计算设备
CN111355612A (zh) * 2020-02-28 2020-06-30 中国工商银行股份有限公司 源站故障的cdn节点应急处理方法及系统
CN112015485A (zh) * 2020-08-14 2020-12-01 北京达佳互联信息技术有限公司 页面展示方法、装置、电子设备及存储介质
CN112468570A (zh) * 2020-11-24 2021-03-09 福建天泉教育科技有限公司 一种数据请求的处理方法及cdn服务端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710765A (zh) * 2012-05-28 2012-10-03 蓝汛网络科技(北京)有限公司 一种cdn服务器实现透明代理的方法、装置及系统
JP5404855B2 (ja) * 2012-06-12 2014-02-05 日本電信電話株式会社 Cdn導入状況判別装置、cdn導入状況判別方法、及びプログラム
CN103747112A (zh) * 2013-12-24 2014-04-23 乐视网信息技术(北京)股份有限公司 一种cdn回源的方法、第一服务器及系统
CN104468817A (zh) * 2014-12-22 2015-03-25 北京奇虎科技有限公司 通过cdn下载资源的实现方法和装置、服务器、客户端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710765A (zh) * 2012-05-28 2012-10-03 蓝汛网络科技(北京)有限公司 一种cdn服务器实现透明代理的方法、装置及系统
JP5404855B2 (ja) * 2012-06-12 2014-02-05 日本電信電話株式会社 Cdn導入状況判別装置、cdn導入状況判別方法、及びプログラム
CN103747112A (zh) * 2013-12-24 2014-04-23 乐视网信息技术(北京)股份有限公司 一种cdn回源的方法、第一服务器及系统
CN104468817A (zh) * 2014-12-22 2015-03-25 北京奇虎科技有限公司 通过cdn下载资源的实现方法和装置、服务器、客户端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BAIDU BAIKE: "Off-Line Download", LOVE LITTLE TIME, 3 November 2014 (2014-11-03), pages 2, Retrieved from the Internet <URL:http://baike.baidu.com/history/%E7%A6%BB%E7%BA%BF%E4%B8%8B%E8%BD%BD/67591585> *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109948025A (zh) * 2019-03-20 2019-06-28 上海古鳌电子科技股份有限公司 一种数据引用记录方法
CN109948025B (zh) * 2019-03-20 2023-10-20 上海古鳌电子科技股份有限公司 一种数据引用记录方法
CN110336848A (zh) * 2019-04-23 2019-10-15 网宿科技股份有限公司 一种访问请求的调度方法及调度系统、设备
CN112632440A (zh) * 2020-12-18 2021-04-09 西安博达软件股份有限公司 基于水印特征规则串的教师个人主页静态资源生成方法
CN112632440B (zh) * 2020-12-18 2023-01-24 西安博达软件股份有限公司 基于水印特征规则串的教师个人主页静态资源生成方法
CN114979146A (zh) * 2022-05-25 2022-08-30 中移(杭州)信息技术有限公司 回源方法、cdn设备、存储介质以及设备
WO2023226887A1 (zh) * 2022-05-27 2023-11-30 华为技术有限公司 业务容灾方法、终端设备、软件开发包服务器和通信系统
CN116996579A (zh) * 2023-09-27 2023-11-03 联通在线信息科技有限公司 基于复用302地址提高分片请求下载速度的方法及系统
CN116996579B (zh) * 2023-09-27 2024-02-27 联通在线信息科技有限公司 基于复用302地址提高分片请求下载速度的方法及系统

Also Published As

Publication number Publication date
CN106101231A (zh) 2016-11-09
CN104468817A (zh) 2015-03-25
CN106101231B (zh) 2020-02-21
CN104468817B (zh) 2016-08-24

Similar Documents

Publication Publication Date Title
WO2016101763A1 (zh) 通过cdn下载资源的实现方法和装置、服务器、客户端
US20220006878A1 (en) Method and apparatus for reducing loading time of web pages
US9769240B2 (en) Loading of web resources
AU2015401229B2 (en) Website access method, apparatus, and website system
US9641591B1 (en) Modifying web content at a client
US9871850B1 (en) Enhanced browsing using CDN routing capabilities
CN105100294B (zh) 获取网页的方法、系统、网络服务器、浏览器和gslb
US10693979B2 (en) Third party validation of web content
US9401949B1 (en) Client web content cache purge
US9253278B2 (en) Using entity tags (ETags) in a hierarchical HTTP proxy cache to reduce network traffic
CN107465722B (zh) Web访问的实现方法和装置
CN104714965B (zh) 静态资源去重方法、静态资源管理方法及装置
JP2018506936A (ja) ネットワークにおいてコンテンツを配信するエンドツーエンドソリューションのための方法及びシステム
US20210021691A1 (en) Site and page specific resource prioritization
US9537932B2 (en) Emulating test distributed application on server
CN109788050B (zh) 一种获取源站ip地址方法、系统、电子设备和介质
US11122106B2 (en) Method and apparatus for providing web service using edge computing service
WO2017020597A1 (zh) 一种资源缓存方法及装置
US10868881B1 (en) Loading web resources using remote resource pushing
CN107239475B (zh) 一种调用文件方法及装置
CN106919595B (zh) 一种用于Cookie映射的方法、装置及电子设备
US10771578B2 (en) Webpage loading method and apparatus
CN109451094B (zh) 一种获取源站ip地址方法、系统、电子设备和介质
WO2020062910A1 (zh) 数据缓存
US11323537B1 (en) Generating early hints informational responses at an intermediary server

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15871832

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15871832

Country of ref document: EP

Kind code of ref document: A1