[go: up one dir, main page]

CN102214224A - Network resource access optimizing method, Web page browser and terminal - Google Patents

Network resource access optimizing method, Web page browser and terminal Download PDF

Info

Publication number
CN102214224A
CN102214224A CN2011101606547A CN201110160654A CN102214224A CN 102214224 A CN102214224 A CN 102214224A CN 2011101606547 A CN2011101606547 A CN 2011101606547A CN 201110160654 A CN201110160654 A CN 201110160654A CN 102214224 A CN102214224 A CN 102214224A
Authority
CN
China
Prior art keywords
file
path
external link
accessing
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011101606547A
Other languages
Chinese (zh)
Inventor
刘军
路芳芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2011101606547A priority Critical patent/CN102214224A/en
Publication of CN102214224A publication Critical patent/CN102214224A/en
Priority to PCT/CN2012/073216 priority patent/WO2012171391A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明提供一种访问网络资源的优化方法、Web浏览器和终端,该方法包括:接收到访问外链文件的请求后,从所述外链文件在页面中的路径统一资源定位符(URL)中解析出所述外链文件在业务服务器中的绝对路径;检测是否缓存有所述绝对路径对应的文件数据,若有,则取消所述访问外链文件的请求;若没有,则发起所述访问外链文件的请求。本发明既能够正确访问到外链文件,并且能实现外联文件路径甄别处理,同一个外链文件即使不同路径可以避免向业务服务器多次请求访问,从而达到节省网络资源和设备本身资源的目的。

Figure 201110160654

The present invention provides an optimization method for accessing network resources, a web browser and a terminal. The method includes: after receiving a request for accessing an external link file, from the path Uniform Resource Locator (URL) of the external link file in the page Analyze the absolute path of the external chain file in the business server; detect whether the file data corresponding to the absolute path is cached, and if so, cancel the request for accessing the external chain file; if not, initiate the A request to access an externally linked file. The present invention can not only correctly access the external link file, but also realize the path screening process of the external link file. Even if the same external link file has different paths, it can avoid multiple access requests to the business server, thereby achieving the purpose of saving network resources and device resources .

Figure 201110160654

Description

一种访问网络资源的优化方法、网页浏览器和终端An optimization method for accessing network resources, a web browser and a terminal

技术领域technical field

本发明涉及软件应用领域,尤其涉及一种访问网络资源的优化方法、Web(网页)浏览器和终端。The invention relates to the field of software applications, in particular to an optimization method for accessing network resources, a Web (web page) browser and a terminal.

背景技术Background technique

互联网发展迅速,其主要载体是以HTML(Hyper Text Mark-up Language,超文本标记语言)编码文件为基础的HTML网页,而在HTML网页使用了大量的外链文件,例如:脚本文件(例如JavaScript文件)、CSS(Cascading Style Sheet,层叠样式表)文件、图像文件(例如BMP(bitmap,位图图片)文件、JPEG(Joint Photographic Experts Group,联合图像专家组)文件、GIF(Graphics Interchange Format,图像互换格式)文件、PNG(Portable Network Graphic Format,流式网络图形格式)文件)等等。页面开发者在编写具体页面代码过程中,可能会存在HTML文件中多次使用同一个外链文件,但是在HTML文件中对应的外链文件的路径可能不同。例如:test.jpg文件在服务器home(主页)文件夹下,针对home文件夹下的test.jpg文件,在页面中可能出现如下外链文件的路径写法,分别记为:路径1、路径2:The Internet is developing rapidly, and its main carrier is HTML web pages based on HTML (Hyper Text Mark-up Language, Hypertext Markup Language) encoded files, and a large number of external link files are used in HTML web pages, such as: script files (such as JavaScript file), CSS (Cascading Style Sheet, Cascading Style Sheet) file, image file (such as BMP (bitmap, bitmap image) file, JPEG (Joint Photographic Experts Group, Joint Photographic Experts Group) file, GIF (Graphics Interchange Format, image Interchange format) files, PNG (Portable Network Graphic Format, streaming network graphics format) files), etc. In the process of writing specific page codes, the page developer may use the same external link file multiple times in the HTML file, but the paths of the corresponding external link files in the HTML file may be different. For example: the test.jpg file is under the home (homepage) folder of the server. For the test.jpg file under the home folder, the following external link file path writing methods may appear on the page, which are recorded as: path 1 and path 2:

路径1:http://127.0.0.1/home/webserver/../test.jpg;Path 1: http://127.0.0.1/home/webserver/../test.jpg;

路径2:http://127.0.0.1/home/httpserver/../test.jpg;Path 2: http://127.0.0.1/home/httpserver/../test.jpg;

上述路径1、路径2其实都是指向服务器home目录下的test.jpg文件,其针对终端来讲,该文件的绝对路径为:The above path 1 and path 2 actually point to the test.jpg file in the home directory of the server. For the terminal, the absolute path of the file is:

http://127.0.0.1/home/test.jpg。http://127.0.0.1/home/test.jpg.

但在终端浏览器中当解析到外链文件的路径时,分别解析成两个不同的路径URL(Uniform / Universal Resource Locator,统一资源定位符),向业务服务器发起资源访问的请求。虽然一般浏览器将路径1与路径2是不同的两个URL,其实是指向业务服务器上同一个外链文件,但是终端浏览器却向业务服务器发送两次请求,对业务服务器资源和终端设备的资源都存在浪费。当Web文件出现有大量的外链文件相同而路径不同的情况时,大量的终端设备同时访问会极易引起业务服务器过载,给系统运行带来一定的风险。However, when the path of the external link file is parsed in the terminal browser, it is parsed into two different path URLs (Uniform / Universal Resource Locator, Uniform Resource Locator), and a resource access request is initiated to the business server. Although the general browser regards path 1 and path 2 as two different URLs, which actually point to the same external link file on the business server, the terminal browser sends two requests to the business server, which affects the resources of the business server and the terminal equipment. Resources are wasted. When a web file has a large number of external links with the same file but with different paths, simultaneous access by a large number of terminal devices will easily cause the business server to be overloaded and bring certain risks to the system operation.

发明内容Contents of the invention

本发明要解决的技术问题是提供一种访问网络资源的优化方法、Web浏览器和终端,以避免针对具有不同路径的外链文件向业务服务器进行多次请求访问,从而达到节省网络资源和设备本身资源的目的。The technical problem to be solved by the present invention is to provide an optimization method for accessing network resources, a Web browser and a terminal, so as to avoid multiple requests for access to the business server for external chain files with different paths, thereby saving network resources and equipment the purpose of its own resources.

为了解决上述技术问题,本发明提供了一种访问网络资源的优化方法,包括:In order to solve the above technical problems, the present invention provides an optimization method for accessing network resources, including:

接收到访问外链文件的请求后,从所述外链文件在页面中的路径统一资源定位符(URL)中解析出所述外链文件在业务服务器中的绝对路径;After receiving the request for accessing the external link file, parsing the absolute path of the external link file in the service server from the path uniform resource locator (URL) of the external link file in the page;

检测是否缓存有所述绝对路径对应的文件数据,若有,则取消所述访问外链文件的请求;若没有,则发起所述访问外链文件的请求。Detect whether the file data corresponding to the absolute path is cached, and if so, cancel the request for accessing the externally linked file; if not, initiate the request for accessing the externally linked file.

进一步地,上述方法还具有下面特点:所述发起所述访问外链文件的请求之后,还包括:Further, the above method also has the following characteristics: after the request for accessing the external link file is initiated, it also includes:

下载所述外链文件对应的文件数据,并保存所述绝对路径与下载的文件数据的对应关系。Downloading the file data corresponding to the external link file, and saving the corresponding relationship between the absolute path and the downloaded file data.

进一步地,上述方法还具有下面特点:所述从所述外链文件在页面中的路径URL中解析出所述外链文件在业务服务器中的绝对路径的步骤包括:Further, the above method also has the following features: the step of parsing the absolute path of the external link file in the service server from the path URL of the external link file on the page includes:

判断所述路径URL是否包括文件路径符号,若没有,则将所述路径URL作为所述外链文件在业务服务器中的绝对路径;若有,则根据所述文件路径符号的含义进行简化处理得到所述外链文件在业务服务器中的绝对路径。Judging whether the path URL includes a file path symbol, if not, then using the path URL as the absolute path of the external chain file in the service server; if so, performing simplified processing according to the meaning of the file path symbol to obtain The absolute path of the external link file in the business server.

进一步地,上述方法还具有下面特点:所述外链文件包括脚本文件、层叠样式表文件和图像文件中的一种或多种。Further, the above method also has the following feature: the external link file includes one or more of script files, cascading style sheet files and image files.

为了解决上述问题,本发明还提供了一种网页服务器,包括:In order to solve the above problems, the present invention also provides a web server, including:

解析模块,用于接收到访问外链文件的请求后,从所述外链文件在页面中的路径统一资源定位符(URL)中解析出所述外链文件在业务服务器中的绝对路径;The parsing module is configured to parse out the absolute path of the external link file in the business server from the path uniform resource locator (URL) of the external link file on the page after receiving the request for accessing the external link file;

访问处理模块,用于检测是否缓存有所述绝对路径对应的文件数据,若有,则取消所述访问外链文件的请求;若没有,则发起所述访问外链文件的请求。The access processing module is used to detect whether the file data corresponding to the absolute path is cached, and if yes, cancel the request for accessing the external link file; if not, initiate the request for accessing the external link file.

进一步地,上述网页服务器还具有下面特点:还包括:Further, the above-mentioned webpage server also has the following characteristics: it also includes:

下载模块,用于在所述访问处理模块发起所述访问外链文件的请求后,下载所述外链文件对应的文件数据。The download module is configured to download the file data corresponding to the external link file after the access processing module initiates the request for accessing the external link file.

进一步地,上述网页服务器还具有下面特点:还包括:Further, the above-mentioned webpage server also has the following characteristics: it also includes:

缓存模块,用于保存所述绝对路径与所述下载模块下载的文件数据的对应关系。The caching module is used to save the correspondence between the absolute path and the file data downloaded by the download module.

进一步地,上述网页服务器还具有下面特点:Further, the above-mentioned web server also has the following characteristics:

所述解析模块,具体用于接收到访问外链文件的请求后,判断所述路径URL是否包括文件路径符号,若没有,则将所述路径URL作为所述外链文件在业务服务器中的绝对路径;若有,则根据所述文件路径符号的含义进行简化处理得到所述外链文件在业务服务器中的绝对路径。The parsing module is specifically used to judge whether the path URL includes a file path symbol after receiving the request for accessing the external chain file, and if not, use the path URL as the absolute address of the external chain file in the service server. path; if there is, simplifying processing is performed according to the meaning of the file path symbol to obtain the absolute path of the external link file in the service server.

进一步地,上述网页服务器还具有下面特点:所述外链文件包括脚本文件、层叠样式表文件和图像文件中的一种或多种。Further, the above webpage server also has the following feature: the external link files include one or more of script files, cascading style sheet files and image files.

为了解决上述问题,本发明还提供了一种终端,包括:上述的网页服务器。In order to solve the above problem, the present invention also provides a terminal, including: the above webpage server.

综上,本发明提供一种访问网络资源的优化方法、Web浏览器和终端,本发明既能够正确访问到外链文件,并且能实现外联文件路径甄别处理,同一个外链文件即使不同路径可以避免向业务服务器多次请求访问,从而达到节省网络资源和设备本身资源的目的。To sum up, the present invention provides an optimization method for accessing network resources, a Web browser and a terminal. The present invention can not only correctly access external link files, but also realize external link file path screening processing. Even if the same external link file has different paths, It can avoid multiple access requests to the service server, thereby achieving the purpose of saving network resources and device resources.

附图说明Description of drawings

图1为本发明实施例的Web服务器的示意图;Fig. 1 is the schematic diagram of the Web server of the embodiment of the present invention;

图2是本发明的一种访问网络资源的优化方法的流程图;Fig. 2 is a flow chart of an optimization method for accessing network resources of the present invention;

图3是本发明实施例的一种访问网络资源的优化方法的流程图。Fig. 3 is a flow chart of an optimization method for accessing network resources according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

图1为本发明实施例的Web服务器的示意图,如图1所示,本实施例的Web服务器包括:Fig. 1 is the schematic diagram of the Web server of the embodiment of the present invention, as shown in Fig. 1, the Web server of the present embodiment comprises:

解析模块,用于接收到访问外链文件的请求后,从所述外链文件在页面中的路径URL中解析出所述外链文件在业务服务器中的绝对路径;Parsing module, after receiving the request for accessing the external chain file, resolve the absolute path of the external chain file in the service server from the path URL of the external chain file in the page;

访问处理模块,用于检测是否缓存有所述绝对路径对应的文件数据,若有,则取消所述访问外链文件的请求;若没有,则发起所述访问外链文件的请求。The access processing module is used to detect whether the file data corresponding to the absolute path is cached, and if yes, cancel the request for accessing the external link file; if not, initiate the request for accessing the external link file.

其中,所述解析模块接收到访问外链文件的请求后具体用于,判断所述路径URL是否包括文件路径符号,若没有,则将所述路径URL作为所述外链文件在业务服务器中的绝对路径;若有,则根据所述文件路径符号的含义进行简化处理得到所述外链文件在业务服务器中的绝对路径。Wherein, after the parsing module receives the request for accessing the external chain file, it is specifically used to judge whether the path URL includes a file path symbol, and if not, use the path URL as the URL of the external chain file in the service server. Absolute path; if there is, simplify the processing according to the meaning of the file path symbol to obtain the absolute path of the external link file in the service server.

本实施例中,所述Web服务器还可以包括:In this embodiment, the web server may also include:

下载模块,用于在所述访问处理模块发起所述访问外链文件的请求后,下载所述外链文件对应的文件数据。The download module is configured to download the file data corresponding to the external link file after the access processing module initiates the request for accessing the external link file.

缓存模块,用于保存所述绝对路径与所述下载模块下载的文件数据的对应关系。The caching module is used to save the correspondence between the absolute path and the file data downloaded by the download module.

其中,所述外链文件包括脚本文件、层叠样式表文件和图像文件中的一种或多种。Wherein, the external link files include one or more of script files, cascading style sheet files and image files.

本发明还提供一种终端,该终端包括上述的Web服务器。The present invention also provides a terminal, which includes the above-mentioned Web server.

图2是本发明的一种访问网络资源的优化方法的流程图,如图2所示,该方法包括下面步骤:Fig. 2 is a flow chart of an optimization method for accessing network resources of the present invention, as shown in Fig. 2, the method comprises the following steps:

S10、接收到访问外链文件的请求后,从所述外链文件在页面中的路径URL中解析出所述外链文件在业务服务器中的绝对路径;S10. After receiving the request for accessing the external link file, analyze the absolute path of the external link file in the service server from the path URL of the external link file in the page;

S20、检测是否缓存有所述绝对路径对应的文件数据,若有,则取消所述访问外链文件的请求;若没有,则发起所述访问外链文件的请求。S20. Detect whether the file data corresponding to the absolute path is cached, and if yes, cancel the request for accessing the external link file; if not, initiate the request for accessing the external link file.

本发明的方法对于Web页面中具有多路径的外链文件,可以避免向业务服务器发起多次请求,从而造成资源浪费的问题。The method of the present invention can avoid the problem of resource waste caused by initiating multiple requests to the service server for external chain files with multiple paths in the Web page.

本发明实施例重新计算Web浏览器解析外链文件在页面中的路径URL,例如,将路径URL中类似“../”、“./”、“//”等路径符号进行简化计算,计算出来的结果是不包含类似“../”、“./”、“//”等符号的外链文件的绝对路径,以便Web浏览器来进行外链文件相关数据检测。The embodiment of the present invention recalculates the path URL of the external chain file in the page that the Web browser parses, for example, the path symbols such as "../", "./", and "//" in the path URL are simplified and calculated. The result is the absolute path of the external link file that does not contain symbols such as "../", "./", "//", so that the web browser can detect the relevant data of the external link file.

在Web浏览器终端侧引入文件缓存功能,即将已经访问过的外链文件的数据保存起来,此外也保存外链文件数据与该外链文件的绝对路径的映射关系。Introduce the file caching function on the terminal side of the web browser, which saves the data of the external link file that has been accessed, and also saves the mapping relationship between the external link file data and the absolute path of the external link file.

图3是本发明实施例的访问网络资源的优化方法的流程图,如图3所示,包括下面步骤:Fig. 3 is a flowchart of an optimization method for accessing network resources according to an embodiment of the present invention, as shown in Fig. 3 , including the following steps:

步骤101、Web浏览器接收到访问外链文件的请求;Step 101, the web browser receives a request to access an external link file;

步骤102、Web浏览器解析Web页面,从所述外链文件在页面中编码指定的路径URL解析出绝对路径;Step 102, the web browser parses the web page, and resolves the absolute path from the path URL specified by the coded external link file in the page;

具体地,当Web浏览器解析外链文件在页面中定义的路径URL后,判断该路径URL是否存在文件路径符号,如“../”“./”“//”等,如没有上述路径符号,则不需要进行路径简化处理,直接返回路径URL;如果路径包含上述路径符号,则需要根据符号含义进行路径简化处理,处理后的路径URL即为外链文件在业务服务器中的绝对路径。Specifically, after the web browser parses the path URL defined by the external link file on the page, it judges whether there is a file path symbol in the path URL, such as "../", "./", "//", etc., if there is no such path symbol, the path simplification process is not required, and the path URL is returned directly; if the path contains the above path symbols, the path simplification process needs to be performed according to the meaning of the symbol, and the processed path URL is the absolute path of the external link file in the business server.

步骤103、Web浏览器检测绝对路径对应的文件数据是否已经缓存过,如果缓存过,则转向步骤104;如果没有缓存,则转向步骤105;Step 103, the web browser detects whether the file data corresponding to the absolute path has been cached, if cached, then turn to step 104; if not cached, then turn to step 105;

步骤104、直接使用缓存的相关文件数据;Step 104, directly using cached related file data;

步骤105、下载相关文件数据,下载完成后缓存该文件数据,并保存该文件的绝对路径和文件数据的对应关系,以便后续查询。Step 105, download relevant file data, cache the file data after the download is completed, and save the absolute path of the file and the corresponding relationship between the file data for subsequent query.

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the foregoing embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiments may be implemented in the form of hardware, or may be implemented in the form of software function modules. The present invention is not limited to any specific combination of hardware and software.

以上仅为本发明的优选实施例,当然,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。The above are only preferred embodiments of the present invention. Of course, the present invention also has other various embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art can make various Corresponding changes and modifications, but these corresponding changes and modifications should belong to the scope of protection of the appended claims of the present invention.

Claims (10)

1.一种访问网络资源的优化方法,包括:1. An optimization method for accessing network resources, comprising: 接收到访问外链文件的请求后,从所述外链文件在页面中的路径统一资源定位符(URL)中解析出所述外链文件在业务服务器中的绝对路径;After receiving the request for accessing the external link file, parsing the absolute path of the external link file in the service server from the path uniform resource locator (URL) of the external link file in the page; 检测是否缓存有所述绝对路径对应的文件数据,若有,则取消所述访问外链文件的请求;若没有,则发起所述访问外链文件的请求。Detect whether the file data corresponding to the absolute path is cached, and if so, cancel the request for accessing the externally linked file; if not, initiate the request for accessing the externally linked file. 2.如权利要求1所述的方法,其特征在于:所述发起所述访问外链文件的请求之后,还包括:2. The method according to claim 1, characterized in that: after initiating the request for accessing the external link file, further comprising: 下载所述外链文件对应的文件数据,并保存所述绝对路径与下载的文件数据的对应关系。Downloading the file data corresponding to the external link file, and saving the corresponding relationship between the absolute path and the downloaded file data. 3.如权利要求1所述的方法,其特征在于:所述从所述外链文件在页面中的路径URL中解析出所述外链文件在业务服务器中的绝对路径的步骤包括:3. The method according to claim 1, characterized in that: the step of resolving the absolute path of the external chain file in the service server from the path URL of the external chain file in the page comprises: 判断所述路径URL是否包括文件路径符号,若没有,则将所述路径URL作为所述外链文件在业务服务器中的绝对路径;若有,则根据所述文件路径符号的含义进行简化处理得到所述外链文件在业务服务器中的绝对路径。Judging whether the path URL includes a file path symbol, if not, then using the path URL as the absolute path of the external chain file in the service server; if so, performing simplified processing according to the meaning of the file path symbol to obtain The absolute path of the external link file in the business server. 4.如权利要求1-3任一项所述的方法,其特征在于:4. The method according to any one of claims 1-3, characterized in that: 所述外链文件包括脚本文件、层叠样式表文件和图像文件中的一种或多种。The external link files include one or more of script files, cascading style sheet files and image files. 5.一种网页服务器,包括:5. A web server, comprising: 解析模块,用于接收到访问外链文件的请求后,从所述外链文件在页面中的路径统一资源定位符(URL)中解析出所述外链文件在业务服务器中的绝对路径;The parsing module is configured to parse out the absolute path of the external link file in the business server from the path uniform resource locator (URL) of the external link file on the page after receiving the request for accessing the external link file; 访问处理模块,用于检测是否缓存有所述绝对路径对应的文件数据,若有,则取消所述访问外链文件的请求;若没有,则发起所述访问外链文件的请求。The access processing module is used to detect whether the file data corresponding to the absolute path is cached, and if yes, cancel the request for accessing the external link file; if not, initiate the request for accessing the external link file. 6.如权利要求5所述的网页服务器,其特征在于:所述网页服务器还包括:6. The webpage server according to claim 5, characterized in that: the webpage server further comprises: 下载模块,用于在所述访问处理模块发起所述访问外链文件的请求后,下载所述外链文件对应的文件数据。The download module is configured to download the file data corresponding to the external link file after the access processing module initiates the request for accessing the external link file. 7.如权利要求6所述的网页服务器,其特征在于:所述网页服务器还包括:7. The webpage server according to claim 6, characterized in that: the webpage server further comprises: 缓存模块,用于保存所述绝对路径与所述下载模块下载的文件数据的对应关系。The caching module is used to save the correspondence between the absolute path and the file data downloaded by the download module. 8.如权利要求5所述的网页服务器,其特征在于:8. The web server according to claim 5, characterized in that: 所述解析模块,具体用于接收到访问外链文件的请求后,判断所述路径URL是否包括文件路径符号,若没有,则将所述路径URL作为所述外链文件在业务服务器中的绝对路径;若有,则根据所述文件路径符号的含义进行简化处理得到所述外链文件在业务服务器中的绝对路径。The parsing module is specifically used to judge whether the path URL includes a file path symbol after receiving the request for accessing the external chain file, and if not, use the path URL as the absolute address of the external chain file in the service server. path; if there is, simplifying processing is performed according to the meaning of the file path symbol to obtain the absolute path of the external link file in the service server. 9.如权利要求5-8任一项所述的网页服务器,其特征在于:9. The web server according to any one of claims 5-8, characterized in that: 所述外链文件包括脚本文件、层叠样式表文件和图像文件中的一种或多种。The external link files include one or more of script files, cascading style sheet files and image files. 10.一种终端,包括:如权利要求5-9任一项所述的网页服务器。10. A terminal, comprising: the webpage server according to any one of claims 5-9.
CN2011101606547A 2011-06-15 2011-06-15 Network resource access optimizing method, Web page browser and terminal Pending CN102214224A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2011101606547A CN102214224A (en) 2011-06-15 2011-06-15 Network resource access optimizing method, Web page browser and terminal
PCT/CN2012/073216 WO2012171391A1 (en) 2011-06-15 2012-03-29 Network resource access optimization method, web browser, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101606547A CN102214224A (en) 2011-06-15 2011-06-15 Network resource access optimizing method, Web page browser and terminal

Publications (1)

Publication Number Publication Date
CN102214224A true CN102214224A (en) 2011-10-12

Family

ID=44745532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101606547A Pending CN102214224A (en) 2011-06-15 2011-06-15 Network resource access optimizing method, Web page browser and terminal

Country Status (2)

Country Link
CN (1) CN102214224A (en)
WO (1) WO2012171391A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081633A (en) * 2009-11-27 2011-06-01 阿里巴巴集团控股有限公司 JavaScript file management method, device and system
WO2012171391A1 (en) * 2011-06-15 2012-12-20 中兴通讯股份有限公司 Network resource access optimization method, web browser, and terminal
CN103294718A (en) * 2012-02-29 2013-09-11 腾讯科技(深圳)有限公司 Method and device for web page cache management
CN103391285A (en) * 2013-07-03 2013-11-13 杭州华三通信技术有限公司 Web access optimization device and method
CN103795690A (en) * 2012-10-31 2014-05-14 华为技术有限公司 Cloud access control method, proxy server, and cloud access control system
CN104348803A (en) * 2013-07-31 2015-02-11 深圳市腾讯计算机系统有限公司 Link hijacking detecting method and device, user equipment, analysis server and link hijacking detecting system
CN103763340B (en) * 2013-12-24 2017-07-04 新华三技术有限公司 A kind of apparatus and method of web access optimization
CN107239475A (en) * 2016-03-29 2017-10-10 阿里巴巴集团控股有限公司 One kind calls document method and device
CN107704464A (en) * 2016-08-08 2018-02-16 北京国双科技有限公司 Parse the method and device in the path of static resource

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255007A1 (en) * 2001-08-03 2004-12-16 Juha Salo Method, system and terminal for data networks with distributed caches
KR100644547B1 (en) * 2005-11-03 2006-11-10 엘지전자 주식회사 Hypertext data caching method of mobile communication terminal and mobile communication terminal for same
CN101719936A (en) * 2009-12-09 2010-06-02 成都市华为赛门铁克科技有限公司 Method, device and cache system for providing file downloading service
CN102214224A (en) * 2011-06-15 2011-10-12 中兴通讯股份有限公司 Network resource access optimizing method, Web page browser and terminal

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081633A (en) * 2009-11-27 2011-06-01 阿里巴巴集团控股有限公司 JavaScript file management method, device and system
WO2012171391A1 (en) * 2011-06-15 2012-12-20 中兴通讯股份有限公司 Network resource access optimization method, web browser, and terminal
CN103294718A (en) * 2012-02-29 2013-09-11 腾讯科技(深圳)有限公司 Method and device for web page cache management
CN103795690A (en) * 2012-10-31 2014-05-14 华为技术有限公司 Cloud access control method, proxy server, and cloud access control system
CN103391285B (en) * 2013-07-03 2016-12-28 杭州华三通信技术有限公司 The apparatus and method that a kind of web access optimizes
CN103391285A (en) * 2013-07-03 2013-11-13 杭州华三通信技术有限公司 Web access optimization device and method
CN104348803A (en) * 2013-07-31 2015-02-11 深圳市腾讯计算机系统有限公司 Link hijacking detecting method and device, user equipment, analysis server and link hijacking detecting system
CN104348803B (en) * 2013-07-31 2018-12-11 深圳市腾讯计算机系统有限公司 Link kidnaps detection method, device, user equipment, Analysis server and system
CN103763340B (en) * 2013-12-24 2017-07-04 新华三技术有限公司 A kind of apparatus and method of web access optimization
CN107239475A (en) * 2016-03-29 2017-10-10 阿里巴巴集团控股有限公司 One kind calls document method and device
CN107239475B (en) * 2016-03-29 2020-09-18 阿里巴巴集团控股有限公司 File calling method and device
CN107704464A (en) * 2016-08-08 2018-02-16 北京国双科技有限公司 Parse the method and device in the path of static resource
CN107704464B (en) * 2016-08-08 2021-05-07 北京国双科技有限公司 Method and device for analyzing path of static resource

Also Published As

Publication number Publication date
WO2012171391A1 (en) 2012-12-20

Similar Documents

Publication Publication Date Title
CN102214224A (en) Network resource access optimizing method, Web page browser and terminal
CN103605688B (en) Intercept method and intercept device for homepage advertisements and browser
CN101477535B (en) Web page display method, request processing method, apparatus and system
US10015226B2 (en) Methods for making AJAX web applications bookmarkable and crawlable and devices thereof
WO2016173200A1 (en) Malicious website detection method and system
CN110647699A (en) Web page rendering method, apparatus, computer equipment and storage medium
CN104063401B (en) Method and device for merging web page style addresses
CN103500194A (en) Method, device and browser for loading webpage
CN102932197A (en) Testing method and system
CN105095280A (en) Caching method and apparatus for browser
CN108416021B (en) Browser webpage content processing method and device, electronic equipment and readable medium
CN103631905A (en) Webpage loading method and browser
US9984052B2 (en) Verifying content of resources in markup language documents
CN102346738A (en) Customized web page processing device and method
CN106446299A (en) Website information downloading method and device
US9727643B2 (en) Managing loading of web pages
CN104980464B (en) A kind of network request processing method, network server and network system
CN105138452A (en) Terminal system based browser performance automatic testing method
CN103347069A (en) Method and device for realizing network access
CN105808727A (en) Website cross-screen adaptation technology architecture and adaptation method based on HTML5 (Hypertext Markup Language 5)
CN103139298B (en) Method for transmitting network data and device
CN102694802B (en) Network access information recording method and device
US9516111B2 (en) Communication apparatus, communication method, and computer program product
CN110020076B (en) Method and device for crawling webpage data
CN102567404A (en) Method and device for wireless application protocol (WAP) website online webpage conversion

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111012

WD01 Invention patent application deemed withdrawn after publication