Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for acquiring web page resources

A web resource and acquisition method technology, applied in the field of web resource acquisition methods and devices, can solve the problems of inability to acquire web page resources from CDN, target web pages cannot be accessed normally, etc., and achieve the effect of improving reliability

Active Publication Date: 2019-11-08
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a method and device for obtaining webpage resources, so as to solve the problem that the target webpage cannot be accessed normally due to the fact that the client cannot obtain webpage resources from the CDN in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for acquiring web page resources
  • Method and device for acquiring web page resources
  • Method and device for acquiring web page resources

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] According to an embodiment of the present invention, a method for obtaining web resources is provided. Such as figure 2 As shown, the method can include:

[0032] S202: Access the target webpage according to the webpage access request, and request the content delivery network CDN (Content Delivery Network) to obtain the first webpage resource that needs to be loaded in the target webpage;

[0033] S204: Determine whether the first webpage resource is successfully obtained, where

[0034] If not, perform step S206;

[0035] S206: Obtain a second webpage resource consistent with the content of the first webpage resource from a backup network other than the CDN.

[0036] According to the method for obtaining webpage resources provided by the embodiment of the present invention, in step S102, the target webpage may be accessed according to the webpage access request, and the CDN may be requested to obtain the first webpage resource that needs to be loaded in the target webpage...

Embodiment 2

[0134]根据本发明实施例,还提供了一种用于实施上述网页资源获取方法的网页资源获取装置。如图11所示,该装置可以包括:

[0135]1)访问单元1102,用于根据网页访问请求对目标网页进行访问,并向CDN请求获取需要加载在目标网页中的第一网页资源;

[0136]2)判断单元1104,用于判断是否成功获取第一网页资源;

[0137]3)第一获取单元1106,用于在未成功获取第一网页资源时,从CDN以外的备份网络获取与第一网页资源的内容一致的第二网页资源。

[0138]根据本发明实施例提供的网页资源获取装置,在访问单元1102中,可以根据网页访问请求对目标网页进行访问,并向CDN请求获取需要加载在所述目标网页中的第一网页资源。

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and device for acquiring web page resources. Wherein, the webpage resource acquisition method includes: accessing the target webpage according to the webpage access request, and requesting the content distribution network CDN to obtain the first webpage resource that needs to be loaded in the target webpage; judging whether the first webpage resource is successfully obtained; if not If the first webpage resource is successfully obtained, the second webpage resource consistent with the content of the first webpage resource is obtained from a backup network other than the CDN. The invention solves the technical problem in the prior art that the target webpage cannot be accessed normally due to the client's inability to obtain webpage resources from the CDN, realizes the technical effect of normal access to the target webpage, and achieves the goal of improving the reliability of webpage access technical effect.

Description

Technical field [0001] The present invention relates to the field of communications, and in particular to a method and device for obtaining webpage resources. Background technique [0002] In the existing Internet communication technology, in order to increase the access speed of the network web page (also called the web page), the referenced web page resources are usually stored in the content delivery network CDN (Content Delivery Network). So as figure 1 As shown, when the client accesses the web page, the principle of nearby access can be adopted. The domain name system DNS (Domain Name System) server allocates the nodes in the CDN nearby to the client. From the CDN node, the web page resources required by the web page are processed. Pull, which can shorten the loading time of webpage resources, and can disperse the pressure of obtaining webpage resources from webpages with larger visits. The use of CDN has greatly improved the page loading speed of the client and improved t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08H04L29/06G06F16/958G06F16/957
CPCH04L63/10H04L67/02H04L61/4511
Inventor 郭力恒
Owner TENCENT TECH (SHENZHEN) CO LTD