CN106921741A - Dynamic web page method for reading data - Google Patents

Dynamic web page method for reading data Download PDF

Info

Publication number
CN106921741A
CN106921741A CN201710132043.9A CN201710132043A CN106921741A CN 106921741 A CN106921741 A CN 106921741A CN 201710132043 A CN201710132043 A CN 201710132043A CN 106921741 A CN106921741 A CN 106921741A
Authority
CN
China
Prior art keywords
data
web page
dynamic web
request
characteristic information
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
CN201710132043.9A
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.)
Sichuan Colt Horse Enterprise Management Co Ltd
Original Assignee
Sichuan Colt Horse Enterprise Management 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 Sichuan Colt Horse Enterprise Management Co Ltd filed Critical Sichuan Colt Horse Enterprise Management Co Ltd
Priority to CN201710132043.9A priority Critical patent/CN106921741A/en
Publication of CN106921741A publication Critical patent/CN106921741A/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/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • 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/56Provisioning of proxy services
    • 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/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5683Storage of data provided by user terminals, i.e. reverse caching
    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a kind of dynamic web page method for reading data, it is related to web technologies field.The dynamic web page method for reading data calculates the characteristic information of the dynamic web page data by using a proxy server, so that proxy server extract dynamic web page request of data include request of data head characteristic information can be compared with the characteristic information of dynamic web page data, if identical, the dynamic web page data of needs request are then accessed and are cached before explanation client, therefore proxy server only needs to feed back data cached extraction notice to the client, client extracts the dynamic web page data that notice extracts advance caching by receiving after data cached extraction is notified according to data cached, without consumption very big flow amount dynamic web page data are obtained to service server, and save flow, reduce the cost that user browses dynamic web page data.

Description

Dynamic web page method for reading data
Technical field
The present invention relates to web technologies field, in particular to a kind of dynamic web page method for reading data.
Background technology
Dynamic website refers to the website that web site contents can dynamically be changed according to different situations, and dynamic web page is not individually present Webpage is just fed back when the web page files of server, but browser send request, generally dynamic website passes through data Storehouse carries out framework.Dynamic website in addition to webpage to be designed, will also by database and being programmed to make website have it is more from Dynamic and senior function.It is usually that with asp, jsp, php, aspx etc. terminate that dynamic website is embodied in webpage, and static Web page Usually HTML (subset of standard generalized markup language) ends up.Dynamic website can realize interactive function, such as user's registration, letter Breath issue, product introduction, order management etc..
In the prior art, when client is to service server request dynamic web data, due to dynamic website because number According to unfixed so there is no LastModified attributes, it is impossible to accomplish data buffer storage.When client is asking net to dynamic website During page data, substantial amounts of repetitive requests and flow can be caused to waste, dynamic web page is browsed so as to cause to increase user The cost of data.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of dynamic web page method for reading data, with improvement The problem stated.
In a first aspect, a kind of dynamic web page method for reading data is the embodiment of the invention provides, the dynamic web page data Read method includes:
Receive the dynamic web page request of data of client transmission;
Extract the characteristic information of the request of data head that the dynamic web page request of data is included;
According to the dynamic web page request of data dynamic web page data are obtained to a service server;
Calculate the characteristic information of the dynamic web page data;
If the characteristic information of the dynamic web page data is identical with the characteristic information of request of data head, caching is sent Data are extracted and notified to the client.
Second aspect, the embodiment of the present invention additionally provides another dynamic web page method for reading data, is applied to dynamic Web data reads system, and the dynamic web page data reading system includes client, proxy server, service server, institute State proxy server and set up communication connection, the dynamic web page digital independent with the client, the service server respectively Method includes:
The client sends proxy server described in dynamic web page request of data;
The proxy server receives the dynamic web page request of data that the client sends;
The proxy server extracts the characteristic information of the request of data head that the dynamic web page request of data is included;
The proxy server obtains Dynamic Networks number of pages according to the dynamic web page request of data to the service server According to;
The proxy server calculates the characteristic information of the dynamic web page data;
If the characteristic information of the dynamic web page data is identical with the characteristic information of request of data head, the agency Server sends data cached extraction and notifies to the client;
The client extracts leading to data cached extraction for advance caching according to the data cached notice of extracting The dynamic web page data of MS connection.
Compared with prior art, the dynamic web page method for reading data that the present invention is provided, by using a proxy server The characteristic information of the dynamic web page data is calculated, so that what the dynamic web page request of data that proxy server is extracted was included The characteristic information of request of data head can be compared with the characteristic information of dynamic web page data, if identical, illustrate client The dynamic web page data of needs request are accessed and are cached before end, therefore proxy server only needs to feed back data cached carrying Notice is taken to the client, client notifies to extract by receiving after data cached extraction is notified according to data cached extraction The dynamic web page data of caching, Dynamic Networks number of pages is obtained without consuming very big flow amount to service server in advance According to.The dynamic web page method for reading data does not result in substantial amounts of repetitive requests and saves flow, reduces user and browses The cost of dynamic web page data, and speed of the user in Client browse webpage is improve, improve the viewing experience of user Sense.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description of the drawings
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Present invention implementation generally described and illustrated in accompanying drawing herein The component of example can be arranged and designed with a variety of configurations.Therefore, reality of the invention below to providing in the accompanying drawings The detailed description for applying example is not intended to limit the scope of claimed invention, but is merely representative of selected implementation of the invention Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made Every other embodiment, belongs to the scope of protection of the invention.
Fig. 1 is that proxy server provided in an embodiment of the present invention interacts schematic diagram with service server, client respectively;
Fig. 2 is the block diagram of proxy server provided in an embodiment of the present invention;
Fig. 3 is the flow chart of dynamic web page method for reading data provided in an embodiment of the present invention;
Fig. 4 is the flow chart of another dynamic web page method for reading data provided in an embodiment of the present invention.
Icon:100- clients;200- proxy servers;300- service servers;400- dynamic web pages digital independent is filled Put;101- processors;102- memories;103- storage controls;104- Peripheral Interfaces.
Specific embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground description, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Generally exist The component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and designed with a variety of configurations herein.Cause This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below Scope, but it is merely representative of selected embodiment of the invention.Based on embodiments of the invention, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
The dynamic web page method for reading data that present pre-ferred embodiments are provided can be applied to application ring as shown in Figure 1 In border.As shown in figure 1, client 100, proxy server 200 and service server 300 are located in network, by the network, Proxy server 200 carries out data interaction with client 100, service server 300 respectively.In the embodiment of the present invention, client At least one application program (Application, APP) is installed in end 100, it is corresponding with proxy server 200, it is that user carries For service.The proxy server 200 may be, but not limited to, the webserver, database server, cloud server etc.. The client 100 may be, but not limited to, smart mobile phone, PC (personal computer, PC), panel computer, individual Personal digital assistant (personal digital assistant, PDA), mobile internet surfing equipment (mobile Internet Device, MID) etc..The operating system of the client 100 may be, but not limited to, Android (Android) system, IOS (iPhone operating system) system, Windows phone systems, Windows systems etc..
Fig. 2 shows a kind of structured flowchart of the proxy server 200 that can be applied in the embodiment of the present invention.The agency Server 200 includes dynamic web page digital independent device 400, memory 102, storage control 103 and processor 101.
The memory 102, storage control 103 and processor 101, each element are directly or indirectly electrical each other Connection, to realize the transmission or interaction of data.For example, these elements each other can be by one or more communication bus or letter Number line is realized being electrically connected with.The dynamic web page digital independent device 400 can be with software or firmware including at least one (firmware) form is stored in the memory 102 or is solidificated in the operating system of the client 100 Software function module in (operating system, OS).The processor 101 is used to perform what is stored in memory 102 Executable module, for example, software function module or computer program that the dynamic web page digital independent device 400 includes.
Wherein, memory 102 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage 102Read Only Memory, ROM), programmable read only memory (Programmable Read- Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, memory 102 is used for storage program, and the processor 101 is performed described after execute instruction is received Program, the method performed by the service end of the stream process definition that foregoing embodiment of the present invention any embodiment is disclosed can apply to In processor 101, or realized by processor 101.
Processor 101 is probably a kind of IC chip, the disposal ability with signal.Above-mentioned processor 101 can Being general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), application specific integrated circuit (ASIC), It is ready-made programmable gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hard Part component.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.General processor Can be microprocessor or the processor 101 can also be any conventional processor 101 etc..
Various input/output devices are coupled to processor 101 and memory 102 by Peripheral Interface 104.In some implementations In example, Peripheral Interface 104, processor 101 and storage control 103 can be realized in one single chip.In some other reality In example, they can be realized by independent chip respectively.
It is appreciated that the structure shown in Fig. 2 be only illustrate, proxy server 200 may also include it is more more than shown in Fig. 2 or The less component of person, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can using hardware, software or Its combination is realized.
Fig. 3 is referred to, a kind of dynamic web page method for reading data is the embodiment of the invention provides, an agency service is applied to Device 200, the dynamic web page method for reading data includes:
Step S301:Receive the dynamic web page request of data of the transmission of a client 100.
It should be noted that in the present embodiment, the dynamic web page data are not necessarily referring to be mapped out according to dynamic web page data Dispaly state be dynamic webpage, but refer to using dynamic language formed dynamic web page data, for example PHP language, ASP language, The dynamic languages such as JSP language, the webpage being made with them all can with corresponding dynamic language as suffix name, for example, php, Asp etc., the webpage that this dynamic language makes is called dynamic web page by we.
For example, one section of dynamic web page data code can be:
For example, one section of dynamic web page data code can be:
Step S302:Extract the characteristic information of the request of data head that the dynamic web page request of data is included.
In the present embodiment, the characteristic information of the request of data head is including but not limited to following two:
The first:The characteristic information of request of data head includes for the Last-Modified identification fields of request of data head MD5 values.Wherein, the MD5 values that the Last-Modified identification fields of request of data head include are for client 100 is asked for the first time The dynamic web page data of proxy server 200, after proxy server 200 gets dynamic web page data, calculate and return to visitor The MD5 values that family end 100 preserves.For example, the MD5 values that the Last-Modified identification fields of request of data head include are “74AECA60509E242FEE81993C4D138D06”;Second, the characteristic information of request of data head is request of data head The cryptographic Hash that Last-Modified identification fields include.LastModified identification fields can return to web data and finally be repaiied The date and time for changing, the date and time that this is finally changed can be as the characteristic information of request of data head.Need explanation , request of data head characteristic information can not only be embodied in Last-Modified fields, it is also possible to be embodied in data please Other fields of the characteristic information of head are sought, is not limited herein.
Above-mentioned dynamic web page request of data is usually HTTP (HyperTextTransferProtocol) agreement, that is, surpass Text transfer protocol.Http protocol employs request/response model, and browser or other clients 100 send request, server Give response.For whole network resource transmission, dynamic web page request of data (is asked including message-header ) and message-body (i.e. data volume) two parts header.Wherein, message-header and message-body can be separated Send or receive.
Step S303:According to the dynamic web page request of data dynamic web page data are obtained to a service server 300.
Dynamic web page data include dynamic web page data head and dynamic web page data volume.
Step S304:Calculate the characteristic information of the dynamic web page data.
Specifically, when the Last-Modified identification fields that the characteristic information of request of data head is request of data head include MD5 values when, step S304 is the MD5 values that the dynamic web page data are calculated using MD5 algorithms;As the spy of request of data head During the cryptographic Hash that reference breath includes for the Last-Modified identification fields of request of data head, step S304 is using SHA algorithms Calculate the cryptographic Hash of the dynamic web page data.
Wherein, MD5 (Message Digest Algorithm 5) algorithm is the one of which of message digest algorithm, is used for Ensure that information transfer is completely consistent.Usually, the summary to an information is referred to as the fingerprint or digital signature of the message.I.e. should The characteristic information or identity information of data message, each dynamic web page data have unique MD5 values, and MD5 values are dynamic web page The MD5 values of the characteristic information of data, such as dynamic web page data are also " 74AECA60509E242FEE81993C4D138D06 ".
SHA algorithms are Secure Hash Algorithm, the message using SHA algorithms for length less than 2^64, SHA algorithm meetings Produce the eap-message digest of 160.Equally, the eap-message digest is also the fingerprint or digital signature of the message.I.e. the data are believed The characteristic information or identity information of breath, each dynamic web page data have unique cryptographic Hash.
Step S305:Judge the characteristic information of the dynamic web page data and request of data head characteristic information whether It is identical, if it is, step S306 is performed, if it is not, then performing step S307.
Step S306:Data cached extraction is sent to notify to the client 100.
It should be noted that the caching of dynamic web page data point many kinds:Server buffer, third party's caching, browser Caching etc..Wherein browser rs cache is Least-cost, because browser rs cache dependence is client 100, and is hardly consumed Take the resource of server end., at any time all in change, homepage frequent a few minutes of such as CNN.com are just more for some dynamic web page data Newly.And Web service is constant:Usual proxy server 200 knows the last modification time of the data that you are asked (i.e., Last-Modified identification fields), Last-Modified identification fields include the MD5 of the dynamic web page data of request in need Value or cryptographic Hash, i.e., the characteristic information of above-mentioned request of data head.
If client 100 extracts the number of the characteristic information of the request of data head that the dynamic web page request of data is included Characteristic information according to request header is identical, and (that is, Last-Modified identification fields include the dynamic web page data of request in need MD5 values or cryptographic Hash are consistent with the MD5 values or cryptographic Hash of dynamic web page data, then illustrate that client 100 is previously visited excessively identical Dynamic web page data.
Now, notify that to client 100 in the present embodiment, data are carried when proxy server 200 sends data cached extraction Take and notify to be but be not limited to using the characteristic information of request of data head or first state code, wherein first state code 304.Because proxy server 200 no longer resends the main body value client 100 of dynamic web page data, client 100 is received It is the dynamic web page data of corresponding loading local cache to data cached extraction notice, so as to save flow, and webpage Loading velocity is fast, improves the viewing experience sense of user.
Step S307:The dynamic web page data and the second conditional code are returned into the client 100.
In the present embodiment, the second conditional code can be but be not limited to 200.
Fig. 4 is referred to, the embodiment of the present invention additionally provides a kind of dynamic web page method for reading data, is applied to dynamic web page Data reading system.It should be noted that the dynamic web page method for reading data that the present embodiment is provided, its general principle and product Raw technique effect is identical with above-described embodiment, and to briefly describe, embodiment of the present invention part does not refer to part, refers to above-mentioned Embodiment in corresponding contents.The dynamic web page data reading system includes that client 100, proxy server 200, business take Business device 300, the proxy server 200 sets up communication connection, institute with the client 100, the service server 300 respectively Stating dynamic web page method for reading data includes:
Step S401:The client 100 sends proxy server 200 described in dynamic web page request of data.
Step S402:The proxy server 200 receives the dynamic web page request of data of the transmission of the client 100.
Step S403:The proxy server 200 extracts the request of data head that the dynamic web page request of data is included Characteristic information.
Step S404:The proxy server 200 is according to the dynamic web page request of data to the service server 300 Obtain dynamic web page data.
Step S405:The proxy server 200 calculates the characteristic information of the dynamic web page data.
What the characteristic information of the request of data head can be included using the Last-Modified identification fields of request of data head MD5 values, the characteristic information of the dynamic web page data can be using the MD5 values of dynamic web page data, and now step S405 can be with The MD5 values of the dynamic web page data are calculated using MD5 algorithms including the proxy server 200.
In addition, the characteristic information of the request of data head can also be using the Last-Modified marks of request of data head The cryptographic Hash that field includes, the characteristic information of the dynamic web page data can also be using the cryptographic Hash of dynamic web page data;This When step S405 can include that the proxy server 200 calculate the cryptographic Hash of the dynamic web page data using SHA algorithms.
Step S406:Proxy server 200 judges the characteristic information and the request of data head of the dynamic web page data Characteristic information it is whether identical, if it is, performing step S407.
If it is not, then client 100 receives the dynamic web page data of the transmission of the proxy server 200, and this is moved State web data is cached.
Step S407:The proxy server 200 sends data cached extraction and notifies to the client 100.
Step S408:The client 100 notifies to extract the slow with described of advance caching according to data cached the extraction Deposit data extracts the dynamic web page data for notifying association.
In sum, the dynamic web page method for reading data that the present invention is provided, institute is calculated by using a proxy server The characteristic information of dynamic web page data is stated, so that the data that the dynamic web page request of data that proxy server is extracted is included please Seeking the characteristic information of head can compare with the characteristic information of dynamic web page data, if identical, before illustrating client The dynamic web page data of needs request are accessed and are cached, therefore proxy server only needs to feed back data cached extraction notice To the client, client notifies to extract advance slow by receiving after data cached extraction is notified according to data cached extraction The dynamic web page data deposited, dynamic web page data are obtained without consumption very big flow amount to service server.This is moved State web data read method does not result in substantial amounts of repetitive requests and saves flow, reduces user and browses dynamic web page The cost of data, and speed of the user in Client browse webpage is improve, improve the viewing experience sense of user.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is also possible to pass through Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing Show the device of multiple embodiments of the invention, the architectural framework in the cards of method and computer program product, Function and operation.At this point, each square frame in flow chart or block diagram can represent one the one of module, program segment or code Part a, part for the module, program segment or code is used to realize holding for the logic function for specifying comprising one or more Row instruction.It should also be noted that at some as in the implementation replaced, the function of being marked in square frame can also be being different from The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they are sometimes Can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart The combination of the square frame in individual square frame and block diagram and/or flow chart, can use the function or the special base of action for performing regulation Realized in the system of hardware, or can be realized with the combination of computer instruction with specialized hardware.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion Divide, or modules individualism, it is also possible to which two or more modules are integrated to form an independent part.
If the function is to realize in the form of software function module and as independent production marketing or when using, can be with Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with Another entity or operation make a distinction, and not necessarily require or imply these entities or there is any this reality between operating The relation or order on border.And, term " including ", "comprising" or its any other variant be intended to the bag of nonexcludability Contain, so that process, method, article or equipment including a series of key elements are not only including those key elements, but also including Other key elements being not expressly set out, or it is this process, method, article or the intrinsic key element of equipment also to include. In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element Process, method, article or equipment in also there is other identical element.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, then it is not required in subsequent accompanying drawing It is further defined and is explained.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating In any this actual relation or order.And, term " including ", "comprising" or its any other variant be intended to Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.

Claims (10)

1. a kind of dynamic web page method for reading data, it is characterised in that the dynamic web page method for reading data includes:
Receive the dynamic web page request of data of client transmission;
Extract the characteristic information of the request of data head that the dynamic web page request of data is included;
According to the dynamic web page request of data dynamic web page data are obtained to a service server;
Calculate the characteristic information of the dynamic web page data;
If the characteristic information of the dynamic web page data is identical with the characteristic information of request of data head, send data cached Extract and notify to the client.
2. dynamic web page method for reading data according to claim 1, it is characterised in that the feature of the request of data head The MD5 values that information includes for the Last-Modified identification fields of request of data head, the characteristic information of the dynamic web page data It is the MD5 values of dynamic web page data,
The step of characteristic information of the calculating dynamic web page data, includes:
The MD5 values of the dynamic web page data are calculated using MD5 algorithms.
3. dynamic web page method for reading data according to claim 1, it is characterised in that the feature of the request of data head The cryptographic Hash that information includes for the Last-Modified identification fields of request of data head, the feature letter of the dynamic web page data It is the cryptographic Hash of dynamic web page data to cease;
The step of characteristic information of the calculating dynamic web page data, includes:
The cryptographic Hash of the dynamic web page data is calculated using SHA algorithms.
4. dynamic web page method for reading data according to claim 1, it is characterised in that data are extracted and notified as data please The characteristic information of head is sought,
If the characteristic information of the dynamic web page data is identical with the characteristic information of request of data head, number will be cached Notify to send to including according to extracting:
If the characteristic information of the dynamic web page data is identical with the characteristic information of request of data head, by request of data head Characteristic information send to the client.
5. dynamic web page method for reading data according to claim 1, it is characterised in that data extract notify to be the first shape State code,
If the characteristic information of the dynamic web page data is identical with the characteristic information of request of data head, number will be cached Notify to send to including according to extracting:
If the characteristic information of the dynamic web page data is identical with the characteristic information of request of data head, by first state code Send to the client.
6. dynamic web page method for reading data according to claim 1, it is characterised in that the dynamic web page digital independent Method also includes:
If the characteristic information of the dynamic web page data is different from the characteristic information of request of data head, by the Dynamic Networks Page data returns to the client.
7. dynamic web page method for reading data according to claim 1, it is characterised in that the dynamic web page digital independent Method also includes:
If the characteristic information of the dynamic web page data is different from the characteristic information of request of data head, by the second conditional code Return to the client.
8. a kind of dynamic web page method for reading data, it is characterised in that be applied to dynamic web page data reading system, the dynamic Web data read system include client, proxy server, service server, the proxy server respectively with the client End, the service server set up communication connection, and the dynamic web page method for reading data includes:
The client sends proxy server described in dynamic web page request of data;
The proxy server receives the dynamic web page request of data that the client sends;
The proxy server extracts the characteristic information of the request of data head that the dynamic web page request of data is included;
The proxy server obtains dynamic web page data according to the dynamic web page request of data to the service server;
The proxy server calculates the characteristic information of the dynamic web page data;
If the characteristic information of the dynamic web page data is identical with the characteristic information of request of data head, the agency service Device sends data cached extraction and notifies to the client;
The client extracts being closed with the data cached notice of extracting for advance caching according to the data cached notice of extracting The dynamic web page data of connection.
9. dynamic web page method for reading data according to claim 8, it is characterised in that the feature of the request of data head The MD5 values that information includes for the Last-Modified identification fields of request of data head, the characteristic information of the dynamic web page data It is the MD5 values of dynamic web page data,
The step of proxy server calculates the characteristic information of the dynamic web page data includes:
The proxy server calculates the MD5 values of the dynamic web page data using MD5 algorithms.
10. dynamic web page method for reading data according to claim 8, it is characterised in that the spy of the request of data head The cryptographic Hash that reference breath includes for the Last-Modified identification fields of request of data head, the feature of the dynamic web page data Information is the cryptographic Hash of dynamic web page data;
The step of proxy server calculates the characteristic information of the dynamic web page data includes:
The proxy server calculates the cryptographic Hash of the dynamic web page data using SHA algorithms.
CN201710132043.9A 2017-03-07 2017-03-07 Dynamic web page method for reading data Pending CN106921741A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710132043.9A CN106921741A (en) 2017-03-07 2017-03-07 Dynamic web page method for reading data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710132043.9A CN106921741A (en) 2017-03-07 2017-03-07 Dynamic web page method for reading data

Publications (1)

Publication Number Publication Date
CN106921741A true CN106921741A (en) 2017-07-04

Family

ID=59461672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710132043.9A Pending CN106921741A (en) 2017-03-07 2017-03-07 Dynamic web page method for reading data

Country Status (1)

Country Link
CN (1) CN106921741A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6397217B1 (en) * 1999-03-04 2002-05-28 Futuretense, Inc. Hierarchical caching techniques for efficient dynamic page generation
US20030182357A1 (en) * 2002-03-01 2003-09-25 Brian Chess Client-side caching of pages with changing content
US20070198924A1 (en) * 1999-03-02 2007-08-23 Hiroshi Koike Dynamic web page generation method and system
CN102932469A (en) * 2012-11-09 2013-02-13 北京奇虎科技有限公司 Method for achieving client browser and client browser
CN103401926A (en) * 2013-08-01 2013-11-20 星云融创(北京)信息技术有限公司 Method and device for improving network resource access speed
CN103428243A (en) * 2012-05-21 2013-12-04 阿里巴巴集团控股有限公司 Implementation method, device and system for static storage of dynamic webpage
CN103761257A (en) * 2013-12-30 2014-04-30 优视科技有限公司 Webpage handling method and system based on mobile browser
CN103778236A (en) * 2014-01-26 2014-05-07 网宿科技股份有限公司 Webpage data distribution processing method and device as well as webpage generation processing method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070198924A1 (en) * 1999-03-02 2007-08-23 Hiroshi Koike Dynamic web page generation method and system
US6397217B1 (en) * 1999-03-04 2002-05-28 Futuretense, Inc. Hierarchical caching techniques for efficient dynamic page generation
US20030182357A1 (en) * 2002-03-01 2003-09-25 Brian Chess Client-side caching of pages with changing content
CN103428243A (en) * 2012-05-21 2013-12-04 阿里巴巴集团控股有限公司 Implementation method, device and system for static storage of dynamic webpage
CN102932469A (en) * 2012-11-09 2013-02-13 北京奇虎科技有限公司 Method for achieving client browser and client browser
CN103401926A (en) * 2013-08-01 2013-11-20 星云融创(北京)信息技术有限公司 Method and device for improving network resource access speed
CN103761257A (en) * 2013-12-30 2014-04-30 优视科技有限公司 Webpage handling method and system based on mobile browser
CN103778236A (en) * 2014-01-26 2014-05-07 网宿科技股份有限公司 Webpage data distribution processing method and device as well as webpage generation processing method and device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
EROSWANG: "浏览器缓存详解:expires,cache-control,last-modified,etag详细说明", 《HTTP://BLOG.CSDN.NET/EROSWANG/ARTICLE/DETAILS/8302191》 *
R.FIELDING等: "RFC2616:Hypertext transfer protocol--HTTP/1.1", 《IETF》 *
孙佳丽: "Web应用中的客户端缓存技术研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
徐超: "基于动态内容的缓存加速技术——F5 Web Accelerator产品技术剖析", 《程序员》 *

Similar Documents

Publication Publication Date Title
US11546418B2 (en) Method, client, server, and system for sharing content
CN105930528B (en) Webpage caching method and server
US8935798B1 (en) Automatically enabling private browsing of a web page, and applications thereof
WO2016026384A1 (en) Client page display method, device and system
CN107948329A (en) A kind of cross-domain processing method and system
CN103546498B (en) It is a kind of that the method and apparatus accessing webpage is provided for mobile terminal
CN109376318B (en) Page loading method, computer readable storage medium and terminal equipment
CN107733972A (en) A kind of short linking analytic method, device and equipment
CN105589956B (en) A kind of method and device of user's portrait
CN106897336A (en) Web page files sending method, webpage rendering intent and device, webpage rendering system
CN103577526B (en) It is a kind of to verify method, system and browser that whether the page is changed
CN107315646B (en) Method and device for controlling data flow between page components
CN103383687A (en) Page processing method and device
CN110808868B (en) Test data acquisition method and device, computer equipment and storage medium
US20160342689A1 (en) Method, device and system for loading recommendation information and detecting web address
CN108897788A (en) Data crawling method, device, computer equipment and storage medium
CN106909690A (en) Network data caching method
CN106503111B (en) Webpage code-transferring method, device and client terminal
CN107645507A (en) A kind of data processing method, anti-swindle equipment and computer-readable recording medium
CN112069384A (en) Buried point data processing method, server and readable storage medium
CN102314494A (en) Method and equipment for processing webpage contents
US20140006918A1 (en) Method and system for web page rearrangement
CN109302493B (en) User information sharing method and device, electronic equipment and storage medium
CN107688650B (en) Web page generation method and device
CN106897452A (en) Dynamic web page digital independent device and system

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

RJ01 Rejection of invention patent application after publication