CN109391685A - A kind of page response method and system, application server - Google Patents

A kind of page response method and system, application server Download PDF

Info

Publication number
CN109391685A
CN109391685A CN201811125245.1A CN201811125245A CN109391685A CN 109391685 A CN109391685 A CN 109391685A CN 201811125245 A CN201811125245 A CN 201811125245A CN 109391685 A CN109391685 A CN 109391685A
Authority
CN
China
Prior art keywords
character library
interface file
target
character
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811125245.1A
Other languages
Chinese (zh)
Inventor
周广
韩卫平
冀哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201811125245.1A priority Critical patent/CN109391685A/en
Publication of CN109391685A publication Critical patent/CN109391685A/en
Pending legal-status Critical Current

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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The present embodiments relate to a kind of page response method and systems, application server.Wherein, it this method comprises: obtaining application page request, is parsed to using page request, obtains interface file;ID is generated for interface file;Judge in preset caching character library whether to include target character library corresponding with application page request according to ID;When to be, then interface file and target character library are sent to the user terminal.It provides through this embodiment: generating ID to carry out interface file obtained after parsing to application page request, when caching in character library includes target character library (character library corresponding with application page request), the technical solution for being then sent to the user terminal interface file and target character library, avoid the technology drawback that consuming time is long in the prior art, the efficiency for improving page response improves the technical effect of the experience of user.

Description

A kind of page response method and system, application server
Technical field
The present embodiments relate to display applied technical field more particularly to a kind of page response method and systems, application Server.
Background technique
With the development of internet and technology of Internet of things, the terminal devices such as mobile phone, tablet computer have obtained widely universal And application, force background server to have stronger processing capacity.
It in the prior art, is according to the character library name got in order to reinforce the interaction between user terminal and server Claim, corresponding character library is called according to character library title, to carry out the displaying of the page according to the character library.
However, currently, known character library only for Chinese, just there is thousands of kinds.If including other languages, figure Symbol etc. is just more.In general, the size of a character library is about several million magnitude.All kinds of visit devices and tool are respectively Support mutually different font file format, common format for example: ttf, otf, eot, svg, woff, woff2 etc., wherein Biggish character library wants nearly 100,000,000.Since character library type is more, the probability very little of local character library hit;Simultaneously as character library volume is big, So can generally generate the time delay of several seconds to several minutes, the experience of user can be greatly reduced.This time delay comes from network transmission word Library file, it is also time-consuming even if transmission process is through overcompression.So if using scheme in the prior art, it can be significantly The time for expending user, reduce the experience of user.
Summary of the invention
In order to solve the above technical problems, the embodiment of the invention provides a kind of page response method and systems, application service Device.
According to an aspect of an embodiment of the present invention, the embodiment of the invention provides a kind of page response method, the sides Method includes:
Obtain the application page request that user terminal is sent;
Application page request is parsed, interface file is obtained;
ID is generated for the interface file;
Judge in preset caching character library whether to include target word corresponding with application page request according to the ID Library;
When to be, then the interface file and the target character library are sent to the application terminal.
It provides through this embodiment: generating ID to carry out interface file obtained after parsing to application page request, when When caching in character library including target character library (character library corresponding with application page request), then interface file and target character library are sent out The technology drawback for avoiding that consuming time is long in the prior art to the technical solution of user terminal is sent, page response is improved Efficiency improves the technical effect of the experience of user.
Further, the method also includes:
When to be no, then the spcial character in the interface file is obtained;
The spcial character is sent to character library server, so that the character library server is taken out from preset special character library Target character corresponding with the spcial character is taken, and new character library is generated according to the target character;
Obtain the new character library of the character library server feedback;
The interface file and the new character library are sent to the user terminal.
It provides through this embodiment: when caching does not have target character library in character library, then will acquire the spy in interface file Spcial character is sent to character library server by different character, to generate new character library by character library server, and is getting character library clothes It is engaged in after the new character library of device feedback, the technical solution that interface file and new character library are sent to the user terminal avoids the prior art In the technology drawback long for download time, also avoid the technology drawback for directly abandoning the character library of more preferable effect, realize saving The technical effect of time.
Further, the method also includes:
When to be no, then the interface file is sent to character library server, so as to described in character library server acquisition Spcial character in interface file extracts target character corresponding with the spcial character from preset special character library, and New character library is generated according to the target character;
Obtain the new character library of the character library server feedback;
The interface file and the new character library are sent to the user terminal.
It provides through this embodiment: when caching does not have target character library in character library, then interface file being sent to character library Server generates new character library according to interface file by character library server, and after getting the new character library of character library server feedback, The technical solution that interface file and new character library are sent to the user terminal avoids technology long for download time in the prior art Drawback also avoids the technology drawback for directly abandoning the character library of more preferable effect, realizes time-saving technical effect.
Further, the method also includes:
Establish the corresponding relationship between the new character library and the ID;
Obtain the target application page request that the user terminal is sent;
The target application page request is parsed, target interface file is obtained;
For the target interface file generated Target id;
When the Target id is identical as the ID, then the new character library is called according to the ID;
The target interface file and the new character library are sent to the user terminal.
It provides through this embodiment: the technical solution of the corresponding relationship between new character library and ID is established, due to different Application page requests corresponding interface file different, i.e., different application pages requests corresponding ID different, answers when to be identical When with page request, then corresponding ID is identical, to realize when there is the request of same application page, directly according to ID tune With new character library, is improved efficiency to realize, reduce the technical effect of load.
Further, the method also includes:
The ID is written in the interface file, the interface file for carrying the ID is obtained;
The interface file for carrying the ID is sent to the user terminal, so that the user terminal is according to described ID pairs The new character library is downloaded.
Other side according to an embodiment of the present invention, it is described the embodiment of the invention also provides a kind of application server Application server further include: obtain module, parsing module, generation module, judgment module and sending module, wherein
The module that obtains is used for: obtaining the application page request that user terminal is sent;
The parsing module is used for: being parsed to application page request, is obtained interface file;
The generation module is used for: generating ID for the interface file;
The judgment module is used for: according to the ID judge in preset caching character library whether include and the application page Request corresponding target character library;
The respond module is used for: when to be, then the interface file and the target character library being sent to the use Family terminal.
It provides: being obtained by acquisition module to using page request, by parsing module to application through this embodiment Page request is parsed, by generation module be interface file generate ID, by judgment module to caching character library in whether have target Character library is judged, when caching in character library includes target character library (character library corresponding with application page request), then by sending The technical solution that interface file and target character library are sent to the user terminal by module, avoids what consuming time is long in the prior art Technology drawback improves the efficiency of page response, improves the technical effect of the experience of user.
Further, the acquisition module is also used to: when to be no, then obtaining the spcial character in the interface file;
The sending module is also used to: the spcial character being sent to character library server, so as to the character library server Target character corresponding with the spcial character is extracted from preset special character library, and is generated newly according to the target character Character library;
The acquisition module is also used to: obtaining the new character library of the character library server feedback;
The sending module is also used to: the interface file and the new character library are sent to the user terminal.
Further, the sending module is also used to: when to be no, then the interface file being sent to character library service Device, so that the character library server obtains the spcial character in the interface file, extraction and institute from preset special character library The corresponding target character of spcial character is stated, and new character library is generated according to the target character;
The acquisition module is also used to: obtaining the new character library of the character library server feedback;
The sending module is also used to: the interface file and the new character library are sent to the user terminal.
Further, the application server further include: establish module and calling module, wherein
The module of establishing is used for: establishing the corresponding relationship between the new character library and the ID;
The module that obtains is also used to: obtaining the target application page request that the user terminal is sent;
The parsing module is also used to: being parsed to the target application page request, is obtained target interface file;
The generation module is also used to: for the target interface file generated Target id;
The calling module is used for: when the Target id is identical as the ID, then calling the new word according to the ID Library;
The sending module is also used to: the target interface file and the new character library are sent to the user terminal.
Further, the application server further include: writing module, wherein
The write module is used for: the ID being written in the interface file, the interface file for carrying the ID is obtained;
The sending module is also used to: the interface file for carrying the ID being sent to the user terminal, so as to described User terminal is downloaded the new character library according to the ID.
Other side according to an embodiment of the present invention, the embodiment of the invention also provides a kind of page response system, institutes The system of stating includes: user terminal and application server, wherein
The user terminal is used for: Xiang Suoshu application server sends the application page request of user;
The application server is used for: being parsed to the application page request received, is obtained interface file, be The interface file generates ID, according to the ID judge in preset caching character library whether include and the application page is requested pair The interface file and the target character library are then sent to the user terminal when to be by the target character library answered.
There is provided through this embodiment: user, to application server sending application page request, is applied by user terminal Server generates ID to analyzing using page request, is carried out according to ID to whether being stored with target character library in caching character library Judgement, and when to be, interface file and target character library are sent to the user terminal, so that user terminal is shown the page Technical solution, the technical effect for realizing the efficient of the page and precisely showing saved the time of user, improved user's Experience.
Further, the system also includes character library servers, wherein
The application server is also used to: when to be no, then obtaining the spcial character in the interface file, and will be described Spcial character is sent to the character library server;
The character library server is used for: target word corresponding with the spcial character is extracted from preset special character library Symbol generates new character library according to the target character, and the new character library is sent to the application server;
The application server is also used to: the interface file and the new character library are sent to the user terminal.
Further, the system also includes character library servers, wherein
The application server is also used to: when to be no, the interface file being sent to the character library server;
The character library server is used for: being obtained the spcial character in the interface file, is taken out from preset special character library Target character corresponding with the spcial character is taken, new character library is generated according to the target character, and the new character library is sent out It send to the application server;
The application server is also used to: the interface file and the new character library are sent to the user terminal.
Further, the application server is also used to: being established the corresponding relationship between the new character library and the ID, is obtained The target application page request for taking the user terminal to send, parses the target application page request, obtains target Interface file is the target interface file generated Target id, when the Target id is identical as the ID, then according to the ID The new character library is called, the target interface file and the new character library are sent to the user terminal.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of page response method provided in an embodiment of the present invention;
Fig. 2 be another embodiment of the present invention provides a kind of page response method flow diagram;
Fig. 3 be another embodiment of the present invention provides a kind of page response method flow diagram;
Fig. 4 is a kind of module diagram of application server provided in an embodiment of the present invention;
Fig. 5 is a kind of page response system structure diagram provided in an embodiment of the present invention;
Fig. 6 is a kind of signaling diagram of page response method provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, propose such as specific system structure, interface, technology it The detail of class, to understand thoroughly the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system and method Detailed description, in order to avoid unnecessary details interfere description of the invention.
The embodiment of the invention provides a kind of page response method and systems, application server.
According to an aspect of an embodiment of the present invention, the embodiment of the invention provides a kind of page response methods.
First embodiment:
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of page response method provided in an embodiment of the present invention.
As shown in Figure 1, this method comprises:
S100: the application page request that user terminal is sent is obtained.
S200: it is parsed to using page request, obtains interface file.
Wherein, interface includes the files such as html, css.
S300: ID is generated for interface file.
ID can be generated to for interface file by mode in the prior art, it is to be understood that different interface files Corresponding ID is not identical.That is, interface file and ID are one-to-one relationship.That is, same application page request has and only one ID is corresponding.
Specifically, the hash value of interface file can be used as the ID of interface file.
S400: judge in preset caching character library whether to include target character library corresponding with application page request according to ID.
Locally common character library can be cached in advance, obtain caching character library.It pre-establishes corresponding between ID and character library Relationship.The corresponding character library of different ID is different.
But after the ID that certain interface file has been determined, whether target character library corresponding with application page request is judged according to ID It is stored caching character library in.
S500: when to be, then interface file and target character library are sent to the user terminal.
Present invention hair is applied to application server.That is, user passes through user terminal to the application server sending application page Request, by the application server realizing above method.
To make the technical solution to the present embodiment carry out more thorough explanation, now in conjunction with the prior art, to the present embodiment Technical solution is explained in detail.
When well-known, character library is many kinds of at present, only for the known character library of Chinese, just there is thousands of kinds, And the size of a character library is about several million magnitude.Common format is for example: ttf, otf, eot, svg, woff, woff2 etc. Deng wherein biggish character library wants nearly 100,000,000.It in the prior art, is that common character library is buffered in local.Specifically, according to word Library name is scanned for from local.But, it is contemplated that the operational efficiency of system, so, the character library of local cache is seldom.Cause This, is locally difficult have character library corresponding with character library title, then needs to download in background server and downloads corresponding character library. Then, the technology drawback that consuming time is long in the prior art has been resulted in.
However, being to be parsed to using page request, and generated to the interface file after parsing in the present embodiment ID determines target character library corresponding with application page request in caching character library according to ID.Request corresponding boundary in different application interface Face file is not identical, then corresponding ID is not also just identical.By being determined target character library according to ID, call word can be promoted The efficiency in library improves the speed of response, improves the experience of user.
It provides through this embodiment: generating ID to carry out interface file obtained after parsing to application page request, when When caching in character library including target character library (character library corresponding with application page request), then interface file and target character library are sent out The technology drawback for avoiding that consuming time is long in the prior art to the technical solution of user terminal is sent, page response is improved Efficiency improves the technical effect of the experience of user.
Second embodiment:
Referring to Fig. 2, Fig. 2 be another embodiment of the present invention provides a kind of page response method flow diagram.
As shown in Fig. 2, the present embodiment is based on first embodiment.In the present embodiment, this method further include:
S600: when to be no, then the spcial character in interface file is obtained.
When caching in character library there is no when target character library, then spcial character is obtained.Wherein, spcial character Shi Zhifei Ordinary symbol.
S700: being sent to character library server for spcial character, so that character library server is extracted from preset special character library Target character corresponding with spcial character, and new character library is generated according to target character.
New character library is generated by character library server, and the new character library of generation is fed back into application server.
S800: the new character library of character library server feedback is obtained.
S900: interface file and new character library are sent to the user terminal.
And in the prior art, directly it is downloaded from background server, and the consuming such as time delay will necessarily be generated by downloading The technology drawback of user time.Certainly, the problem of part system is in order to avoid elapsed time is then directly abandoned using special word Symbol, greatly reduces the experience of user.
And in the present embodiment, when from special character library extract need (corresponding with application interface request) target word Symbol, forms new character library.On the one hand, the technology drawback that consuming time is long in the prior art is avoided, on the other hand, also ensures use The experience at family.
There is provided through this embodiment: when caching does not have target character library in character library, then it is special in interface file to obtain Spcial character is sent to character library server by character, to generate new character library by character library server, and is getting character library service After the new character library of device feedback, by interface file and new character library to the technical solution responded using page request, avoid existing Have in technology for the technology drawback that download time is long, also avoids the technology drawback for directly abandoning the character library of more preferable effect, realize Time-saving technical effect.
3rd embodiment:
Referring to Fig. 3, Fig. 3 be another embodiment of the present invention provides a kind of page response method flow diagram.
As shown in figure 3, the present embodiment is based on first embodiment.The present embodiment is mutually juxtaposed with second embodiment Embodiment.In the present embodiment, this method further include:
S1000: when to be no, being then sent to character library server for interface file, so that character library server obtains interface text Spcial character in part extracts target character corresponding with spcial character from preset special character library, and according to target word Symbol generates new character library;
S1100: the new character library of character library server feedback is obtained;
S1200: interface file and new character library are sent to the user terminal.
In a second embodiment, when caching does not have target character library in character library, then interface file is obtained by application server In spcial character, and spcial character is sent to character library server, new character library is generated according to spcial character by character library server.
And in the present embodiment, when caching does not have target character library in character library, then application server directly sends interface To character server, spcial character is obtained by character library server, and generates new character library.
It provides through this embodiment: when caching does not have target character library in character library, then interface file being sent to character library Server generates new character library according to interface file by character library server, and after getting the new character library of character library server feedback, The technical solution that interface file and new character library are sent to the user terminal avoids technology long for download time in the prior art Drawback also avoids the technology drawback for directly abandoning the character library of more preferable effect, realizes time-saving technical effect.
Fourth embodiment:
The present embodiment is based on second or third embodiments.It in the present embodiment, should after S800 or S1100 Method further include:
S1: the corresponding relationship between new character library and ID is established;
S2: the target application page request that user terminal is sent is obtained;
S3: parsing target application page request, obtains target interface file;
S4: for target interface file generated Target id;
S5: when Target id is identical as ID, then new character library is called according to ID;
S6: target interface file and new character library are sent to the user terminal.
After getting the target application page request of user terminal transmission again, then first to the target application page request It is parsed, as described in first embodiment, each application page request can correspond to an interface file, a corresponding ID. So first judging whether to have been stored in its identical ID, when true when obtaining the corresponding Target id of target application page request Have existed in fact certain ID it is identical with Target id when, then directly according to the new character library of ID calling.
It provides through this embodiment: the technical solution of the corresponding relationship between new character library and ID is established, due to different Application page requests corresponding interface file different, i.e., different application pages requests corresponding ID different, answers when to be identical When with page request, then corresponding ID is identical, to realize when there is the request of same application page, directly according to ID tune With new character library, is improved efficiency to realize, reduce the technical effect of load.
5th embodiment:
The present embodiment is based on the second any embodiment into fourth embodiment.In the present embodiment, this method is also Include:
ID is written in interface file, the interface file for carrying ID is obtained;
The interface file for carrying ID is sent to the user terminal, so that user terminal is downloaded new character library according to ID.
In second, third and fourth embodiment, application server is directly by interface file after receiving new character library It is sent to the user terminal together with new character library.
And in the present embodiment, application server is not to say new word after receiving the new character library of character library server feedback Library feeds back to user terminal, but ID is written in interface file, and the interface file for being written with ID is sent to the user terminal, User terminal sends downloading request after receiving the interface file for carrying ID, to application server, and application server is receiving It is sent to the user terminal to after downloading request, then by new character library.When the memory shared by the new character library is larger, then mentioned using the present embodiment The technical solution of confession.
Other side according to an embodiment of the present invention, the embodiment of the invention also provides a kind of application servers.
Referring to Fig. 4, Fig. 4 is a kind of module diagram of application server provided in an embodiment of the present invention.
As shown in figure 4, the application server further include: obtain module, parsing module, generation module, judgment module and hair Send module, wherein
It obtains module to be used for: obtaining the application page request that user terminal is sent;
Parsing module is used for: being parsed to using page request, is obtained interface file;
Generation module is used for: generating ID for interface file;
Whether judgment module is used for: judging in preset caching character library to include mesh corresponding with application page request according to ID Marking-up library;
Sending module is used for: when to be, being then sent to the user terminal interface file and target character library.
It provides: being obtained by acquisition module to using page request, by parsing module to application through this embodiment Page request is parsed, by generation module be interface file generate ID, by judgment module to caching character library in whether have target Character library is judged, when caching in character library includes target character library (character library corresponding with application page request), then by sending The technical solution that interface file and target character library are sent to the user terminal by module, avoids what consuming time is long in the prior art Technology drawback improves the efficiency of page response, improves the technical effect of the experience of user.
In a kind of technical solution in the cards, obtains module and be also used to: when to be no, then obtaining in interface file Spcial character;
Sending module is also used to: spcial character being sent to character library server, so that character library server is from preset special Target character corresponding with spcial character is extracted in character library, and new character library is generated according to target character;
It obtains module to be also used to: obtaining the new character library of character library server feedback;
Sending module is also used to: interface file and new character library are sent to the user terminal.
In a kind of technical solution in the cards, sending module is also used to: when to be no, being then sent to institute's face file Character library server extracts and spy so that character library server obtains the spcial character in interface file from preset special character library The corresponding target character of different character, and new character library is generated according to target character;
It obtains module to be also used to: obtaining the new character library of character library server feedback;
Sending module is also used to: interface file and new character library are sent to the user terminal.
In a kind of technical solution in the cards, application server further include: establish module and calling module, wherein
It establishes module to be used for: establishing the corresponding relationship between new character library and ID;
It obtains module to be also used to: obtaining the target application page request that user terminal is sent;
Parsing module is also used to: being parsed to target application page request, is obtained target interface file;
Generation module is also used to: for target interface file generated Target id;
Calling module is used for: when Target id is identical as the ID, then calling new character library according to ID;
Sending module is also used to: target interface file and new character library are sent to the user terminal.
In a kind of technical solution in the cards, application server further include: writing module, wherein
Writing module is used for: ID being written in interface file, the interface file for carrying ID is obtained;
Sending module is also used to: the interface file for carrying ID being sent to the user terminal, so that user terminal is according to ID pairs New character library is downloaded.
Other side according to an embodiment of the present invention, the embodiment of the invention also provides a kind of page response systems.
Referring to Fig. 5, Fig. 5 is a kind of page response system structure diagram provided in an embodiment of the present invention.
As shown in figure 5, the system includes: user terminal and application server, wherein
User terminal is used for: the application page request of user is sent to application server;
Application server is used for: being parsed to the application page request received, is obtained interface file, is interface file ID is generated, judges in preset caching character library whether to include target character library corresponding with application page request according to ID, when being yes When, then interface file and target character library are sent to the user terminal.
There is provided through this embodiment: user, to application server sending application page request, is applied by user terminal Server generates ID to analyzing using page request, is carried out according to ID to whether being stored with target character library in caching character library Judgement, and when to be, interface file and target character library are sent to the user terminal, so that user terminal is shown the page Technical solution, the technical effect for realizing the efficient of the page and precisely showing saved the time of user, improved user's Experience.
In conjunction with Fig. 5 it is found that in a kind of technical solution in the cards, the system further include: character library server, wherein
Application server is also used to: when to be no, then obtaining the spcial character in interface file, and spcial character is sent To character library server;
Character library server is used for: target character corresponding with spcial character is extracted from preset special character library, according to Target character generates new character library, and new character library is sent to application server;
Application server is also used to: interface file and new character library are sent to the user terminal
Wherein, character library server and application server can be disposed respectively, i.e., character library server and application server are two Mutually independent server.Certainly, character library server can be together with application server deployment, i.e. character library server is taken with character library The form of business module is present in application server.
In conjunction with Fig. 5 it is found that in a kind of technical solution in the cards, the system further include: character library server, wherein
Application server is also used to: when to be no, interface file being sent to character library server;
Character library server is used for: obtain interface file in spcial character, from preset special character library extract with it is special The corresponding target character of character generates new character library according to target character, and new character library is sent to application server;
Application server is also used to: interface file and new character library are sent to the user terminal.
In a kind of technical solution in the cards, application server is also used to: being established corresponding between new character library and ID Relationship obtains the target application page request that user terminal is sent, parses to target application page request, obtain target circle Face file is target interface file generated Target id, when Target id is identical as ID, then new character library is called according to ID, by target Interface file and new character library are sent to the user terminal.
To make the technical solution to the present embodiment carry out more thorough explanation, now in conjunction with Fig. 6 to the technical side of the present embodiment Case is explained in detail, and Fig. 6 is a kind of signaling diagram of page response method provided in an embodiment of the present invention.
It is as shown in Figure 6:
1, user passes through user terminal to application server sending application page request.Wherein, terminal can be computer, hand Machine, plate etc. can carry out the user equipment of (editor) to (electronic document).The structure of terminal includes: processor and memory. Processor is the control centre of terminal, and the various pieces of entire terminal are connected by various bus interface, by running or executing The software program (and/or module) being stored in memory, and the data being stored in memory are called, execute each of terminal Kind function and processing data, to carry out integral monitoring to terminal.
2, application server is parsed to using page request, obtains interface file.Wherein, interface file generally comprises The files such as html, css.Application server generates unique ID after parsing obtains interface file, for interface file.That is, different The corresponding ID in interface it is not identical, an interface file has and only one ID is corresponding.That is, an application page request Only correspond to an ID.ID can select the hash value of interface file.Judge whether target character library corresponding with ID has been buffered in Local (i.e. caching character library), if being buffered in local, jumps to 3, if continuing to hold there is no corresponding caching in local Row 4.
3, interface file and target character library are sent to the user terminal by application server.Wherein, application server can be by ID It is attached in interface file, is sent to the user terminal.By taking css file as an example, it is illustrated to ID is attached to interface file:
4, application server calls the interface of character library server, interface file is sent to character library server, alternatively, by boundary Face file and ID are sent to character library server together.
5, character library server retrieves interface file, the spcial character for including in search interface file.That is, retrieval circle The nonregular character for including in the file of face.Target character corresponding with spcial character is extracted from preset special character library, it is raw At new character library.When interface file and ID are sent to character library server simultaneously by application server, then character library server is established Corresponding relationship between new character library and ID.
It should be noted that can also retrieve by application server to interface file, spcial character is obtained, and will be special Different character and interface file are sent to character library server, are taken out from preset special character library by character library server according to spcial character Target character corresponding with spcial character is taken, new character library is generated, and new character library is sent to application server, by application service Device establishes corresponding relationship between new character library and ID.
That is, application server can only transmission interface file, can also be to application server simultaneously to application server Send interface file and ID.
6, character library server returns to new character library to application server.
7, user terminal receives the interface file and new character library that application server returns, and carries out page presentation.If local New character library is not downloaded, then sends the request that new character library is downloaded to application server.The mode of this second load character library be for The mode of compatible existing most users terminal, i.e. interface file and new character library load respectively.But if new character library compared with It is small, then character library directly can be sent to interface file and send user terminal, to reduce the time downloaded again, to promote speed Degree.
8, application server sends the request for downloading new character library to character library server, and will acquire new character library and be sent to use Family terminal.
9, the corresponding relationship between application server caching character library and ID, when other users access same page again, It can then call directly.That is, being generated and the when receiving the first application page request of user terminal transmission according to above-mentioned steps One application page requests corresponding new character library.When receiving the request of the second application page again, the second application page is being generated When requesting corresponding ID, since an application page request has and only one ID is corresponding, when the request of the second application page When ID is identical as the ID that the first application page is requested, then it is found that the request of the first application page and the request of the second application page are phase Same request, as opens the request of the same page, then directly calls new character library according to ID.
Reader should be understood that in the description of this specification reference term " one embodiment ", " is shown " some embodiments " The description of example ", " specific example " or " some examples " etc. means specific features described in conjunction with this embodiment or example, structure Or feature is included at least one embodiment or example of the invention.In the present specification, to the schematic of above-mentioned term Statement need not be directed to identical embodiment or example.Moreover, specific features, structure or the feature of description can be any It can be combined in any suitable manner in a or multiple embodiment or examples.In addition, without conflicting with each other, the technology of this field The feature of different embodiments or examples described in this specification and different embodiments or examples can be combined by personnel And combination.
It is apparent to those skilled in the art that for convenience of description and succinctly, the dress of foregoing description The specific work process with unit is set, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can select some or all of unit therein according to the actual needs to realize the mesh of the embodiment of the present invention 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes all or part of each embodiment method of the present invention Step.And storage medium above-mentioned include: USB flash disk, it is mobile hard disk, read-only memory (ROM, Read-Only Memory), random Access various Jie that can store program code such as memory (RAM, Random Access Memory), magnetic or disk Matter.
It should also be understood that magnitude of the sequence numbers of the above procedures are not meant to execute sequence in various embodiments of the present invention It is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention Journey constitutes any restriction.
More than, only a specific embodiment of the invention, but scope of protection of the present invention is not limited thereto, and it is any to be familiar with Those skilled in the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or substitutions, These modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be wanted with right Subject to the protection scope asked.

Claims (10)

1. a kind of page response method, which is characterized in that the described method includes:
Obtain the application page request that user terminal is sent;
Application page request is parsed, interface file is obtained;
ID is generated for the interface file;
Judge in preset caching character library whether to include target character library corresponding with application page request according to the ID;
When to be, then the interface file and the target character library are sent to the user terminal.
2. page response method according to claim 1, which is characterized in that the method also includes:
When to be no, then the spcial character in the interface file is obtained;
The spcial character is sent to character library server, so as to the character library server extracted from preset special character library with The corresponding target character of the spcial character, and new character library is generated according to the target character;
Obtain the new character library of the character library server feedback;
The interface file and the new character library are sent to the user terminal.
3. page response method according to claim 1, which is characterized in that the described method includes:
When to be no, then the interface file is sent to character library server, so that the character library server obtains the interface Spcial character in file, the extraction target character corresponding with the spcial character from preset special character library, and according to The target character generates new character library;
Obtain the new character library of the character library server feedback;
The interface file and the new character library are sent to the user terminal.
4. page response method according to claim 2 or 3, which is characterized in that the method also includes:
Establish the corresponding relationship between the new character library and the ID;
Obtain the target application page request that the user terminal is sent;
The target application page request is parsed, target interface file is obtained;
For the target interface file generated Target id;
When the Target id is identical as the ID, then the new character library is called according to the ID;
The target interface file and the new character library are sent to the user terminal.
5. the page response method according to any one of claim 2-4, which is characterized in that the method also includes:
The ID is written in the interface file, the interface file for carrying the ID is obtained;
The interface file for carrying the ID is sent to the user terminal, so as to the user terminal according to the ID to described New character library is downloaded.
6. a kind of application server, which is characterized in that the application server further include: obtain module, parsing module, generate mould Block, judgment module and sending module, wherein
The module that obtains is used for: obtaining the application page request that user terminal is sent;
The parsing module is used for: being parsed to application page request, is obtained interface file;
The generation module is used for: generating ID for the interface file;
Whether the judgment module is used for: judging in preset caching character library to include requesting with the application page according to the ID Corresponding target character library;
The sending module is used for: when to be, then it is whole the interface file and the target character library to be sent to the user End.
7. a kind of page response system, which is characterized in that the system comprises: user terminal and application server, wherein
The user terminal is used for: Xiang Suoshu application server sends the application page request of user;
The application server is used for: being parsed to the application page request received, is obtained interface file, be described Whether interface file generates ID, judge in preset caching character library to include corresponding with application page request according to the ID The interface file and the target character library are then sent to the user terminal when to be by target character library.
8. page response system according to claim 7, which is characterized in that the system also includes: character library server, In,
The application server is also used to: when to be no, then obtaining the spcial character in the interface file, and will be described special Character is sent to the character library server;
The character library server is used for: target character corresponding with the spcial character is extracted from preset special character library, New character library is generated according to the target character, and the new character library is sent to the application server;
The application server is also used to: the interface file and the new character library are sent to the user terminal.
9. page response system according to claim 7, which is characterized in that the system also includes: character library server, In,
The application server is also used to: when to be no, the interface file being sent to the character library server;
The character library server is used for: obtain the spcial character in the interface file, from preset special character library extract with The corresponding target character of the spcial character generates new character library according to the target character, and the new character library is sent to The application server;
The application server is also used to: the interface file and the new character library are sent to the user terminal.
10. page response system according to claim 8 or claim 9, which is characterized in that
The application server is also used to: establishing the corresponding relationship between the new character library and the ID, it is whole to obtain the user The target application page request sent is held, the target application page request is parsed, target interface file is obtained, for institute Target interface file generated Target id is stated, when the Target id is identical as the ID, then the new word is called according to the ID The target interface file and the new character library are sent to the user terminal by library.
CN201811125245.1A 2018-09-26 2018-09-26 A kind of page response method and system, application server Pending CN109391685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811125245.1A CN109391685A (en) 2018-09-26 2018-09-26 A kind of page response method and system, application server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811125245.1A CN109391685A (en) 2018-09-26 2018-09-26 A kind of page response method and system, application server

Publications (1)

Publication Number Publication Date
CN109391685A true CN109391685A (en) 2019-02-26

Family

ID=65419104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811125245.1A Pending CN109391685A (en) 2018-09-26 2018-09-26 A kind of page response method and system, application server

Country Status (1)

Country Link
CN (1) CN109391685A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110826005A (en) * 2019-11-13 2020-02-21 北大方正集团有限公司 File generation method and device, electronic equipment and storage medium
CN114327441A (en) * 2021-12-24 2022-04-12 中国联合网络通信集团有限公司 Webpage making processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572080A (en) * 2010-12-30 2012-07-11 上海亿人通信终端有限公司 Method for displaying complex characters on terminal
CN104462026A (en) * 2014-12-10 2015-03-25 中国科学院软件研究所 System and method for providing cloud word stock service
CN106033453A (en) * 2015-03-17 2016-10-19 北大方正集团有限公司 Character embedding method, character embedding system, browser and client
CN107704615A (en) * 2017-10-24 2018-02-16 北京有字库网络科技有限公司 Webpage font display methods and system based on Chinese font subset

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572080A (en) * 2010-12-30 2012-07-11 上海亿人通信终端有限公司 Method for displaying complex characters on terminal
CN104462026A (en) * 2014-12-10 2015-03-25 中国科学院软件研究所 System and method for providing cloud word stock service
CN106033453A (en) * 2015-03-17 2016-10-19 北大方正集团有限公司 Character embedding method, character embedding system, browser and client
CN107704615A (en) * 2017-10-24 2018-02-16 北京有字库网络科技有限公司 Webpage font display methods and system based on Chinese font subset

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110826005A (en) * 2019-11-13 2020-02-21 北大方正集团有限公司 File generation method and device, electronic equipment and storage medium
CN110826005B (en) * 2019-11-13 2022-12-16 北大方正集团有限公司 File generation method and device, electronic equipment and storage medium
CN114327441A (en) * 2021-12-24 2022-04-12 中国联合网络通信集团有限公司 Webpage making processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US7890600B2 (en) Data optimization system for decreasing data transmission volume from server to client
EP2724251B1 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
CN108023867B (en) Method for filtering mobile terminal webpage advertisement, gateway server and filtering server
US7318193B2 (en) Method and apparatus for automatic document generation based on annotation
CN107872437B (en) Method, device and server for service request
KR20130066603A (en) Initiating font subsets
US9954880B2 (en) Protection via webpage manipulation
CN112906024A (en) Data desensitization method, device, storage medium and server
US10049089B2 (en) Methods for compressing web page menus and devices thereof
CN112905178B (en) Service function page generation method, device, equipment and medium
CN109391685A (en) A kind of page response method and system, application server
EP2827261A1 (en) Method for bundling images and devices thereof
EP3393104B1 (en) Requests and responses processing methods, terminal, server and computer-readable media
CN113254819B (en) Page rendering method, system, equipment and storage medium
CN114489603A (en) Code generation method, apparatus, electronic device, medium, and product
CN110888869A (en) Data processing method and device
CN109710604A (en) Data processing method, device, system, computer readable storage medium
CN108363707B (en) Method and device for generating webpage
JP2002169818A (en) Device and system for supporting user
CN110417919B (en) Traffic hijacking method and device
CN112612611A (en) Information processing method, device and system
JPH10134087A (en) Document requesting device and method for prefetching related document
CN110347818B (en) Word segmentation statistical method and device, electronic equipment and computer readable storage medium
CN113515712B (en) Page generation method and device of integrated system, electronic equipment and storage medium
CN112199215B (en) Message processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190226

RJ01 Rejection of invention patent application after publication