WO2015154681A1 - Link address generation method, device, and server - Google Patents

Link address generation method, device, and server Download PDF

Info

Publication number
WO2015154681A1
WO2015154681A1 PCT/CN2015/076113 CN2015076113W WO2015154681A1 WO 2015154681 A1 WO2015154681 A1 WO 2015154681A1 CN 2015076113 W CN2015076113 W CN 2015076113W WO 2015154681 A1 WO2015154681 A1 WO 2015154681A1
Authority
WO
WIPO (PCT)
Prior art keywords
link address
link
files
file
file name
Prior art date
Application number
PCT/CN2015/076113
Other languages
French (fr)
Chinese (zh)
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 WO2015154681A1 publication Critical patent/WO2015154681A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to the field of computers and the Internet, and more particularly to a network content providing technology in a network.
  • Internet information is typically stored on servers that are linked to the network, and users can access these servers to obtain information.
  • Some websites are also gaining more and more traffic. For example, some websites even have tens of millions of page views or even hundreds of millions of pages. Therefore, any optimization of these pages can help users quickly obtain web page information and improve website performance. When the website visits are huge, This optimization is especially necessary.
  • the present invention has been made in order to provide a link address generating method, apparatus and server that overcome the above problems or at least partially solve or alleviate the above problems.
  • the present invention provides a new solution in an effort to solve or at least alleviate the above problems.
  • a link address generating device for generating a link address according to a plurality of files, the link address generating device comprising: a file name acquirer adapted to acquire each of the plurality of files File name; name processor, suitable for obtaining a common portion and a different portion of the file names of the plurality of files; and a link generator adapted to combine different portions of the plurality of files into the first portion of the link and connect the common portion and the first portion to generate the link address.
  • a link address generation method for generating a link address according to a plurality of files, the method comprising the steps of: acquiring each file name in a plurality of files; acquiring a plurality of files a common part and a different part of the file name; and combining different parts of the plurality of files into the first part of the link, and connecting the common part and the first part to generate a link address.
  • a network server including a link address generating device according to the present invention, to generate a return link address generating device upon receiving a request from a client that is in communication with the web server The link address so that the client can get multiple files from that link address.
  • a computer program comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform according to one aspect of the present invention The method of generating the link address described.
  • a computer readable medium wherein the computer program as described in still another aspect of the present invention is stored.
  • file names of a plurality of files can be combined and provided to a client according to a predetermined rule.
  • the client initiates a request to the link address
  • multiple files corresponding to the link address can be obtained, thereby greatly reducing the number of file requests between the client and the server, reducing the time for the client to render the webpage, and improving the time.
  • the processing power of the server is greatly reducing the number of file requests between the client and the server, reducing the time for the client to render the webpage, and improving the time.
  • FIG. 1 shows a schematic diagram of a network system in accordance with one embodiment of the present invention
  • FIG. 2 shows a schematic diagram of a link address generating device in accordance with one embodiment of the present invention
  • FIG. 3 is a schematic flowchart diagram of a link address generation method according to an embodiment of the present invention.
  • FIG. 4 is a block diagram schematically showing a computing device for performing a link address generation method according to the present invention
  • Fig. 5 schematically shows a storage unit for holding or carrying program code implementing the link address generation method according to the present invention.
  • FIG. 1 shows a schematic diagram of a network system in accordance with one embodiment of the present invention.
  • FIG. 1 shows a schematic diagram of a network system 100 in accordance with one embodiment of the present invention.
  • the network system 100 includes a plurality of clients 110, 120, and 130, and a web server 140 and a file server 150 that provide various contents for these clients. These devices communicate with each other via the internet.
  • clients 110-130 may be any device in the art that can present network information (eg, web pages and associated files (eg, CSS files, JS files, multimedia files, etc.)) acquired from server 140, including but Not limited to desktop computers, notebook computers, personal digital assistants, smart mobile terminals, tablets, and the like.
  • the client 110-130 typically runs a modern operating system that utilizes the operating system to manage hardware resources in the client.
  • a web browser is typically run on the client 110 for presenting web pages retrieved from the servers 140 and/or 150 and associated data (eg, images, audio and video referenced in the web pages, etc.).
  • the web server 140 returns the requested network information to the client 110 at the request of the client 110.
  • Network information is typically web pages and various files referenced in the page, such as image files, multimedia files such as audio and/or video files, and web page related files such as CSS files and JS files.
  • the client 110 will then download the file referenced from the web page and/or download the file referenced from the web page file while parsing and presenting the information in the web page file.
  • the link address generating device 200 is included in the web server 140.
  • the link address generating device 200 When the web server 140 receives the request of the client 110 for a certain webpage, the link address generating device 200 generates a corresponding link address for the plurality of webpage related files (for example, CSS files, etc.) referenced in the webpage.
  • Client 110 When the webpage is published, the plurality of webpage related files referenced in the webpage have been uploaded to the file server 150.
  • the client 110 sends a request to the file server 150 according to the link address, and the file server parses the request. And obtaining corresponding plurality of webpage related files and sending the files to the client 110 at one time.
  • FIG. 2 shows a schematic diagram of a link address generation device 200 in accordance with one embodiment.
  • the link address generating device is included in the web server 140 and is adapted to generate a link address based on a plurality of web page related files in a web page.
  • the link address generating apparatus 200 includes a file name acquirer 210, a file name processor 220, and a link generator 230.
  • the file name acquirer 210 acquires the file name of each of a plurality of web page related files to which a link address is to be generated.
  • the web server 140 transmits a plurality of file information for generating a link address to the link address generating device 200.
  • the link address generating device 200 may also obtain information of the web page related files from the web pages to be processed, and obtain the file names of the web page related files by the file name acquirer 210.
  • the web server 140 transmits the file information to be used to generate the link address to the link address generating device 200 in the following manner:
  • the file name acquirer 210 obtains three files and corresponding file names "/static/js/jquery-1.6.2.min.js", “/static/js/qtool.js”, and "js/search”. .js”.
  • the file name acquirer 210 also needs to determine whether the obtained file name is an absolute file name or a relative file name.
  • the absolute file name includes the full file directory structure starting from the root directory, while the relative file name only includes part of the file directory structure starting from the current directory. In general, the root directory begins with the symbol "/”. Therefore, In the file name obtained above, "/static/js/jquery-1.6.2.min.js” and “/static/js/qtool.js" are absolute file names, and "js/search.js" is relative. file name.
  • the file name acquirer 210 acquires the relative file name, it needs to convert it to an absolute file name.
  • the file name acquirer 210 determines the current directory location of the web page including the web page related files, and newly combines the current directory location and the relative file name to generate an absolute file name.
  • the filename getter 210 converts the relative filename "js/search.js” to an absolute filename "/static/js/search.js ".
  • the file name acquirer 210 does not acquire the file name of the file, and instead, the file name acquirer 210 generates a link to the URL. Apply without other processing.
  • the name processor 220 processes the respective file names acquired by the file name acquirer 210, and acquires common parts and different parts in the respective file names. Since web page related files are usually in the same directory, the file names of these files usually have the same public part.
  • the name processor 220 treats each file name acquired by the file name acquirer 210 as a character string, and starts from the beginning of the character string, and uses various algorithms such as a greedy algorithm to obtain the same common part in each file name, and Get other parts at the same time. Taking the above example as an example, the common part of each file name is "/static/js/".
  • the different parts are "jquery-1.6.2.min.js", "qtool.js" and "search.js".
  • the link generator 230 receives the common portion acquired by the name processor 220 and different portions of the respective files. The link generator 230 first combines the various different parts to obtain the first part of the link, and then combines the common part and the first part of the link to generate the link address.
  • the link generator 230 may combine the common portion and the first portion of the link with the symbol "/". While the first portion of the link is being generated, the link generator 230 can use the symbol ",” to combine different portions of the respective file names.
  • the link generator 230 may replace the symbol "/" in the common portion with other symbols (eg, the symbol ";”) other than the symbol "/" before combining the various portions.
  • the public part "/static/js/" above will be converted to ";sttic;js;”. Taking the above example as an example, the combined link address is:
  • the link generator 230 may extract the file suffix name, and when the different portions of the files are combined to generate the first portion of the link, the suffix is not The names are combined, but after the first part of the link is generated, the file suffix is combined at the end of the link address when the parts are combined. Taking the above example as an example, the generated link address at this time is:
  • the link address generated in this way contains fewer characters, so it can be transferred between the client and the server faster, which is very meaningful for websites with a large number of user visits. .
  • each web page belongs to one of the web applications.
  • Each web application has its own separate directory structure, for example the root directory location of each web application is different.
  • Each web application is identified by its namespace, and the link generator 230 further connects the namespace when generating the link address.
  • the link address generator 230 can connect to the namespace before the public portion.
  • the link address generating device 200 further includes a version calculator 240.
  • the version calculator 240 calculates the current version of the web application.
  • the version calculator 240 can calculate the current version of the web application in a plurality of ways, one way is to obtain all the contents of each text file in the web application, and then calculate a hash value such as MD5 based on the obtained content, and adopt the The hash value is the current version of the web application.
  • the version calculator 240 will maintain the last version information of the web application, and then the version calculator 240 will update the version information and save it when the content of the web application changes.
  • the link generator 230 further combines the current version information, such as the current version number, and other portions to generate a link address. According to one implementation, the link generator 230 combines the version information with the file suffix name to provide the client 110 with a plausible link address. Taking the above example as an example, the link address generated at this time is:
  • the "456efab43" is the version information.
  • the web server 140 publishes the related webpage related file to a file server 150, so that when the client 110 parses the webpage and obtains the link address, A web page related file corresponding to the link address is acquired from the file server 150.
  • the link generator 230 also combines the domain names corresponding to the file server 150 into the link address. Since there may be more than one file server 150, the link generator 230 needs to select one of the file servers 150 as a web page related file publishing target, and combine the domain names of the file server 150 into the link address.
  • the generated link address at this time is:
  • the domain name of the file server 150 is "s0.qhimg.com".
  • a plurality of link addresses corresponding to a plurality of web page related files can be combined into one link address.
  • the combination of the plurality of webpage related files can be acquired from the file server 150 of the webpage related file publishing destination at one time, thereby reducing the number of file transfers between the client 110 and the file server 150. The efficiency of the client 110 to acquire and parse the webpage is improved.
  • FIG. 3 is a flow chart showing a method for generating a link address 300 according to another embodiment of the present invention.
  • the method 300 is adapted to be executed in the web server 140 shown in FIG. 2, and is particularly adapted to be executed in the link address generating device 200 to generate a link address from a plurality of files.
  • the method 300 begins at step S310.
  • step S310 the file name of each of the plurality of webpage related files for which a link address is to be generated is acquired.
  • the web server 140 utilizes the method 300 to process a plurality of file information that generates a link address.
  • the web server 140 may also obtain information about the webpage related files from the webpage to be processed, and obtain the file names of the webpage related files in step S310.
  • web server 140 sends the file information to be used to generate the link address to method 300 for processing in the following manner:
  • step S310 three files and corresponding file names "/static/js/jquery-1.6.2.min.js", “/static/js/qtool.js” and "js/search.” are obtained. Js”.
  • step S310 after obtaining each file name, it is also required to determine whether the obtained file name is an absolute file name or a relative file name.
  • the absolute file name includes the full file directory structure starting from the root directory, while the relative file name only includes part of the file directory structure starting from the current directory.
  • the root directory begins with the symbol "/”. Therefore, in the file name obtained above, "/static/js/jquery-1.6.2.min.js” and “/static/js/qtool.js" are absolute file names, and "js/search.js" For relative file names.
  • the relative file name is acquired in step S310, it needs to be converted into an absolute file name.
  • step S310 the current directory location of the web page including the webpage related files is determined, and the current directory location and the relative file name are newly combined to generate an absolute file name.
  • the relative file name "js/search.js” is converted to the absolute file name "/static/js/search.js” in step S310. ".
  • step S310 when the file provided to the method 300 for processing is a URL link to another server, in step S310, the file name of the file is not obtained, and instead, the application to the URL link is generated without other deal with.
  • step S320 the respective file names acquired in step S310 are processed to acquire the common portion and the different portions in the respective file names. Since web page related files are usually in the same directory, the file names of these files usually have the same public part.
  • each file name acquired in step S310 is treated as a character string, starting from the beginning of the character string, and using various algorithms such as a greedy algorithm to obtain the same common part in each file name, and simultaneously Get the other parts. Taking the above example as an example, the common part of each file name is "/static/js/". The different parts are "jquery-1.6.2.min.js", "qtool.js" and "search.js".
  • step S330 the public part and each acquired in step S320 are received. Different parts of the file.
  • step S330 the different portions are first combined to obtain the first portion of the link, and then the common portion and the first portion of the link are combined to generate a link address.
  • the common portion and the first portion of the link may be combined with the symbol "/". While the first part of the link is being generated, the symbol ",” can be used to combine different parts of each file name.
  • the symbols "/" in the common portion may be replaced with other symbols (eg, the symbol ";”) other than the symbol "/" before combining the various portions.
  • the public part "/static/js/" above will be converted to ";sttic;js;”. Taking the above example as an example, the combined link address is:
  • the file suffix name may be extracted in step S330, and the suffix names are not combined when different parts of the files are combined to generate the first part of the link. Instead, after the first part of the link is generated, the file suffix name is combined at the end of the link address when the parts are combined. Taking the above example as an example, the generated link address at this time is:
  • the link address generated in this way contains fewer characters, so it can be transferred between the client and the server faster, which is very meaningful for websites with a large number of user visits. .
  • each web page belongs to one of the web applications.
  • Each web application has its own separate directory structure, for example the root directory location of each web application is different.
  • Each network application uses its namespace as an identifier, and when the link address is generated in step S330, the namespace is further connected. For example, the namespace can be connected before the public part.
  • step S340 calculating the current version of the web application this.
  • the current version of the web application can be calculated in a plurality of ways. One way is to obtain all the contents of each text file in the web application, and then calculate a hash value such as MD5 based on the obtained content, and use the hash value as the hash value.
  • the current version of the web application is Another way is to keep the last version information of the web application, and then update the version information and save it when the content of the web application changes.
  • step S330 the current version information, such as the current version number and other parts, are further combined to generate a link address.
  • the version information is combined with the file suffix name to provide the client 110 with a plausible link address.
  • the link address generated at this time is:
  • the "456efab43" is the version information.
  • the web server 140 publishes the related webpage related file to a file server 150, so that when the client 110 parses the webpage and obtains the link address, A web page related file corresponding to the link address is acquired from the file server 150.
  • the domain name corresponding to the file server 150 is also combined into the link address. Since there may be more than one file server 150, it is necessary to select one of the file servers 150 as a web page related file publishing target, and combine the domain names of the file server 150 into the link address.
  • the generated link address at this time is:
  • the domain name of the file server 150 is "s0.qhimg.com".
  • a plurality of link addresses corresponding to a plurality of web page related files can be combined into one link address.
  • the combination of the plurality of webpage related files can be acquired from the file server 150 of the webpage related file publishing destination at one time, thereby reducing the number of file transfers between the client 110 and the file server 150.
  • the efficiency of the client 110 to acquire and parse the webpage is improved.
  • 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.
  • Those skilled in the art will appreciate that some or all of the functionality of some or all of the components of the linked address generation device in accordance with embodiments of the present invention may be implemented in practice using a microprocessor or digital signal processor (DSP).
  • DSP digital signal processor
  • 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 can be downloaded from the Internet website or provided on the carrier signal. Or in any other form.
  • Figure 4 illustrates a computing device that can implement a link address generation method in accordance with the present invention.
  • the computing device conventionally includes a processor 410 and a computer program product or computer readable medium in the form of a memory 420.
  • the memory 420 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 420 has a memory space 430 for program code 431 for performing any of the method steps described above.
  • storage space 430 for program code may include various program code 431 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.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units as described with reference to FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 420 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 431', ie, code readable by a processor, such as 410, that when executed by a computing device causes the computing device to perform each of the methods described above step.

Abstract

Provided are a link address generation method, device, and server. The link address generation device (200) is used for generating a link address according to a plurality of files, the link address generation device (200) comprising: a file name acquisition device (210), suitable for acquiring the file name of each one of a plurality of files; a name processor (220), suitable for acquiring the common parts and different parts of the file names of the plurality of files; a link generator (230), suitable for combining the different parts of the plurality of files into the first part of a link, and connecting the common parts and the first part to generate a link address. Also disclosed are a corresponding link address generation method and a corresponding network server (140).

Description

一种链接地址生成方法、设备和服务器Link address generation method, device and server 技术领域Technical field
本发明涉及计算机和互联网领域,尤其涉及在网络中的网络内容提供技术。The present invention relates to the field of computers and the Internet, and more particularly to a network content providing technology in a network.
背景技术Background technique
随着互联网络和计算机的普及,越来越多的用户通过互联网来获取信息。互联网的信息一般存储在链接到网络中的服务器上,用户可以访问这些服务器来获取信息。一些网站的访问量也越来越大。例如某些网站的页面浏览量甚至达到了数千万次甚至上亿的级别,因此,对这些页面的任何优化都有助于用户快速获得网页信息以及提高网站性能,当网站访问量巨大时,这种优化就显得尤其有必要。With the popularity of the Internet and computers, more and more users access information through the Internet. Internet information is typically stored on servers that are linked to the network, and users can access these servers to obtain information. Some websites are also gaining more and more traffic. For example, some websites even have tens of millions of page views or even hundreds of millions of pages. Therefore, any optimization of these pages can help users quickly obtain web page information and improve website performance. When the website visits are huge, This optimization is especially necessary.
随着网络技术的发展,用户获取的信息也越来越丰富。现在的网络页面与用户的交互性以及可阅读性也越来越好。例如,在网页中,会采用大量的CSS文件等网页相关文件来定义页面的显示方式以及与用户的交互方式等。当一个网页中包括多个网页相关文件时,客户端在获得该网页并且进行呈现时,会向网站发起多次请求来分别请求多个网页相关文件。由于建立网络请求会消耗较多的时间和负载,因此,这种请求的次数越少越好。With the development of network technology, the information acquired by users is becoming more and more abundant. Today's web pages are becoming more interactive and readable with users. For example, in a webpage, a large number of webpage related files such as CSS files are used to define how the page is displayed and how it interacts with the user. When a webpage includes a plurality of webpage related files, when the client obtains the webpage and presents the webpage, the client may initiate multiple requests to the webpage to request a plurality of webpage related files respectively. Since establishing a network request consumes more time and load, the fewer the number of such requests, the better.
因此,需要一种能够对网页进行优化以便降低服务器负载并提高客户端处理网页的效率的新方案。Therefore, there is a need for a new solution that can optimize web pages to reduce server load and improve the efficiency of the client processing web pages.
发明内容Summary of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决或者减缓上述问题的链接地址生成方法、设备和服务器。In view of the above problems, the present invention has been made in order to provide a link address generating method, apparatus and server that overcome the above problems or at least partially solve or alleviate the above problems.
为此,本发明提供一种新的方案以力图解决或者至少缓解上面存在的问题。To this end, the present invention provides a new solution in an effort to solve or at least alleviate the above problems.
根据本发明的一个方面,提供了一种链接地址生成设备,用于根据多个文件来生成一个链接地址,该链接地址生成设备包括:文件名获取器,适于获取多个文件中的每个文件名;名称处理器,适于获取 多个文件的文件名中的公共部分和不同部分;以及链接生成器,适于将多个文件的不同部分组合为链接的第一部分,并连接公共部分和第一部分以生成链接地址。According to an aspect of the present invention, a link address generating device is provided for generating a link address according to a plurality of files, the link address generating device comprising: a file name acquirer adapted to acquire each of the plurality of files File name; name processor, suitable for obtaining a common portion and a different portion of the file names of the plurality of files; and a link generator adapted to combine different portions of the plurality of files into the first portion of the link and connect the common portion and the first portion to generate the link address.
根据本发明的另一个方面,提供了一种链接地址生成方法,用于根据多个文件来生成一个链接地址,该方法包括步骤:获取多个文件中的每个文件名;获取多个文件的文件名中的公共部分和不同部分;以及将多个文件的不同部分组合为链接的第一部分,并连接公共部分和第一部分以生成链接地址。According to another aspect of the present invention, a link address generation method is provided for generating a link address according to a plurality of files, the method comprising the steps of: acquiring each file name in a plurality of files; acquiring a plurality of files a common part and a different part of the file name; and combining different parts of the plurality of files into the first part of the link, and connecting the common part and the first part to generate a link address.
根据本发明的还一个方面,提供了一种网络服务器,该网络服务器包括根据本发明的链接地址生成设备,以便在接收到与该网络服务器通信链接的客户端的请求时,返回链接地址生成设备生成的链接地址,以便客户端可以从该链接地址获取多个文件。According to still another aspect of the present invention, there is provided a network server including a link address generating device according to the present invention, to generate a return link address generating device upon receiving a request from a client that is in communication with the web server The link address so that the client can get multiple files from that link address.
根据本发明的又一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据本发明的一个方面所提供的所述的链接地址生成方法。According to still another aspect of the present invention, a computer program is provided, comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform according to one aspect of the present invention The method of generating the link address described.
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了如本发明的又一个方面所提供的所述的计算机程序。According to still another aspect of the present invention, a computer readable medium is provided, wherein the computer program as described in still another aspect of the present invention is stored.
根据本发明提供的方案,可以将多个文件的文件名根据预定规则组合成一个链接地址提供给客户端。客户端发起到该链接地址的一个请求,就可以获得该链接地址对应的多个文件,从而大大降低了客户端和服务器之间的文件请求次数,减少了客户端呈现网页的时间,同时提高了服务器的处理能力。According to the solution provided by the present invention, file names of a plurality of files can be combined and provided to a client according to a predetermined rule. When the client initiates a request to the link address, multiple files corresponding to the link address can be obtained, thereby greatly reducing the number of file requests between the client and the server, reducing the time for the client to render the webpage, and improving the time. The processing power of the server.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用 相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. And throughout the drawings, The same reference symbols indicate the same parts. In the drawing:
图1示出了根据本发明一个实施例的网络系统的示意图;1 shows a schematic diagram of a network system in accordance with one embodiment of the present invention;
图2示出了根据本发明一个实施例的链接地址生成设备的示意图;2 shows a schematic diagram of a link address generating device in accordance with one embodiment of the present invention;
图3示出了根据本发明一个实施例的链接地址生成方法的流程示意图;FIG. 3 is a schematic flowchart diagram of a link address generation method according to an embodiment of the present invention; FIG.
图4示意性地示出了用于执行根据本发明的链接地址生成方法的计算设备的框图;以及4 is a block diagram schematically showing a computing device for performing a link address generation method according to the present invention;
图5示意性地示出了用于保持或者携带实现根据本发明的链接地址生成方法的程序代码的存储单元。Fig. 5 schematically shows a storage unit for holding or carrying program code implementing the link address generation method according to the present invention.
具体实施方式detailed description
下面结合附图和具体的实施方式对本发明作进一步的描述。The invention is further described below in conjunction with the drawings and specific embodiments.
图1示出了根据本发明一个实施例的网络系统的示意图。图1示出了根据本发明一个实施例的网络系统100的示意图。如图1所示,网络系统100包括多个客户端110、120和130,为这些客户端提供各种内容的网络服务器140和文件服务器150。这些设备经由互联网络而相互通信。FIG. 1 shows a schematic diagram of a network system in accordance with one embodiment of the present invention. FIG. 1 shows a schematic diagram of a network system 100 in accordance with one embodiment of the present invention. As shown in FIG. 1, the network system 100 includes a plurality of clients 110, 120, and 130, and a web server 140 and a file server 150 that provide various contents for these clients. These devices communicate with each other via the internet.
在下文中将以客户端110为例来指示所有的客户端。在本发明中,客户端110-130可以是本领域任何可以呈现从服务器140获取的网络信息(例如网页以及相关联的文件(例如CSS文件,JS文件和多媒体文件等))的设备,包括但不限于桌面型计算机、笔记本式计算机、个人数字助理、智能移动终端、平板电脑等。客户端110-130中通常运行现代的操作系统,利用操作系统来管理客户端中的硬件资源。客户端110上通常运行有网页浏览器,用于呈现从服务器140和/或150获取的网页以及相关联的数据(例如网页中引用的图像,音频和视频等)。In the following, the client 110 will be taken as an example to indicate all clients. In the present invention, clients 110-130 may be any device in the art that can present network information (eg, web pages and associated files (eg, CSS files, JS files, multimedia files, etc.)) acquired from server 140, including but Not limited to desktop computers, notebook computers, personal digital assistants, smart mobile terminals, tablets, and the like. The client 110-130 typically runs a modern operating system that utilizes the operating system to manage hardware resources in the client. A web browser is typically run on the client 110 for presenting web pages retrieved from the servers 140 and/or 150 and associated data (eg, images, audio and video referenced in the web pages, etc.).
网络服务器140应客户端110的请求而将所请求的网络信息返回客户端110。网络信息通常为网页页面以及在页面中引用的各种文件,例如图像文件,音频和/或视频文件等多媒体文件,以及诸如CSS文件和JS文件之类的网页相关文件。在实践中,当客户端110从服务器140请求了网页文件之后,客户端110在解析并呈现该网页文件中的信息时,会随后从服务器140和/或下载网页文件中所引用的文件。 The web server 140 returns the requested network information to the client 110 at the request of the client 110. Network information is typically web pages and various files referenced in the page, such as image files, multimedia files such as audio and/or video files, and web page related files such as CSS files and JS files. In practice, after the client 110 requests a web page file from the server 140, the client 110 will then download the file referenced from the web page and/or download the file referenced from the web page file while parsing and presenting the information in the web page file.
网络服务器140中包括链接地址生成设备200。当网络服务器140接收到客户端110对某个网页的请求时,对于该网页中引用的多个网页相关文件(例如,CSS文件等),链接地址生成设备200会生成相应的链接地址并提供给客户端110。在发布网页时,已经将网页中引用的多个网页相关文件上传到了文件服务器150,客户端110在解析该网页时,会根据该链接地址将请求发送给文件服务器150,文件服务器解析该请求,并获取相对应的多个网页相关文件并一次将这些文件都发送给客户端110。The link address generating device 200 is included in the web server 140. When the web server 140 receives the request of the client 110 for a certain webpage, the link address generating device 200 generates a corresponding link address for the plurality of webpage related files (for example, CSS files, etc.) referenced in the webpage. Client 110. When the webpage is published, the plurality of webpage related files referenced in the webpage have been uploaded to the file server 150. When parsing the webpage, the client 110 sends a request to the file server 150 according to the link address, and the file server parses the request. And obtaining corresponding plurality of webpage related files and sending the files to the client 110 at one time.
图2示出了根据一个实施例的链接地址生成设备200的示意图。链接地址生成设备包含在网络服务器140中,并适于根据某个网页中的多个网页相关文件而生成一个链接地址。如图2所示,链接地址生成设备200包括文件名获取器210、文件名处理器220和链接生成器230。FIG. 2 shows a schematic diagram of a link address generation device 200 in accordance with one embodiment. The link address generating device is included in the web server 140 and is adapted to generate a link address based on a plurality of web page related files in a web page. As shown in FIG. 2, the link address generating apparatus 200 includes a file name acquirer 210, a file name processor 220, and a link generator 230.
文件名获取器210获取要生成一个链接地址的多个网页相关文件中每个文件的文件名。网络服务器140会将用于生成链接地址的多个文件信息发送给链接地址生成设备200。可选地,链接地址生成设备200也可以从要处理的网页中获取这些网页相关文件的信息,并且由文件名获取器210来获得这些网页相关文件的文件名。The file name acquirer 210 acquires the file name of each of a plurality of web page related files to which a link address is to be generated. The web server 140 transmits a plurality of file information for generating a link address to the link address generating device 200. Alternatively, the link address generating device 200 may also obtain information of the web page related files from the web pages to be processed, and obtain the file names of the web page related files by the file name acquirer 210.
例如,网络服务器140会以下面的方式将要用于生成链接地址的文件信息发送给链接地址生成设备200:For example, the web server 140 transmits the file information to be used to generate the link address to the link address generating device 200 in the following manner:
Figure PCTCN2015076113-appb-000001
Figure PCTCN2015076113-appb-000001
文件名获取器210会获取到其中的三个文件以及对应的文件名“/static/js/jquery-1.6.2.min.js”、“/static/js/qtool.js”和“js/search.js”。The file name acquirer 210 obtains three files and corresponding file names "/static/js/jquery-1.6.2.min.js", "/static/js/qtool.js", and "js/search". .js".
可选地,文件名获取器210在获取到各个文件名之后,还需要判断所获得的文件名为绝对文件名还是相对文件名。绝对文件名包括从根目录开始的完整文件目录结构,而相对文件名仅仅包括从当前目录开始的部分文件目录结构。一般而言,根目录用符号“/”开始。因此, 在上面获取的文件名中,“/static/js/jquery-1.6.2.min.js”和“/static/js/qtool.js”为绝对文件名,而“js/search.js”为相对文件名。文件名获取器210在获取到相对文件名时,需要将其转换为绝对文件名。为此,文件名获取器210会判断包括这些网页相关文件的网页的当前目录位置,并将该当前目录位置和相对文件名新组合以生成绝对文件名。在上面的例子中,假定网页的当前目录位置为“/static”,则文件名获取器210会将相对文件名“js/search.js”转换为绝对文件名“/static/js/search.js”。Optionally, after obtaining the respective file names, the file name acquirer 210 also needs to determine whether the obtained file name is an absolute file name or a relative file name. The absolute file name includes the full file directory structure starting from the root directory, while the relative file name only includes part of the file directory structure starting from the current directory. In general, the root directory begins with the symbol "/". Therefore, In the file name obtained above, "/static/js/jquery-1.6.2.min.js" and "/static/js/qtool.js" are absolute file names, and "js/search.js" is relative. file name. When the file name acquirer 210 acquires the relative file name, it needs to convert it to an absolute file name. To this end, the file name acquirer 210 determines the current directory location of the web page including the web page related files, and newly combines the current directory location and the relative file name to generate an absolute file name. In the above example, assuming that the current directory location of the web page is "/static", the filename getter 210 converts the relative filename "js/search.js" to an absolute filename "/static/js/search.js ".
另外,当提供给链接地址生成设备200的文件是一个到其它服务器的URL链接时,文件名获取器210不会获取该文件的文件名,相反,文件名获取器210会生成到该URL链接的应用而不做其他处理。In addition, when the file supplied to the link address generating device 200 is a URL link to another server, the file name acquirer 210 does not acquire the file name of the file, and instead, the file name acquirer 210 generates a link to the URL. Apply without other processing.
名称处理器220对文件名获取器210所获取的各个文件名称进行处理,获取各个文件名中的公共部分和不同部分。由于网页相关文件通常处于同一个目录下,因此,这些文件的文件名通常具有相同的公共部分。名称处理器220将文件名获取器210获取的各个文件名当作字符串,从字符串的开头开始,利用诸如贪婪算法之类的各种算法,获取各个文件名中一直相同的公共部分,并同时获取其它部分。以上面的示例为例,各个文件名的公共部分为“/static/js/”。而不同部分分别为“jquery-1.6.2.min.js”、“qtool.js”和“search.js”。The name processor 220 processes the respective file names acquired by the file name acquirer 210, and acquires common parts and different parts in the respective file names. Since web page related files are usually in the same directory, the file names of these files usually have the same public part. The name processor 220 treats each file name acquired by the file name acquirer 210 as a character string, and starts from the beginning of the character string, and uses various algorithms such as a greedy algorithm to obtain the same common part in each file name, and Get other parts at the same time. Taking the above example as an example, the common part of each file name is "/static/js/". The different parts are "jquery-1.6.2.min.js", "qtool.js" and "search.js".
链接生成器230接收名称处理器220所获取的公共部分和各个文件的不同部分。链接生成器230首先对各个不同部分进行组合,以获得链接的第一个部分,然后组合公共部分和链接的第一部分以便生成链接地址。The link generator 230 receives the common portion acquired by the name processor 220 and different portions of the respective files. The link generator 230 first combines the various different parts to obtain the first part of the link, and then combines the common part and the first part of the link to generate the link address.
根据一种实施方式,链接生成器230可以用符号“/”组合公共部分和链接的第一部分。而正在生成链接的第一部分时,链接生成器230可以利用符号“,”来组合各个文件名的不同部分。According to one embodiment, the link generator 230 may combine the common portion and the first portion of the link with the symbol "/". While the first portion of the link is being generated, the link generator 230 can use the symbol "," to combine different portions of the respective file names.
由于在公共部分中通常含有符号“/”来表示目录,当链接生成器230用符号“/”组合各个部分时,会产生混淆。因此,可选地,链接生成器230可以在组合各个部分之前用不同于符号“/”的其它符号(例如符号“;”)来替换公共部分中的符号“/”。例如上面的公共部分“/static/js/”会被转换为“;sttic;js;”。以上面的示例为例,组合好的链接地址为: Since the directory is usually represented by a symbol "/" in the common portion, confusion occurs when the link generator 230 combines the parts with the symbol "/". Thus, optionally, the link generator 230 may replace the symbol "/" in the common portion with other symbols (eg, the symbol ";") other than the symbol "/" before combining the various portions. For example, the public part "/static/js/" above will be converted to ";sttic;js;". Taking the above example as an example, the combined link address is:
“/;static;js;/jquery-1.6.2.min.js,qtool.js,search.js”。"/;static;js;/jquery-1.6.2.min.js,qtool.js,search.js".
可选地,当链接地址生成设备200接收的多个文件具有相同文件后缀名时,链接生成器230可以提取文件后缀名,在对各文件的不同部分进行组合以生成链接第一部分时,不对后缀名进行组合,而是在生成了链接第一部分之后,在组合各个部分时,在链接地址的最后组合该文件后缀名。以上面的例子为例,此时生成的链接地址为:Alternatively, when the plurality of files received by the link address generating device 200 have the same file suffix name, the link generator 230 may extract the file suffix name, and when the different portions of the files are combined to generate the first portion of the link, the suffix is not The names are combined, but after the first part of the link is generated, the file suffix is combined at the end of the link address when the parts are combined. Taking the above example as an example, the generated link address at this time is:
“/;static;js;/jquery-1.6.2.min,qtool,search/.js”,"/;static;js;/jquery-1.6.2.min,qtool,search/.js",
与上面的示例相比,利用这种方式生成的链接地址包含的字符数量更少,从而可以更快地在客户端和服务器之间传输,这对于具有大量用户访问的网站而言,非常有意义。Compared to the above example, the link address generated in this way contains fewer characters, so it can be transferred between the client and the server faster, which is very meaningful for websites with a large number of user visits. .
可选地,由于网络服务器140中通常会驻留多个网络应用,每个网页属于其中的某个网络应用。每个网络应用具有其独立的目录结构,例如每个网络应用的根目录位置是不同的。每个网络应用以其名称空间作为标识,链接生成器230在生成链接地址时,会进一步连接该名称空间。例如,链接地址生成器230可以在公共部分之前连接该名称空间。Optionally, since the web server 140 usually hosts multiple web applications, each web page belongs to one of the web applications. Each web application has its own separate directory structure, for example the root directory location of each web application is different. Each web application is identified by its namespace, and the link generator 230 further connects the namespace when generating the link address. For example, the link address generator 230 can connect to the namespace before the public portion.
以上面的示例为例,假定这些网页相关文件属于一个名称空间为“wan”的网络应用,则此时生成的链接地址为:Taking the above example as an example, assuming that these webpage related files belong to a web application with a namespace of "wan", the generated link address at this time is:
“/wan/;static;js;/jquery-1.6.2.min,qtool,search/.js”。"/wan/;static;js;/jquery-1.6.2.min,qtool,search/.js".
在实践中,各个网络应用会根据用户需求等各种原因而不断更新其版本,网页及其相关网页相关文件和某个特定版本相关。为此,链接地址生成设备200还包括版本计算器240。版本计算器240计算网络应用的当前版本。版本计算器240可以利用多种方式计算网络应用的当前版本,一种方式是获取网络应用中各个文本文件的所有内容,然后基于所获取的内容计算一个MD5之类的哈希值,并采用该哈希值作为网络应用的当前版本。另一种方式是版本计算器240会保持网络应用的最后一个版本信息,随后版本计算器240在网络应用的内容发生改变时,更新版本信息并保存。In practice, each web application will continuously update its version according to various reasons such as user needs, and the webpage and related webpage related files are related to a specific version. To this end, the link address generating device 200 further includes a version calculator 240. The version calculator 240 calculates the current version of the web application. The version calculator 240 can calculate the current version of the web application in a plurality of ways, one way is to obtain all the contents of each text file in the web application, and then calculate a hash value such as MD5 based on the obtained content, and adopt the The hash value is the current version of the web application. Alternatively, the version calculator 240 will maintain the last version information of the web application, and then the version calculator 240 will update the version information and save it when the content of the web application changes.
链接生成器230进一步将当前版本信息,例如当前版本号和其它各部分组合以生成链接地址。根据一种实现方式,链接生成器230将版本信息与文件后缀名相组合,以便向客户端110提供一个看上去合理的链接地址。以上面的示例为例,则此时生成的链接地址为: The link generator 230 further combines the current version information, such as the current version number, and other portions to generate a link address. According to one implementation, the link generator 230 combines the version information with the file suffix name to provide the client 110 with a plausible link address. Taking the above example as an example, the link address generated at this time is:
“/wan/;static;js;/jquery-1.6.2.min,qtool,search/456efab43.js”。"/wan/;static;js;/jquery-1.6.2.min,qtool,search/456efab43.js".
其中的“456efab43”为版本信息。The "456efab43" is the version information.
另外,在将各个网页相关文件组合成一个链接地址之后,网络服务器140会将相关的网页相关文件发布到一个文件服务器150中,以便当客户端110对网页进行解析和获得该链接地址时,可以从文件服务器150获取与该链接地址相对应的网页相关文件。为此,链接生成器230还要将与文件服务器150相对应的域名组合到链接地址中。由于文件服务器150可能有多个,链接生成器230需要选择作为网页相关文件发布目标的其中一个文件服务器150,并将该文件服务器150的域名组合到链接地址中。In addition, after the webpage related files are combined into one link address, the web server 140 publishes the related webpage related file to a file server 150, so that when the client 110 parses the webpage and obtains the link address, A web page related file corresponding to the link address is acquired from the file server 150. To this end, the link generator 230 also combines the domain names corresponding to the file server 150 into the link address. Since there may be more than one file server 150, the link generator 230 needs to select one of the file servers 150 as a web page related file publishing target, and combine the domain names of the file server 150 into the link address.
以上面的示例为例,此时生成的链接地址为:Taking the above example as an example, the generated link address at this time is:
http://s0.qhimg.comHttp://s0.qhimg.com
/wan/;static;js;/jquery-1.6.2.min,qtool,search/456efab43.js。/wan/;static;js;/jquery-1.6.2.min,qtool,search/456efab43.js.
在上面的示例中,文件服务器150的域名为“s0.qhimg.com”。In the above example, the domain name of the file server 150 is "s0.qhimg.com".
利用根据本发明的链接地址生成设备200,可以将与多个网页相关文件相对应的多个链接地址组合为一个链接地址。当客户端110接收到该链接地址时,可以一次从网页相关文件发布目的地的文件服务器150获取多个网页相关文件的组合,从而减少了在客户端110和文件服务器150之间的文件传输次数,提高了客户端110获取并解析网页的效率。With the link address generating device 200 according to the present invention, a plurality of link addresses corresponding to a plurality of web page related files can be combined into one link address. When the client 110 receives the link address, the combination of the plurality of webpage related files can be acquired from the file server 150 of the webpage related file publishing destination at one time, thereby reducing the number of file transfers between the client 110 and the file server 150. The efficiency of the client 110 to acquire and parse the webpage is improved.
图3示出了根据本发明另一个实施例的链接地址生成方法300的流程示意图。该方法300适于在图2所示的网络服务器140中执行,尤其适于在链接地址生成设备200中执行,以便根据多个文件生成链接地址。FIG. 3 is a flow chart showing a method for generating a link address 300 according to another embodiment of the present invention. The method 300 is adapted to be executed in the web server 140 shown in FIG. 2, and is particularly adapted to be executed in the link address generating device 200 to generate a link address from a plurality of files.
该方法300始于步骤S310。在步骤S310中,获取要生成一个链接地址的多个网页相关文件中每个文件的文件名。网络服务器140会利用方法300来处理生成链接地址的多个文件信息。可选地,网络服务器140也可以从要处理的网页中获取这些网页相关文件的信息,并在步骤S310中获得这些网页相关文件的文件名。The method 300 begins at step S310. In step S310, the file name of each of the plurality of webpage related files for which a link address is to be generated is acquired. The web server 140 utilizes the method 300 to process a plurality of file information that generates a link address. Optionally, the web server 140 may also obtain information about the webpage related files from the webpage to be processed, and obtain the file names of the webpage related files in step S310.
例如,网络服务器140会以下面的方式将要用于生成链接地址的文件信息发送给方法300来处理: For example, web server 140 sends the file information to be used to generate the link address to method 300 for processing in the following manner:
Figure PCTCN2015076113-appb-000002
Figure PCTCN2015076113-appb-000002
在步骤S310中会获取到其中的三个文件以及对应的文件名“/static/js/jquery-1.6.2.min.js”、“/static/js/qtool.js”和“js/search.js”。In step S310, three files and corresponding file names "/static/js/jquery-1.6.2.min.js", "/static/js/qtool.js" and "js/search." are obtained. Js".
可选地,在步骤S310中,在获取到各个文件名之后,还需要判断所获得的文件名为绝对文件名还是相对文件名。绝对文件名包括从根目录开始的完整文件目录结构,而相对文件名仅仅包括从当前目录开始的部分文件目录结构。一般而言,根目录用符号“/”开始。因此,在上面获取的文件名中,“/static/js/jquery-1.6.2.min.js”和“/static/js/qtool.js”为绝对文件名,而“js/search.js”为相对文件名。在步骤S310中获取到相对文件名时,需要将其转换为绝对文件名。为此,在步骤S310中,会判断包括这些网页相关文件的网页的当前目录位置,并将该当前目录位置和相对文件名新组合以生成绝对文件名。在上面的例子中,假定网页的当前目录位置为“/static”,则在步骤S310中,会将相对文件名“js/search.js”转换为绝对文件名“/static/js/search.js”。Optionally, in step S310, after obtaining each file name, it is also required to determine whether the obtained file name is an absolute file name or a relative file name. The absolute file name includes the full file directory structure starting from the root directory, while the relative file name only includes part of the file directory structure starting from the current directory. In general, the root directory begins with the symbol "/". Therefore, in the file name obtained above, "/static/js/jquery-1.6.2.min.js" and "/static/js/qtool.js" are absolute file names, and "js/search.js" For relative file names. When the relative file name is acquired in step S310, it needs to be converted into an absolute file name. To this end, in step S310, the current directory location of the web page including the webpage related files is determined, and the current directory location and the relative file name are newly combined to generate an absolute file name. In the above example, assuming that the current directory location of the web page is "/static", the relative file name "js/search.js" is converted to the absolute file name "/static/js/search.js" in step S310. ".
另外,当提供给方法300来处理的文件是一个到其它服务器的URL链接时,则在步骤S310中,不会获取该文件的文件名,相反,会生成到该URL链接的应用而不做其他处理。In addition, when the file provided to the method 300 for processing is a URL link to another server, in step S310, the file name of the file is not obtained, and instead, the application to the URL link is generated without other deal with.
随后,在步骤S320中,对在步骤S310获取的各个文件名称进行处理,获取各个文件名中的公共部分和不同部分。由于网页相关文件通常处于同一个目录下,因此,这些文件的文件名通常具有相同的公共部分。在步骤S320中,将在步骤S310获取的各个文件名当作字符串,从字符串的开头开始,利用诸如贪婪算法之类的各种算法,获取各个文件名中一直相同的公共部分,并同时获取其它部分。以上面的示例为例,各个文件名的公共部分为“/static/js/”。而不同部分分别为“jquery-1.6.2.min.js”、“qtool.js”和“search.js”。Subsequently, in step S320, the respective file names acquired in step S310 are processed to acquire the common portion and the different portions in the respective file names. Since web page related files are usually in the same directory, the file names of these files usually have the same public part. In step S320, each file name acquired in step S310 is treated as a character string, starting from the beginning of the character string, and using various algorithms such as a greedy algorithm to obtain the same common part in each file name, and simultaneously Get the other parts. Taking the above example as an example, the common part of each file name is "/static/js/". The different parts are "jquery-1.6.2.min.js", "qtool.js" and "search.js".
随后,在步骤S330中,接收在步骤S320所获取的公共部分和各 个文件的不同部分。在步骤S330中,首先对各个不同部分进行组合,以获得链接的第一个部分,然后组合公共部分和链接的第一部分以便生成链接地址。Subsequently, in step S330, the public part and each acquired in step S320 are received. Different parts of the file. In step S330, the different portions are first combined to obtain the first portion of the link, and then the common portion and the first portion of the link are combined to generate a link address.
根据一种实施方式,在步骤S330中,可以用符号“/”组合公共部分和链接的第一部分。而正在生成链接的第一部分时,可以利用符号“,”来组合各个文件名的不同部分。According to an embodiment, in step S330, the common portion and the first portion of the link may be combined with the symbol "/". While the first part of the link is being generated, the symbol "," can be used to combine different parts of each file name.
由于在公共部分中通常含有符号“/”来表示目录,当用符号“/”组合各个部分时,会产生混淆。因此,可选地,可以在组合各个部分之前用不同于符号“/”的其它符号(例如符号“;”)来替换公共部分中的符号“/”。例如上面的公共部分“/static/js/”会被转换为“;sttic;js;”。以上面的示例为例,组合好的链接地址为:Since the contents are usually represented by a symbol "/" in the common portion, confusion occurs when the parts are combined with the symbol "/". Thus, optionally, the symbols "/" in the common portion may be replaced with other symbols (eg, the symbol ";") other than the symbol "/" before combining the various portions. For example, the public part "/static/js/" above will be converted to ";sttic;js;". Taking the above example as an example, the combined link address is:
“/;static;js;/jquery-1.6.2.min.js,qtool.js,search.js”。"/;static;js;/jquery-1.6.2.min.js,qtool.js,search.js".
可选地,当方法300接收的多个文件具有相同文件后缀名时,在步骤S330中可以提取文件后缀名,在对各文件的不同部分进行组合以生成链接第一部分时,不对后缀名进行组合,而是在生成了链接第一部分之后,在组合各个部分时,在链接地址的最后组合该文件后缀名。以上面的例子为例,此时生成的链接地址为:Optionally, when the multiple files received by the method 300 have the same file suffix name, the file suffix name may be extracted in step S330, and the suffix names are not combined when different parts of the files are combined to generate the first part of the link. Instead, after the first part of the link is generated, the file suffix name is combined at the end of the link address when the parts are combined. Taking the above example as an example, the generated link address at this time is:
“/;static;js;/jquery-1.6.2.min,qtool,search/.js”,"/;static;js;/jquery-1.6.2.min,qtool,search/.js",
与上面的示例相比,利用这种方式生成的链接地址包含的字符数量更少,从而可以更快地在客户端和服务器之间传输,这对于具有大量用户访问的网站而言,非常有意义。Compared to the above example, the link address generated in this way contains fewer characters, so it can be transferred between the client and the server faster, which is very meaningful for websites with a large number of user visits. .
可选地,由于网络服务器140中通常会驻留多个网络应用,每个网页属于其中的某个网络应用。每个网络应用具有其独立的目录结构,例如每个网络应用的根目录位置是不同的。每个网络应用以其名称空间作为标识,在步骤S330中生成链接地址时,会进一步连接该名称空间。例如,可以在公共部分之前连接该名称空间。Optionally, since the web server 140 usually hosts multiple web applications, each web page belongs to one of the web applications. Each web application has its own separate directory structure, for example the root directory location of each web application is different. Each network application uses its namespace as an identifier, and when the link address is generated in step S330, the namespace is further connected. For example, the namespace can be connected before the public part.
以上面的示例为例,假定这些网页相关文件属于一个名称空间为“wan”的网络应用,则此时生成的链接地址为:Taking the above example as an example, assuming that these webpage related files belong to a web application with a namespace of "wan", the generated link address at this time is:
“/wan/;static;js;/jquery-1.6.2.min,qtool,search/.js”。"/wan/;static;js;/jquery-1.6.2.min,qtool,search/.js".
在实践中,各个网络应用会根据用户需求等各种原因而不断更新其版本,网页及其相关网页相关文件和某个特定版本相关。为此,方法300还可以包括步骤S340。在步骤S340中,计算网络应用的当前版 本。可以利用多种方式计算网络应用的当前版本,一种方式是获取网络应用中各个文本文件的所有内容,然后基于所获取的内容计算一个MD5之类的哈希值,并采用该哈希值作为网络应用的当前版本。另一种方式是保持网络应用的最后一个版本信息,随后在网络应用的内容发生改变时,更新版本信息并保存。In practice, each web application will continuously update its version according to various reasons such as user needs, and the webpage and related webpage related files are related to a specific version. To this end, method 300 can also include step S340. In step S340, calculating the current version of the web application this. The current version of the web application can be calculated in a plurality of ways. One way is to obtain all the contents of each text file in the web application, and then calculate a hash value such as MD5 based on the obtained content, and use the hash value as the hash value. The current version of the web application. Another way is to keep the last version information of the web application, and then update the version information and save it when the content of the web application changes.
在步骤S330中,进一步将当前版本信息,例如当前版本号和其它各部分组合以生成链接地址。根据一种实现方式,将版本信息与文件后缀名相组合,以便向客户端110提供一个看上去合理的链接地址。以上面的示例为例,则此时生成的链接地址为:In step S330, the current version information, such as the current version number and other parts, are further combined to generate a link address. According to one implementation, the version information is combined with the file suffix name to provide the client 110 with a plausible link address. Taking the above example as an example, the link address generated at this time is:
“/wan/;static;js;/jquery-1.6.2.min,qtool,search/456efab43.js”。"/wan/;static;js;/jquery-1.6.2.min,qtool,search/456efab43.js".
其中的“456efab43”为版本信息。The "456efab43" is the version information.
另外,在将各个网页相关文件组合成一个链接地址之后,网络服务器140会将相关的网页相关文件发布到一个文件服务器150中,以便当客户端110对网页进行解析和获得该链接地址时,可以从文件服务器150获取与该链接地址相对应的网页相关文件。为此,在步骤S330中,还要将与文件服务器150相对应的域名组合到链接地址中。由于文件服务器150可能有多个,需要选择作为网页相关文件发布目标的其中一个文件服务器150,并将该文件服务器150的域名组合到链接地址中。In addition, after the webpage related files are combined into one link address, the web server 140 publishes the related webpage related file to a file server 150, so that when the client 110 parses the webpage and obtains the link address, A web page related file corresponding to the link address is acquired from the file server 150. To this end, in step S330, the domain name corresponding to the file server 150 is also combined into the link address. Since there may be more than one file server 150, it is necessary to select one of the file servers 150 as a web page related file publishing target, and combine the domain names of the file server 150 into the link address.
以上面的示例为例,此时生成的链接地址为:Taking the above example as an example, the generated link address at this time is:
http://s0.qhimg.comHttp://s0.qhimg.com
/wan/;static;js;/jquery-1.6.2.min,qtool,search/456efab43.js。/wan/;static;js;/jquery-1.6.2.min,qtool,search/456efab43.js.
在上面的示例中,文件服务器150的域名为“s0.qhimg.com”。In the above example, the domain name of the file server 150 is "s0.qhimg.com".
利用根据本发明的链接地址生成方法300,可以将与多个网页相关文件相对应的多个链接地址组合为一个链接地址。当客户端110接收到该链接地址时,可以一次从网页相关文件发布目的地的文件服务器150获取多个网页相关文件的组合,从而减少了在客户端110和文件服务器150之间的文件传输次数,提高了客户端110获取并解析网页的效率。With the link address generation method 300 according to the present invention, a plurality of link addresses corresponding to a plurality of web page related files can be combined into one link address. When the client 110 receives the link address, the combination of the plurality of webpage related files can be acquired from the file server 150 of the webpage related file publishing destination at one time, thereby reducing the number of file transfers between the client 110 and the file server 150. The efficiency of the client 110 to acquire and parse the webpage is improved.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未 详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, not Well-known methods, structures, and techniques are shown in detail so as not to obscure the description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, the various features of the invention are sometimes grouped together into a single embodiment, in the above description of the exemplary embodiments of the invention, Figure, or a description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the embodiments, and each of the claims as a separate embodiment of the invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the 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. In addition to such features and/or at least some of the processes or units being mutually exclusive, 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.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features that are included in other embodiments and not in other features, combinations of features of different embodiments are intended to be within the scope of the present invention. Different embodiments are formed and formed. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的链接地址生成设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供, 或者以任何其他形式提供。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. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components of the linked address generation device in accordance with embodiments of the present invention may be implemented in practice using a microprocessor or digital signal processor (DSP). 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 can be downloaded from the Internet website or provided on the carrier signal. Or in any other form.
例如,图4示出了可以实现根据本发明的链接地址生成方法的计算设备。该计算设备传统上包括处理器410和以存储器420形式的计算机程序产品或者计算机可读介质。存储器420可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器420具有用于执行上述方法中的任何方法步骤的程序代码431的存储空间430。例如,用于程序代码的存储空间430可以包括分别用于实现上面的方法中的各种步骤的各个程序代码431。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图5所述的便携式或者固定存储单元。该存储单元可以具有与图4的计算设备中的存储器420类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码431’,即可以由例如诸如410之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。For example, Figure 4 illustrates a computing device that can implement a link address generation method in accordance with the present invention. The computing device conventionally includes a processor 410 and a computer program product or computer readable medium in the form of a memory 420. The memory 420 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 420 has a memory space 430 for program code 431 for performing any of the method steps described above. For example, storage space 430 for program code may include various program code 431 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. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units as described with reference to FIG. The storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 420 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit includes computer readable code 431', ie, code readable by a processor, such as 410, that when executed by a computing device causes the computing device to perform each of the methods described above step.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。"an embodiment," or "an embodiment," or "an embodiment," In addition, it is noted that the phrase "in one embodiment" is not necessarily referring to the same embodiment.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在 不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。 In addition, it should be noted that the language used in the specification has been selected for the purpose of readability and teaching, and is not intended to be construed or limited. Thus, in Numerous modifications and changes will be apparent to those skilled in the art without departing from the scope of the appended claims. The disclosure of the present invention is intended to be illustrative, and not restrictive, and the scope of the invention is defined by the appended claims.

Claims (17)

  1. 一种链接地址生成设备,用于根据多个文件来生成一个链接地址,该链接地址生成设备包括:A link address generating device is configured to generate a link address according to a plurality of files, the link address generating device comprising:
    文件名获取器,适于获取所述多个文件中的每个文件名;a file name acquirer adapted to obtain each of the plurality of files;
    名称处理器,适于获取所述多个文件的文件名中的公共部分和不同部分;以及a name processor adapted to obtain a common part and a different part of a file name of the plurality of files;
    链接生成器,适于将所述多个文件的不同部分组合为链接的第一部分,并连接所述公共部分和第一部分以生成链接地址。A link generator adapted to combine different portions of the plurality of files into a first portion of the link and connect the common portion and the first portion to generate a link address.
  2. 如权利要求1所述的链接地址生成设备,其中所述多个文件具有相同文件后缀名,而且所述链接生成器适于进一步连接文件后缀名以生成链接地址。The link address generating device according to claim 1, wherein said plurality of files have the same file suffix name, and said link generator is adapted to further connect the file suffix name to generate a link address.
  3. 如权利要求1或者2所述的链接地址生成设备,其中所述文件名获取器适于判断所获取的文件名为包括相对于当前目录的目录位置的相对文件名还是包括相对于根目录的目录位置的绝对文件名,如果是相对文件名,则转换为绝对文件名。The link address generating device according to claim 1 or 2, wherein said file name acquirer is adapted to determine whether the acquired file name includes a relative file name relative to a directory position of the current directory or a directory corresponding to the root directory The absolute file name of the location, if it is a relative file name, it is converted to an absolute file name.
  4. 如权利要求1-3中任一个所述的链接地址生成设备,其中所述多个文件属于一个应用,而所述链接生成器还适于进一步连接所述应用的名称空间以生成链接地址。A link address generating device according to any one of claims 1 to 3, wherein said plurality of files belong to one application, and said link generator is further adapted to further connect a namespace of said application to generate a link address.
  5. 如权利要求4所述的链接地址生成设备,还包括版本计算器,适于根据所述应用来计算所述应用的当前版本,而所述链接生成器还适于进一步连接当前版本以生成链接地址。A link address generating apparatus according to claim 4, further comprising a version calculator adapted to calculate a current version of said application based on said application, and said link generator is further adapted to further connect the current version to generate a link address .
  6. 如权利要求1-5中任一个所述的链接地址生成设备,其中所述链接生成器还适于从一个或者多个域名中选择一个域名,并且将所选择的域名连接到所生成的链接地址以生成完整的链接地址。A link address generating device according to any one of claims 1 to 5, wherein said link generator is further adapted to select a domain name from one or more domain names and connect the selected domain name to the generated link address. To generate a complete link address.
  7. 如权利要求1-6中任一个所述的链接地址生成设备,其中所述链接生成器用符号“/”将各部分连接在一起,并且用符号“,”将所述多个文件的不同部分组合在一起。A link address generating apparatus according to any one of claims 1 to 6, wherein said link generator connects the parts together by a symbol "/", and combines different parts of said plurality of files with a symbol "," Together.
  8. 一种链接地址生成方法,用于根据多个文件来生成一个链接地址,该方法包括步骤:A link address generation method for generating a link address based on a plurality of files, the method comprising the steps of:
    获取所述多个文件中的每个文件名;Obtaining each file name in the plurality of files;
    获取所述多个文件的文件名中的公共部分和不同部分;以及 Obtaining a common part and a different part of the file names of the plurality of files;
    将所述多个文件的不同部分组合为链接的第一部分,并连接所述公共部分和第一部分以生成链接地址。Different portions of the plurality of files are combined into a first portion of the link, and the common portion and the first portion are joined to generate a link address.
  9. 如权利要求8所述的链接地址生成方法,其中所述多个文件具有相同文件后缀名,而且生成链接地址的步骤包括进一步连接文件后缀名以生成链接地址。The link address generating method according to claim 8, wherein said plurality of files have the same file suffix name, and the step of generating a link address includes further connecting the file suffix name to generate a link address.
  10. 如权利要求8或者9所述的链接地址生成方法,其中所述获取文件名的步骤还包括:判断所获取的文件名为包括相对于当前目录的目录位置的相对文件名还是包括相对于根目录的目录位置的绝对文件名,如果是相对文件名,则转换为绝对文件名。The link address generating method according to claim 8 or 9, wherein the step of obtaining the file name further comprises: determining whether the acquired file name includes a relative file name relative to a directory position of the current directory or includes a relative to the root directory The absolute file name of the directory location, if it is a relative file name, it is converted to an absolute file name.
  11. 如权利要求8-10中任一个所述的链接地址生成方法,其中所述多个文件属于一个应用,而所述生成链接地址的步骤包括:进一步连接所述应用的名称空间以生成链接地址。A link address generating method according to any one of claims 8 to 10, wherein said plurality of files belong to one application, and said step of generating a link address comprises: further connecting a name space of said application to generate a link address.
  12. 如权利要求11所述的链接地址生成方法,还包括步骤:The link address generating method according to claim 11, further comprising the steps of:
    根据所述应用来计算所述应用的当前版本,Calculating a current version of the application based on the application,
    而所述生成链接地址的步骤还包括:进一步连接当前版本以生成链接地址。And the step of generating a link address further includes: further connecting the current version to generate a link address.
  13. 如权利要求8-12中任一个所述的链接地址生成方法,其中所述生成链接地址的步骤还包括:The link address generating method according to any one of claims 8 to 12, wherein the step of generating a link address further comprises:
    从一个或者多个域名中选择一个域名,并且将所选择的域名连接到所生成的链接地址以生成完整的链接地址。Select a domain name from one or more domain names and connect the selected domain name to the generated link address to generate a complete link address.
  14. 如权利要求8-13中任一个所述的链接地址生成方法,其中在所述生成链接地址的步骤中,用符号“/”将各部分连接在一起,并且用符号“,”将所述多个文件的不同部分组合在一起。A link address generating method according to any one of claims 8 to 13, wherein in the step of generating a link address, the parts are connected together by a symbol "/", and the symbol "," is used to Different parts of a file are combined.
  15. 一种网络服务器,包括如权利要求1-7中任一个所述的链接地址生成设备,以便在接收到与该网络服务器通信链接的客户端的请求时,返回链接地址生成设备生成的链接地址,以便客户端可以从该链接地址获取所述多个文件。A network server comprising the link address generating device according to any one of claims 1 to 7 to return a link address generated by the link address generating device when receiving a request from a client that is in communication with the web server, so that The client can obtain the plurality of files from the link address.
  16. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求8-13中的任一个所述的链接地址生成方法。A computer program comprising computer readable code, when said computer readable code is run on a computing device, causing said computing device to perform a link address generation method according to any of claims 8-13.
  17. 一种计算机可读介质,其中存储了如权利要求16所述的计算机程序。 A computer readable medium storing the computer program of claim 16.
PCT/CN2015/076113 2014-04-08 2015-04-08 Link address generation method, device, and server WO2015154681A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410138847.6A CN104978340B (en) 2014-04-08 2014-04-08 Link address generation method, device and server
CN201410138847.6 2014-04-08

Publications (1)

Publication Number Publication Date
WO2015154681A1 true WO2015154681A1 (en) 2015-10-15

Family

ID=54274855

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/076113 WO2015154681A1 (en) 2014-04-08 2015-04-08 Link address generation method, device, and server

Country Status (2)

Country Link
CN (1) CN104978340B (en)
WO (1) WO2015154681A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116248573A (en) * 2022-12-01 2023-06-09 中国联合网络通信集团有限公司 Link splicing method, device and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326394A (en) * 2016-08-18 2017-01-11 乐视控股(北京)有限公司 Method and device for obtaining file name

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040107423A1 (en) * 2002-11-27 2004-06-03 Fujitsu Limited Web server, Web server having function of Java servlet, and computer readable medium
CN101593184A (en) * 2008-05-29 2009-12-02 国际商业机器公司 The system and method for self-adaptively locating dynamic web page elements
CN1627761B (en) * 2003-09-19 2011-01-12 株式会社理光 Apparatus and method for processing information
CN102999514A (en) * 2011-09-14 2013-03-27 百度在线网络技术(北京)有限公司 Method, device and equipment for obtaining webpage and link prefix information thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7668881B1 (en) * 2004-06-01 2010-02-23 Netapp, Inc. System and method for associating NIS attributes with CIFS clients
CN100521610C (en) * 2006-03-31 2009-07-29 腾讯科技(深圳)有限公司 Method for playing network media file by customer terminal and customer terminal
CN101715004B (en) * 2009-11-12 2013-01-09 中国科学院计算技术研究所 Internet video-oriented distributed acquisition method and system
CN102255823A (en) * 2011-01-10 2011-11-23 北京开心人信息技术有限公司 Method and system for sending attachment by using short message in network community
CN102624770B (en) * 2011-06-24 2014-05-28 匡晓明 Information extraction method and extraction information network storage management system based on cloud calculation
CN103546200A (en) * 2013-08-26 2014-01-29 深圳Tcl新技术有限公司 Data transmission method and system based on near-field communication
CN103678692B (en) * 2013-12-26 2018-04-27 北京奇虎科技有限公司 A kind of security sweep method and device for downloading file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040107423A1 (en) * 2002-11-27 2004-06-03 Fujitsu Limited Web server, Web server having function of Java servlet, and computer readable medium
CN1627761B (en) * 2003-09-19 2011-01-12 株式会社理光 Apparatus and method for processing information
CN101593184A (en) * 2008-05-29 2009-12-02 国际商业机器公司 The system and method for self-adaptively locating dynamic web page elements
CN102999514A (en) * 2011-09-14 2013-03-27 百度在线网络技术(北京)有限公司 Method, device and equipment for obtaining webpage and link prefix information thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116248573A (en) * 2022-12-01 2023-06-09 中国联合网络通信集团有限公司 Link splicing method, device and storage medium

Also Published As

Publication number Publication date
CN104978340A (en) 2015-10-14
CN104978340B (en) 2020-05-15

Similar Documents

Publication Publication Date Title
EP3172680B1 (en) Fast rendering of websites containing dynamic content and stale content
WO2020199751A1 (en) Method and apparatus for loading page picture, and electronic device
US8812737B2 (en) Context-specific unicode characters in shortened URLs
US8250466B2 (en) Computer and method for converting a web page
US9787783B2 (en) Providing supplemental content in relation to embedded media
WO2016070718A1 (en) Method, device, and browser for file downloading
TW201222283A (en) On-demand translation of application text
US9876879B2 (en) Distributed network page generation
WO2015154682A1 (en) Network request processing method, network server, and network system
US9874989B1 (en) Providing content presentation elements in conjunction with a media content item
WO2015081848A1 (en) Socialized extended search method and corresponding device and system
US11080322B2 (en) Search methods, servers, and systems
WO2016100541A1 (en) Network based static font subset management
WO2019091018A1 (en) Knowledge graph establishment method and device, computer device and storage medium
US20130071035A1 (en) Methods and apparatus for progressive pattern matching in a mobile environment
JP6140904B2 (en) Terminal marking method, terminal marking device, program, and recording medium
WO2015154681A1 (en) Link address generation method, device, and server
US20160315997A1 (en) File transfer method, device, and system
CA2527885A1 (en) Verifying content of resources in markup language documents
US10503773B2 (en) Tagging of documents and other resources to enhance their searchability
WO2016155384A1 (en) Search optimization method, apparatus, and system
WO2015154678A1 (en) File processing method, device, and network system
US11379653B2 (en) Rendering method for on-demand loading of PDF file on network
WO2015154683A1 (en) File publication system, file release method, and network server
US20140157097A1 (en) Selecting video thumbnail based on surrounding context

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: 15777013

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: 15777013

Country of ref document: EP

Kind code of ref document: A1