What is gzip? (Skip if you know)
Gzip is the GNU zip abbreviation, it is a GNU Free software file compression program. First created by Jean-loup Gailly and Mark Adler for file compression in UNIX systems. We often use the file suffix. gz in Linux, which is the gzip format. Today has become a very popular data compression format, or a file format, used on the Internet. The gzip encoding on the HTTP protocol is a technique used to improve the performance of Web applications. Large-volume Web sites often use gzip compression technology to allow users to experience faster speeds. This is generally referred to as a function installed in the WWW server, when someone to access the Web site in this server, the server in this function will compress the contents of the Web page after the transfer to the visiting Computer browser display. Generally, the plain text content can be compressed to 40% of the original size.
What are the benefits of gzip opening? (Understood and skipped)
Open gzip will be in the Web page before data transfer, first use GZIP compression and then transmitted to the client, after the client received by the browser decompression display. This reduces the amount of data transmitted over the network and increases the speed of browsing.
I have not opened it so well that I have despised myself first. Hey, the following and put the open method affixed, there is a need for themselves.
IIS6.0 enable the Gzip compression method:
1. New Web service extensions (figure below)
DLL path: "C:\windows\system32\inetsrv\gzip.dll", and then enabled.
2, Web Services to open the HTTP compression support (pictured below)
The temporary directory needs to read and write permissions to the IIS user.
3, modify the IIS configuration file MetaBase.xml
File path: "C:\windows\system32\inetsrv\" (please back up to elsewhere), search for "HcDynamicCompressionLevel" after opening, and modify (make sure that you have backed up ) "Compression/deflate" and "compression/gzip" two fragments of the contents. The following figures N and B are intended to add JS, CSS, and PHP to the compression category, and the number 9 represents the compression level.
(Figure N)
(Figure B)
4. Restart the IIS service to take effect
—————————————————— Dividing and cutting —————————————————
Apache enables the Gzip compression method:
1. Open the module and add the configuration item
A, vi/etc/httpd/conf/httpd.conf
B, find LoadModule (/loadmodule), add "LoadModule deflate_module modules/mod_deflate.so" this line
C, add Configuration item (next section)
Copy Code code as follows:
<ifmodule mod_deflate.c>
# compression Level 9
Deflatecompressionlevel 9
# compression type HTML, XML, PHP, CSS, JS
Setoutputfilter DEFLATE
Addoutputfilterbytype DEFLATE text/html text/plain text/xml application/x-javascript
Addoutputfilter DEFLATE js CSS
</IfModule>
2, restart the Apache to make it effective
Service httpd Start
—————————————————— Dividing and cutting —————————————————
Check to see if gzip enabled, can be here: http://tool.chinaz.com/Gzips/
Finally, I would appreciate the information provided by the following units:
1, http://baike.baidu.com/view/966625.htm
2, http://blog.163.com/jar-c/blog/static/116401250201012593819494/