CN106790662A - A kind of HTTP data compression method of use key frame compression - Google Patents

A kind of HTTP data compression method of use key frame compression Download PDF

Info

Publication number
CN106790662A
CN106790662A CN201710041144.5A CN201710041144A CN106790662A CN 106790662 A CN106790662 A CN 106790662A CN 201710041144 A CN201710041144 A CN 201710041144A CN 106790662 A CN106790662 A CN 106790662A
Authority
CN
China
Prior art keywords
file
compression
compressed
http
demand file
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
CN201710041144.5A
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.)
Jinan Inspur Hi Tech Investment and Development Co Ltd
Original Assignee
Jinan Inspur Hi Tech Investment and Development 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 Jinan Inspur Hi Tech Investment and Development Co Ltd filed Critical Jinan Inspur Hi Tech Investment and Development Co Ltd
Priority to CN201710041144.5A priority Critical patent/CN106790662A/en
Publication of CN106790662A publication Critical patent/CN106790662A/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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data
    • 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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a kind of data compression method, more particularly to a kind of HTTP data compression method of use key frame compression.A kind of HTTP data compression method of use key frame compression of the invention, it can be according to the difference of setting suffix name, classified compression is carried out for crucial data framing, can be using canonical algorithms such as common ZIP compressions, data are transferred to browser end according to different situations, can respectively be decompressed according to the difference of suffix name.

Description

A kind of HTTP data compression method of use key frame compression
Technical field
The present invention relates to a kind of data compression method, more particularly to a kind of HTTP of use key frame compression Data compression method.
Background technology
HTTP(HTTP)It is a kind of procotol being most widely used on internet.All of internet File must comply with this standard.Design HTTP initial purpose is to provide for a kind of side for issuing and receiving html page Method.Nineteen sixty American Ted Nelson contemplates a kind of method by computer disposal text message, and is referred to as super literary This(hypertext), this becomes the development foundation of http hypertext transfer protocol standard architecture.
HTTP is the standard of a client and server end request and response(TCP).Client is terminal user, service Device end is website.By using Web browser, web crawlers or other instruments, client initiates one to server Designated port(Default port is 80)HTTP request.We claim this client user agent(user agent).Response Server on store some resources, such as html file and image.Our this answering server is called source server (origin server).Multiple intermediate layers are there may be in the middle of user agent and source server, such as is acted on behalf of, gateway, or Tunnel(tunnels).Although ICP/IP protocol is most popular application on internet, http protocol does not specify to use It and based on it support layer.In fact, HTTP can be in any other Internet protocol or real on other networks It is existing.HTTP only assumes that its lower-layer protocols provides reliable transmission, and any agreement that can provide this guarantee can be made by it With.
Under prior art, in HTTP data transfer, its decompression method is relatively simple, for a large amount of numbers During according to transmission, transmission speed is there is slowly, the low problem of decompression efficiency.
The content of the invention
In order to solve problem of the prior art, the invention provides a kind of HTTP of use key frame compression Data compression method, it can carry out classified compression, can adopt according to the difference of setting suffix name for crucial data framing The canonical algorithm such as compress with common ZIP, data are transferred to browser end according to different situations, can be according to suffix name not It is same to be decompressed respectively.
The technical solution adopted in the present invention is as follows:
A kind of HTTP data compression method of use key frame compression, comprises the following steps:
After A, data server receive the HTTP request of browser, check whether browser supports that HTTP compresses;
If B, support, the difference of the suffix name of the demand file according to setting, classify for crucial data framing Compression.
In step B, compression uses common ZIP compression standard algorithms.
Step B is specifically included:
B1, described demand file are HTML or CSS static files, then data server to compression buffer directory in check whether There is the newest compressed file of demand file;
If B2, the compressed file of demand file do not exist, data server returns to unpressed demand file to browser, and The compressed file of demand file is deposited in buffer directory is compressed;
If B3, the newest compressed file of demand file have been present, the compressed file of demand file is directly returned;
If B4, demand file are living documents, data server dynamic compression content simultaneously returns to browser, and compressed content is not deposited It is put into compressed cache catalogue.
The beneficial effect brought of technical scheme that the present invention is provided is:
A kind of data compression transmission method of use key frame data compression of the invention, data are transferred to according to different situations Browser end, can respectively be decompressed according to the difference of suffix name, and it can improve decompression efficiency, so as to improve transmission Speed.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of method flow of the HTTP data compression method of use key frame compression of the invention Figure.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment one
A kind of HTTP data compression method of use key frame compression of the present embodiment, including procedure below:
(1)After data server receives the HTTP request of browser, check whether browser supports that HTTP compresses;
(2)If browser supports HTTP compressions, data server checks the suffix name of demand file;
(3)If demand file is the static files such as HTML, CSS, checked whether in data server to compression buffer directory Newest compressed file through there is demand file;
(4)If the compressed file of demand file does not exist, data server returns to unpressed demand file to browser, and The compressed file of demand file is deposited in buffer directory is compressed;
(5)If the newest compressed file of demand file has been present, the compressed file of demand file is directly returned;
(6)If demand file is living document, data server dynamic compression content simultaneously returns to browser, and compressed content is not deposited It is put into compressed cache catalogue.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all it is of the invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.

Claims (3)

1. a kind of HTTP data compression method of use key frame compression, comprises the following steps:
After A, data server receive the HTTP request of browser, check whether browser supports that HTTP compresses;
If B, support, the difference of the suffix name of the demand file according to setting, classify for crucial data framing Compression.
2. the HTTP data compression method that a kind of use key frame according to claim 1 compresses, it is special Levy and be, in described step B, compression uses common ZIP compression standard algorithms.
3. the HTTP data compression method that a kind of use key frame according to claim 1 and 2 compresses, its It is characterised by, described step B is specifically included:
B1, described demand file are HTML or CSS static files, then data server to compression buffer directory in check whether There is the newest compressed file of demand file;
If B2, the compressed file of demand file do not exist, data server returns to unpressed demand file to browser, and The compressed file of demand file is deposited in buffer directory is compressed;
If B3, the newest compressed file of demand file have been present, the compressed file of demand file is directly returned;
If B4, demand file are living documents, data server dynamic compression content simultaneously returns to browser, and compressed content is not deposited It is put into compressed cache catalogue.
CN201710041144.5A 2017-01-20 2017-01-20 A kind of HTTP data compression method of use key frame compression Pending CN106790662A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710041144.5A CN106790662A (en) 2017-01-20 2017-01-20 A kind of HTTP data compression method of use key frame compression

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710041144.5A CN106790662A (en) 2017-01-20 2017-01-20 A kind of HTTP data compression method of use key frame compression

Publications (1)

Publication Number Publication Date
CN106790662A true CN106790662A (en) 2017-05-31

Family

ID=58944785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710041144.5A Pending CN106790662A (en) 2017-01-20 2017-01-20 A kind of HTTP data compression method of use key frame compression

Country Status (1)

Country Link
CN (1) CN106790662A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241005A (en) * 2019-07-19 2021-01-19 杭州海康威视数字技术股份有限公司 Method and device for compressing radar detection data and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101126977A (en) * 2007-08-28 2008-02-20 激动集团股份有限公司 ISAPI based WEB static page generation method
CN101610268A (en) * 2009-07-16 2009-12-23 杭州华三通信技术有限公司 A kind of implementation method of keyword filtration and equipment
CN106033448A (en) * 2015-03-17 2016-10-19 阿里巴巴集团控股有限公司 Method and device for compressing Html page

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101126977A (en) * 2007-08-28 2008-02-20 激动集团股份有限公司 ISAPI based WEB static page generation method
CN101610268A (en) * 2009-07-16 2009-12-23 杭州华三通信技术有限公司 A kind of implementation method of keyword filtration and equipment
CN106033448A (en) * 2015-03-17 2016-10-19 阿里巴巴集团控股有限公司 Method and device for compressing Html page

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241005A (en) * 2019-07-19 2021-01-19 杭州海康威视数字技术股份有限公司 Method and device for compressing radar detection data and storage medium
CN112241005B (en) * 2019-07-19 2024-05-31 杭州海康威视数字技术股份有限公司 Compression method, device and storage medium of radar detection data

Similar Documents

Publication Publication Date Title
US10142434B2 (en) Method and apparatus for reducing network resource transmission size using delta compression
US9497284B2 (en) Apparatus and method for caching of compressed content in a content delivery network
US6604106B1 (en) Compression and delivery of web server content
KR100540495B1 (en) A method and apparatus for compressing a continuous, indistinct data stream
US6457054B1 (en) System for reducing user-visibility latency in network transactions
CN104081739B (en) Compression and the data difference device and system in Intrusion Detection based on host/path of differentiation engine are utilized in overlay network
US8984164B2 (en) Methods for reducing latency in network connections and systems thereof
TWI670611B (en) Web file sending method, webpage rendering method and device, webpage rendering system
WO2015000361A1 (en) Packet compression method and apparatus
JP2014534492A5 (en)
CN102546612B (en) Remote procedure call implementation method based on remote direct memory access (RDMA) protocol in user mode
CN102184231A (en) Method and device for acquiring page resources
CN102638580A (en) Webpage information processing method and webpage information processing device
US6532492B1 (en) Methods, systems and computer program products for cache management using admittance control
US7636769B2 (en) Managing network response buffering behavior
KR100624142B1 (en) Gateway apparatus and method for wireless data service
CN106790662A (en) A kind of HTTP data compression method of use key frame compression
JP2003288261A (en) Data transferring device, data transferring method, and program
WO2012119496A1 (en) Pre-reading method and equipment
CN103686852B (en) A kind of method, equipment and Wireless acceleration system that interaction data is processed
WO2015117677A1 (en) Method and software for transmitting website content
KR20000067045A (en) Image transcoding apparatus for reducing gif size and it's method
CN106302795A (en) C/S application cache solution based on HTTP request head
Jain et al. Compressing Data Traffic with an Active Image Transcoding Proxy in a Local Consumer Environment
Deng et al. A review of network latency optimization techniques

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

RJ01 Rejection of invention patent application after publication