CN104980464B - A kind of network request processing method, network server and network system - Google Patents

A kind of network request processing method, network server and network system Download PDF

Info

Publication number
CN104980464B
CN104980464B CN201410138846.1A CN201410138846A CN104980464B CN 104980464 B CN104980464 B CN 104980464B CN 201410138846 A CN201410138846 A CN 201410138846A CN 104980464 B CN104980464 B CN 104980464B
Authority
CN
China
Prior art keywords
file
identification information
packet
request
network
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.)
Expired - Fee Related
Application number
CN201410138846.1A
Other languages
Chinese (zh)
Other versions
CN104980464A (en
Inventor
黄欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410138846.1A priority Critical patent/CN104980464B/en
Priority to PCT/CN2015/076114 priority patent/WO2015154682A1/en
Publication of CN104980464A publication Critical patent/CN104980464A/en
Application granted granted Critical
Publication of CN104980464B publication Critical patent/CN104980464B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The invention discloses a kind of network servers, and suitable for handling the request from client, which includes: resolver, suitable for parsing to the request, to obtain revision identification information included by the request and file identification information;File handler is suitable for obtaining file packet associated with the revision identification information, and obtains one or more file corresponding with file identification information from this document packet;And output device, suitable for combining the file content of one or more acquired file and returning to client.The network request processing method that the invention also discloses a kind of in the network server and including the network system of the network server.

Description

A kind of network request processing method, network server and network system
Technical field
The present invention relates to computers and internet area, more particularly to Web content offer technology in a network.
Background technique
Universal with internet and computer, more and more users obtain information by internet.Internet Information be typically stored on the server being linked in network, user these accessible servers obtain information.It is some The amount of access of website is also increasing.Such as the page browsing amount of certain websites has been even up to tens million of times or even more than one hundred million grades Not, therefore, user is both contributed to any optimization of these pages and is quickly obtained webpage information and raising web site performance, work as net When amount of access of standing is huge, it is this optimization just seem especially it is necessary to.
With the development of network technology, the information that user obtains is also more and more abundant.Present Webpage and user It interactivity and readability can also become better and better.For example, in webpage, it can be using webpages associated documents such as a large amount of CSS files To define the display mode of the page and with the interactive mode of user etc..When in a webpage include multiple webpage associated documents When, client can initiate repeatedly request to website to request multiple webpage phases respectively when obtaining the webpage and being presented Close file.More time and load can be consumed due to establishing network request, the fewer the number of this request the better.
Webpage can be optimized for reduce server load therefore, it is necessary to one kind and improve client process webpage Efficiency new departure.
Summary of the invention
Exist above for this purpose, the present invention provides the new scheme of one kind to try hard to solve the problems, such as or at least alleviate.
According to an aspect of the invention, there is provided a kind of network server should suitable for handling the request from client Network server includes: resolver, suitable for being parsed to the request, with obtain revision identification information included by the request and File identification information;File handler, is suitable for obtaining associated with revision identification information file packet, and from this document packet It is middle to obtain one or more file corresponding with file identification information;And output device, suitable for combining acquired one The file content of a or multiple files simultaneously returns to client.
Optionally, the network according to the invention server further includes memory.File handler judges It is no to be cached with file packet, believe if it is not, being obtained from the file server being connected with network server communication with version identifier The associated file packet of manner of breathing.
Optionally, in the network according to the invention server, resolver is further adapted for parsing application identities from request Information, and file handler obtains file packet from file server using the application identification information and revision identification information.
Optionally, in the network according to the invention server, resolver further includes file identification generator, suitable for from asking The middle common portion and one or more different piece for obtaining file identification is sought, to these common portions and each different piece It is combined to generate one or more file identification information.
Optionally, in the network according to the invention server, file identification information is filename, and file handler is also suitable It is stored in memory together in by the file for including in acquired file packet and file packet.
Optionally, in the network according to the invention server, revision identification information is according to the institute in the file packet The hashed value that documentary file content is calculated.
According to another aspect of the present invention, a kind of network request processing method is provided, this method is suitable for taking in network It is executed in business device, to handle the request from client, the method comprising the steps of: parsing to the request, is asked with obtaining this Ask included revision identification information and file identification information;File packet associated with the revision identification information is obtained, and One or more file corresponding with file identification information is obtained from file packet;And combination acquired one or The file content of multiple files simultaneously returns to the client.
Optionally, in the network according to the invention request processing method, obtain file packet the step of further include: judge net Whether this document packet is cached in network server, if it is not, obtaining from the file server being connected with network server communication Take file packet associated with revision identification information.
Optionally, in the network according to the invention request processing method, the step of parsing to the request further include: Application identification information, and the step of obtaining file packet are parsed from request further include: utilize application identification information and version Identification information obtains file packet from the file server.
Optionally, in the network according to the invention request processing method, wherein the step of parsing to request is also wrapped It includes: obtaining the common portion and one or more different piece of file identification from request, and to common portion and each Different piece is combined to generate one or more file identification information.
Optionally, in the network according to the invention request processing method, wherein file identification information is filename, the party Method further comprises the steps of: stores the file for including in acquired file packet and file packet in network server together.
Optionally, in the network according to the invention request processing method, wherein revision identification information is according to file packet In All Files the hashed value that is calculated of file content.
According to another aspect of the present invention, a kind of network system is provided, which includes according to the present invention Network server;With the file server of network server communication linkage;And multiple client, wherein client takes to network Business device sends request, and network server receives the request, parses revision identification information and file identification information from the request, File packet associated with the revision identification information is obtained from file server, and obtains from file packet and is identified with this document One or more corresponding file of information, and combine the content of this document and return to the client.
The network according to the invention server and network request processing mode, user are sent out by client to network server Send a special request, so that it may the file content of multiple files is returned to from network server, to reduce in client File the number of transmissions between network server.For the client dissection process webpage the case where, this improves client It handles the speed of webpage and improves the process performance of server.
Detailed description of the invention
To the accomplishment of the foregoing and related purposes, certain illustrative sides are described herein in conjunction with following description and drawings Face, these aspects indicate the various modes that can practice principles disclosed herein, and all aspects and its equivalent aspect It is intended to fall in the range of theme claimed.Read following detailed description in conjunction with the accompanying drawings, the disclosure it is above-mentioned And other purposes, feature and advantage will be apparent.Throughout the disclosure, identical appended drawing reference generally refers to identical Component or element.
Fig. 1 shows the schematic diagram of network system according to an embodiment of the invention;
Fig. 2 shows the structural schematic diagrams of network server according to an embodiment of the invention;And
Fig. 3 shows the flow diagram of network request processing method according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 shows the schematic diagram of network system 100 according to an embodiment of the invention.As shown in Figure 1, network system 100 provide the network server 140 of various contents and file clothes including multiple client 110,120 and 130, for these clients Business device 150.These equipment are in communication with each other via internet.
All clients will be hereinafter indicated by taking client 110 as an example.In the present invention, client 110-130 It can be that this field is any can be presented the network information (such as webpage and the associated text obtained from network server 140 Part (such as CSS file, JS file and multimedia file etc.)) equipment, including but not limited to desktop computer, notebook type Computer, personal digital assistant, intelligent mobile terminal, tablet computer etc..Modern operation is usually run in client 110-130 System, using operating system come the hardware resource in management client.Usually operation has web browser in client 110, uses In the webpage that obtains from server 140 and webpage associated documents (such as the image quoted in webpage, audio and video are presented Deng).
Network server 140 answers the request of client 110 and the requested network information is returned to client 110.Network Information is usually Webpage and the various files quoted in the page, such as image file, audio and/or video files etc. The webpage associated documents of multimedia file, and such as CSS file and JS file etc.In practice, when client 110 is from net After network server 140 requests web page files, client 110, can be with when parsing and the information in the web page files being presented File cited from 140 web page files of network server afterwards.
It include multiple webpage associated documents, such as multiple CSS files in webpage.It, can be by these webpages when publishing web page Associated documents are encapsulated as a file packet, and this file is wrapped and passes to file server 150, while generating and this file Corresponding link is wrapped, and is inserted into webpage, while the webpage is uploaded into network server 140.
User accesses the network server 140 by client 110 and obtains the webpage, then in client 110 to this When webpage is parsed, need to send the request for obtaining and linking corresponding content with this to network server 140.Network service Device 140 obtains the request, and parses revision identification information and file identification information from the request.Network server 140 is first It first determines whether network server 140 locally preserves file packet associated with the revision identification information, if not provided, just File packet associated with the revision identification information is obtained from file server 150.Then, network server 140 is from file packet It is middle to obtain one or more file corresponding with this document identification information, and combine the content of the file and return to Client 110.
Fig. 2 shows the structural schematic diagrams of network server 140 according to an embodiment of the invention.As shown in Fig. 2, net Network server 140 includes resolver 210, file handler 220 and output device 230.
Network server 140 can send the request to 210 place of resolver when receiving the request from client Reason.Resolver 210 parses the request, and obtains revision identification information and file identification letter included in the request Breath.Request is usually a chained address, and according to an example, the request is for example are as follows:
s0.qhimg.com/;static;js;/jquery-1.6.2.min,qtool,search/456efab43.js。
The request is the chained address of special configuration, wherein " s0.qhimg.com " is the domain name of network server 140.Solution Parser 210 parses the chained address, and obtains revision identification information therein " 456efab43 " and file identification letter Breath ";static;js;/ jquery-1.6.2.min, qtool, search " and file suffixes name " js ".
It should be noted that in chained address, various pieces are linked at one with "/" character according to a kind of implementation It rises.Further optionally, therefore file suffixes name is linked to version by multiple webpage associated documents file suffixes name having the same After this identification information.Resolver 210 can be extracted when obtaining revision identification information in file suffixes name and immediate Content between "/" character is extracted before revision identification information as revision identification information, until distance domain in link Content between the nearest "/" character of name is as file identification information.
According to one embodiment, revision identification information is calculated according to the file content of the All Files in file packet Obtained hashed value, revision identification information can be used for uniquely identifying file packet substantially at this time.
However, the implementation of resolver 210 is not only restricted to this, it is possible to obtain version identifier letter from chained address The mode of breath and file identification information is all within protection scope of the present invention.
File handler 220 receives the revision identification information and file identification information that resolver 210 parses, and according to version This identification information obtains file packet associated with the revision identification information.File handler 220 can use various ways To obtain file packet.According to first embodiment, which can be sent to file clothes by file handler 220 Business device 150.File server 150 therefrom searches file packet corresponding with the revision identification information, and returns to file process Device 220.According to second embodiment, network server 140 includes memory 240, and file handler 220 will be previously from file The file packet and revision identification information that server 150 obtains are cached in association in memory 240.Therefore, work as file process When device will obtain file packet associated with some revision identification information, it can search whether to be cached with from memory 240 first This document packet, if it is not, as first embodiment, file handler 220 from file server 150 obtain with The corresponding file packet of the revision identification information, and cached in memory 240 simultaneously.
File packet is the file packet that multiple webpage associated documents are packaged together.Such as it can be by the related text of multiple webpages Part is compressed into the file packet of a compression.For example, being directed to chained address provided above, file packet be can be 456efab43.zip file,
After obtaining file packet, the file identification information that file handler 220 can be obtained according to analytically device 210, One or more file corresponding with file identification information is obtained from this document packet.As described above, file identification information It include the information of one or more file corresponding with the information.For example, being obtained by taking chained address provided above as an example File identification information be ";static;js;/ jquery-1.6.2.min, qtool, search " and file suffixes name " js ", including " jquery-1.6.2.min.js ", " qtool.js " and " search.js " three files.File handler 220 can obtain the file contents of these three files from file packet, and be sent to output device 230, the combination of output device 230 from The file content for one or more file that file packet obtains, and the content combined is returned into client 110.
According to one embodiment of present invention, multiple webpage associated documents are contained in file packet, and each chained address It may it is only necessary to obtain a part of webpage associated documents therein.Multiple webpage associated documents can have different catalogue knots These bibliographic structures can be also contained in file packet by structure when generating file packet.Therefore, when obtaining phase from file packet When closing file, also need to learn specific directory information of each file in file packet.
For this purpose, resolver 210 further includes file identification generator 212.File identification generator 212 is believed according to file identification It ceases to obtain the full directory structural information of one or more associated file.Specifically, file identification information includes The common portion of file identification and one or more different piece.Generator 212 obtains the public portion in file identification information Point and each different piece, and common portion and each different piece are respectively combined to generate one or more file Name is used as the file information.
For example, by taking link example above as an example, the file identification information of acquisition be ";static;js;/jquery- 1.6.2.min, qtool, search " and file suffixes name " js ", wherein common portion be ";static;js;", and it is each not It is respectively " jquery-1.6.2.min ", " qtool " and " search " with part.Optionally, due to leading in original common portion Catalogue often is indicated containing symbol "/", when combining various pieces with symbol "/", can generate and obscure, therefore is generating public portion Timesharing, can using it is other meet (such as symbol ";") replace symbol "/".So generator 212 is before being combined, it is first First can by common portion symbol ";" "/" is replaced with, then, generator 212 can combine common portion and each different piece And file suffixes name, to generate following three filenames:
“/static/js/jquery-1.6.2.min.js”;
"/static/js/qtool.js";And
“/static/js/search.js”。
Then, file handler 220 can be according to the filename obtained with full directory of generator 212, from deblocking File content corresponding with these filenames is obtained in the file packet of dress, and is supplied to output device 230.
Optionally, resolver 210 also parses application identification information from the chained address of request.According to a kind of embodiment party Formula, further includes application identification information between the domain name part and file identification information of chained address, and resolver 210 can basis The concatenation character "/" of the various pieces of chained address and parse application identification information.File handler 220 can also receive parsing The application identification information that device 210 parses, and application identification information and revision identification information will be utilized together, from file server 150 obtain corresponding file packet.Although as described above, single revision identification information can unique identification file packet.But In some embodiments, revision identification information may not all file file content carry out hash calculating as a result, and having It may be exactly a timestamp.Therefore, if application identification information and revision identification information are combined, this can be completely unique Ground identifies file packet.
Further optionally, when being cached the file packet obtained from file server 150 using memory 240, also File packet can be decapsulated simultaneously, such as the file after decompression is also cached in memory 240.In this way, file handler 220, in the subsequent content obtained in file packet, can save the process decapsulated to file packet, but can directly obtain The file decapsulated is taken, which further improves treatment effeciencies.
The network according to the invention server 140, the chained address that can be sent according to client, obtains and is grounded with the chain The corresponding multiple webpage associated documents in location are simultaneously combined and return to client, to reduce in client and network clothes File the number of transmissions between business device 140, improves the speed of client analyzing web page, and also enhance network server 140 performance.
Fig. 3 shows the flow diagram of network request processing method 300 according to an embodiment of the invention.This method 300 are suitable for executing in the network server 140 in network system shown in Fig. 1, to handle the request from client, and And client is returned to obtain corresponding content according to the chained address content in request.
Network request processing method 300 starts from step S310.In step s310, network server 140 is received Request is parsed, and obtains revision identification information and file identification information included in the request.Request is usually one Chained address, according to an example, the request is for example are as follows:
s0.qhimg.com/;static;js;/jquery-1.6.2.min,qtool,search/456efab43.js。
The request is the chained address of special configuration, wherein " s0.qhimg.com " is the domain name of network server 140.? The chained address is parsed in step S310, and obtains revision identification information therein " 456efab43 " and files-designated Knowledge information ";static;js;/ jquery-1.6.2.min, qtool, search " and file suffixes name " js ".
It should be noted that in chained address, various pieces are linked at one with "/" character according to a kind of implementation It rises.Further optionally, therefore file suffixes name is linked to version by multiple webpage associated documents file suffixes name having the same After this identification information.When obtaining revision identification information, can extract between file suffixes name and immediate "/" character Content as revision identification information, and extract before revision identification information, until "/" nearest apart from domain name in link Content between character is as file identification information.
According to one embodiment, revision identification information is calculated according to the file content of the All Files in file packet Obtained hashed value, revision identification information can be used for uniquely identifying file packet substantially at this time.
However, the implementation of step S310 is not only restricted to this, it is possible to obtain version identifier letter from chained address The mode of breath and file identification information is all within protection scope of the present invention.
Then, in step s 320, it receives in the step S310 revision identification information parsed and file identification information, and File packet associated with the revision identification information is obtained according to revision identification information.Step S320 can use various ways To obtain file packet.According to first embodiment, which can be sent to file server 150.File Server 150 therefrom searches file packet corresponding with the revision identification information, and returns to network server 140.According to Two embodiments are in step s 320, related to revision identification information by the file packet previously obtained from file server 150 It is cached in network server 140 to connection.Therefore, associated with some revision identification information when to obtain in step s 320 It when file packet, can first determine whether to be cached with this document packet in network server 140, if it is not, such as first embodiment party Formula is such, obtains file packet corresponding with the revision identification information from file server 150, and simultaneously in network server It is cached in 140.
File packet is the file packet that multiple webpage associated documents are packaged together.Such as it can be by the related text of multiple webpages Part is compressed into the file packet of a compression.For example, being directed to chained address provided above, file packet be can be 456efab43.zip file,
After obtaining file packet, in step s 320, the file identification information that meeting basis is obtained from step S310, from One or more file corresponding with file identification information is obtained in this document packet.As described above, file identification information packet The information of one or more file corresponding with the information is included.For example, being obtained by taking chained address provided above as an example File identification information be ";static;js;/ jquery-1.6.2.min, qtool, search " and file suffixes name " js ", Including " jquery-1.6.2.min.js ", " qtool.js " and " search.js " three files.Later step S320 meeting The file content of these three files is obtained from file packet, and is handled by step S330.In step S330, combine from text The file content for one or more file that part packet obtains, and the content combined is returned into client 110.Subsequent method 300 terminate.
According to one embodiment of present invention, multiple webpage associated documents are contained in file packet, and each chained address It may it is only necessary to obtain a part of webpage associated documents therein.Multiple webpage associated documents can have different catalogue knots These bibliographic structures can be also contained in file packet by structure when generating file packet.Therefore, when obtaining phase from file packet When closing file, also need to learn specific directory information of each file in file packet.
For this purpose, in step s310, one or more associated file is obtained also according to file identification information Full directory structural information.Specifically, file identification information include file identification common portion and one or more not Same part.In step s310, the common portion and each different piece in file identification information are obtained, and by common portion and Each different piece is respectively combined to generate one or more filename as the file information.
For example, by taking link example above as an example, the file identification information of acquisition be ";static;js;/jquery- 1.6.2.min, qtool, search " and file suffixes name " js ", wherein common portion be ";static;js;", and it is each not It is respectively " jquery-1.6.2.min ", " qtool " and " search " with part.Optionally, due to leading in original common portion Catalogue often is indicated containing symbol "/", when combining various pieces with symbol "/", can generate and obscure, therefore is generating public portion Timesharing, can using it is other meet (such as symbol ";") replace symbol "/".So generator 212 is before being combined, it is first First can by common portion symbol ";" "/" is replaced with, then, generator 212 can combine common portion and each different piece And file suffixes name, to generate following three filenames:
“/static/js/jquery-1.6.2.min.js”;
"/static/js/qtool.js";And
“/static/js/search.js”。
It then, in step s 320, can be according to the step S310 filename obtained with full directory, from decapsulation File packet in obtain corresponding with these filenames file content, and be supplied to step S330.
Optionally, in step s310, application identification information also is parsed from the chained address of request.According to a kind of reality Mode is applied, further includes application identification information between the domain name part and file identification information of chained address, in step s310, Application identification information can be parsed according to the concatenation character "/" of the various pieces of chained address.Then, in step S320 In, can also the application identification information that parses of receiving step S310, and application identification information and revision identification information one will be utilized It rises, obtains corresponding file packet from file server 150.Although as described above, single revision identification information can be marked uniquely Know file packet.But in some embodiments, the file content of the possible not all file of revision identification information is hashed Calculate as a result, and being possible to be exactly a timestamp.Therefore, if by application identification information and revision identification information phase group It closes, this can uniquely identify file packet completely.
Further optionally, in network server 140, the file packet obtained from file server 150 is cached When, file packet can also be decapsulated into (for example, decompression) simultaneously, such as the file after decompression is also cached to network server In 140.In this way, in step s 320, in the subsequent content obtained in file packet, can save and be decapsulated to file packet Process, but the file decapsulated can be directly acquired, which further improves treatment effeciencies.
The network according to the invention request processing method 300, the chained address that can be sent according to client obtain and are somebody's turn to do The corresponding multiple webpage associated documents in chained address are simultaneously combined and return to client, thus reduce in client and File the number of transmissions between network server 140, improves the speed of client analyzing web page, and also enhances network clothes The performance of business device 140.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, knot is not been shown in detail Structure and technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims than feature more features expressly recited in each claim.More precisely, as following As claims reflect, inventive aspect is all features less than single embodiment disclosed above.Therefore, it abides by Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself As a separate embodiment of the present invention.
Those skilled in the art should understand that the module of the equipment in example disclosed herein or unit or groups Part can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned at and the equipment in the example In different one or more equipment.Module in aforementioned exemplary can be combined into a module or furthermore be segmented into multiple Submodule.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
In addition, be described as herein can be by the processor of computer system or by executing by some in the embodiment The combination of method or method element that other devices of the function are implemented.Therefore, have for implementing the method or method The processor of the necessary instruction of element forms the device for implementing this method or method element.In addition, Installation practice Element described in this is the example of following device: the device be used for implement as in order to implement the purpose of the invention element performed by Function.
As used in this, unless specifically stated, come using ordinal number " first ", " second ", " third " etc. Description plain objects, which are merely representative of, is related to the different instances of similar object, and is not intended to imply that the object being described in this way must Must have the time it is upper, spatially, sequence aspect or given sequence in any other manner.
Although the embodiment according to limited quantity describes the present invention, above description, the art are benefited from It is interior it is clear for the skilled person that in the scope of the present invention thus described, it can be envisaged that other embodiments.Additionally, it should be noted that Language used in this specification primarily to readable and introduction purpose and select, rather than in order to explain or limit Determine subject of the present invention and selects.Therefore, without departing from the scope and spirit of the appended claims, for this Many modifications and changes are obvious for the those of ordinary skill of technical field.For the scope of the present invention, to this Invent done disclosure be it is illustrative and not restrictive, it is intended that the scope of the present invention be defined by the claims appended hereto.

Claims (9)

1. a kind of network server, suitable for handling the request from client, wherein the request is chained address;The network Server includes:
Resolver, suitable for being parsed to the request, to obtain revision identification information included by the request, application identification information And file identification information;
File handler, is suitable for obtaining file packet associated with the revision identification information, application identification information, and from described One or more file corresponding with file identification information is obtained in file packet;And
Output device, suitable for combining the file content of one or more acquired file and returning to the client;
The resolver includes file identification generator, suitable for the common portion of acquisition file identification from the request and one Or multiple and different parts, the common portion and each different piece are combined to generate one or more files-designated Know information;
The file handler is further adapted for being obtained according to one or more of file identification informations one or more of The specific directory information of file is obtained and one or more of texts based on the specific directory information from the file packet The corresponding file content of part identification information.
2. network server as described in claim 1 further includes that memory and the file handler judge the storage Whether the file packet is cached in device, if it is not, obtaining from the file server being connected with network server communication Take file packet associated with the revision identification information.
3. network server as described in claim 1, wherein file handler is further adapted for acquired file packet and text The file for including in part packet stores in memory together, and the file identification information is filename.
4. the network server as described in any of claim 1-3, wherein the revision identification information is according to the text The hashed value that the file content of All Files in part packet is calculated.
5. a kind of network request processing method, suitable for handling the request from client in network server, wherein described to ask It asks as chained address;The method comprising the steps of:
The request is parsed, to obtain revision identification information included by the request, application identification information and file identification Information;
Obtain file packet associated with the revision identification information, application identification information, and obtain from the file packet and One or more corresponding file of file identification information;And
The file content of one or more acquired file of combination simultaneously returns to the client;
Wherein, the step of request being parsed further include: from the request obtain file identification common portion and one Or multiple and different parts, and the common portion and each different piece are combined to generate one or more text Part identification information;
It is described that one or more file corresponding with file identification information is obtained from the file packet, comprising: according to institute The specific directory information that one or more file identification information obtains one or more of files is stated, based on described specific Directory information obtains file content corresponding with one or more of file identification informations from the file packet.
6. network request processing method as claimed in claim 5, wherein the step of obtaining file packet further include: judge that network takes It whether is cached with this document packet in business device, if it is not, obtaining from the file server being connected with network server communication Take file packet associated with the revision identification information.
7. network request processing method as claimed in claim 5, further comprises the steps of:
The file for including in acquired file packet and file packet is stored in network server together, and the file Identification information is filename.
8. the network request processing method as described in any of claim 5-7, wherein according to the revision identification information The hashed value that the file content of All Files in the file packet is calculated.
9. a kind of network system, comprising:
Network server as described in any of claim 1-4;
With the file server of the network server communication linkage;And
Multiple client,
Wherein the client sends to the network server and requests, wherein the request is chained address;
The network server receives the request, parses revision identification information and file identification information from the request, from The file server obtains file packet associated with the revision identification information, and acquisition and this article from the file packet One or more corresponding file of part identification information, and combine the content of the file and return to the client.
CN201410138846.1A 2014-04-08 2014-04-08 A kind of network request processing method, network server and network system Expired - Fee Related CN104980464B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410138846.1A CN104980464B (en) 2014-04-08 2014-04-08 A kind of network request processing method, network server and network system
PCT/CN2015/076114 WO2015154682A1 (en) 2014-04-08 2015-04-08 Network request processing method, network server, and network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410138846.1A CN104980464B (en) 2014-04-08 2014-04-08 A kind of network request processing method, network server and network system

Publications (2)

Publication Number Publication Date
CN104980464A CN104980464A (en) 2015-10-14
CN104980464B true CN104980464B (en) 2019-07-23

Family

ID=54276564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410138846.1A Expired - Fee Related CN104980464B (en) 2014-04-08 2014-04-08 A kind of network request processing method, network server and network system

Country Status (2)

Country Link
CN (1) CN104980464B (en)
WO (1) WO2015154682A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610628B (en) * 2016-01-20 2019-05-03 北京智驾互联信息服务有限公司 Computer system
CN106055383A (en) * 2016-05-26 2016-10-26 北京京东尚科信息技术有限公司 Request processing method and device
CN108984189B (en) * 2017-05-31 2022-04-12 北京京东尚科信息技术有限公司 Module parsing method and device
CN111240653B (en) * 2019-12-31 2024-02-02 瑞庭网络技术(上海)有限公司 Interface document generation method, device and readable storage medium
CN111723062A (en) * 2020-06-28 2020-09-29 天津联想协同科技有限公司 File synchronization method, device and storage medium

Citations (4)

* 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
CN102480397A (en) * 2010-11-26 2012-05-30 金蝶软件(中国)有限公司 Method and equipment for accessing internet pages
CN103595782A (en) * 2013-11-11 2014-02-19 中安消技术有限公司 Distributed storage system and method for downloading files thereof
CN103699669A (en) * 2013-12-30 2014-04-02 北京奇虎科技有限公司 Method for message pushing in browser and browser terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8700803B2 (en) * 2009-06-03 2014-04-15 Netcordant, Inc. Web page optimization
CN102109989A (en) * 2009-12-29 2011-06-29 阿里巴巴集团控股有限公司 Method, device and system for controlling browser cache

Patent Citations (4)

* 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
CN102480397A (en) * 2010-11-26 2012-05-30 金蝶软件(中国)有限公司 Method and equipment for accessing internet pages
CN103595782A (en) * 2013-11-11 2014-02-19 中安消技术有限公司 Distributed storage system and method for downloading files thereof
CN103699669A (en) * 2013-12-30 2014-04-02 北京奇虎科技有限公司 Method for message pushing in browser and browser terminal

Also Published As

Publication number Publication date
CN104980464A (en) 2015-10-14
WO2015154682A1 (en) 2015-10-15

Similar Documents

Publication Publication Date Title
JP2020194567A (en) Methods and systems for web content generation
US9547721B2 (en) Native application search results
CN104980464B (en) A kind of network request processing method, network server and network system
CN102789484A (en) Method and device for webpage information processing
US8250466B2 (en) Computer and method for converting a web page
NZ566291A (en) Methods and devices for post processing rendered web pages and handling requests of post processed web pages
CN106933965B (en) Method for requesting static resource
US9984052B2 (en) Verifying content of resources in markup language documents
TW201800962A (en) Webpage file sending method, webpage rendering method and device and webpage rendering system
CN103383687A (en) Page processing method and device
TW201437826A (en) Method and device for combining webpage style address
CN106126693A (en) The sending method of the related data of a kind of webpage and device
KR101287371B1 (en) Method and Device for Collecting Web Contents and Computer-readable Recording Medium for the same
CN104182425A (en) Static page generation method for multi-language website
CN106156128B (en) Method and device for realizing multi-language and multi-domain name service of website
CN108108381B (en) Page monitoring method and device
CN105808727A (en) Website cross-screen adaptation technology architecture and adaptation method based on HTML5 (Hypertext Markup Language 5)
CN104980465B (en) File release system, file release method and network server
CN104978340B (en) Link address generation method, device and server
CN103440134A (en) Webkit kernel-based storage resource service local extension method
Dharmasiri et al. Web browsers on smart mobile devices: A gap analysis on the state of the art
Ünlü et al. Transcoding web pages via stylesheets and scripts for saving energy on the client
Brodie et al. Accelerating Dynamic Web Content Delivery Using Keyword-based Fragment Detection.
JP2011048730A (en) Method for assisting browsing of webpage
KR101084546B1 (en) Module for additional search in search result and method for additional search in search result using the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190723

Termination date: 20210408