Website gzip compression

Source: Internet
Author: User

1. First step: Open IIS, enable HTTP compression service

Right-click Site, properties, and select Services. In the HTTP Compression box, select Compress application files and compress static files, set the maximum limit for temp directory and temp directory as needed

650) this.width=650; "Title = "111.jpg" src= "Https://s4.51cto.com/wyfs02/M01/99/B8/wKioL1lLgXLBKR7MAACKMqasXoY321.jpg-wh_500x0-wm_3-wmp_4-s_ 1084340379.jpg "alt=" wkiol1llgxlbkr7maackmqasxoy321.jpg-wh_50 "/>

2. Step Two: Enable Web services

650) this.width=650; "title=" 222.jpg "src=" https://s4.51cto.com/wyfs02/M02/99/B8/ Wkiol1llgbvilchnaac9r1eo7gu370.jpg-wh_500x0-wm_3-wmp_4-s_1917417407.jpg "alt=" Wkiol1llgbvilchnaac9r1eo7gu370.jpg-wh_50 "/>

3. Step Three: Stop the IIS Admin Service services in the service

Start > Run Input: services.msc

Locate the IIS Admin service stop in the services

4. Fourth Step: Modify MetaBase.xml

Start > Run input c:\windows\system32\inetsrv, find Metebase.xml, first back up, in modify. (Some servers do not need to modify this file to be used)

Search location = "/lm/w3svc/filters/compression/gzip"

Carefully check the code:

<iiscompressionscheme location = "/lm/w3svc/filters/compression/deflate" hccompressiondll= "%windir%\system32\inetsrv\gzip.dll" HcCreateFlags= "0" Hcdodynamiccompression= "true" hcdoondemandcompression= "true" hcdostaticcompression= "FALSE" Hcdynamiccompressionlevel= "0" hcfileextensions= "htm HTML txt" hcondemandcomplevel= "hcpriority=" 1 " hcscriptfileextensions= "asp dll exe" ></iiscompressionscheme><iiscompressionscheme location = "/LM/W3SVC /filters/compression/gzip "hccompressiondll="%windir%\system32\inetsrv\gzip.dll "HcCreateFlags=" 1 " Hcdodynamiccompression= "true" hcdoondemandcompression= "true" hcdostaticcompression= "true" Hcdynamiccompressionlevel= "0" hcfileextensions= "htm HTML txt" hcondemandcomplevel= "hcpriority=" 1 " hcscriptfileextensions= "asp dll exe" ></IISCOMPRESSIONSCHEME>

Replace with:

<iiscompressionscheme location = "/lm/w3svc/filters/compression/gzip" hccompressiondll= "%windir%\system32\inetsrv\gzip.dll" HcCreateFlags= "1" Hcdodynamiccompression= "true" hcdoondemandcompression= "true" hcdostaticcompression= "true" Hcdynamiccompressionlevel= "hcfileextensions=" HTML cssjshtm XML txt "hcondemandcomplevel=" hcpriority= "1" hcscriptfileextensions= "Phpdll" ></iiscompressionscheme><iiscompressionscheme location = "/LM/W3SVC/ Filters/compression/deflate "hccompressiondll="%windir%\system32\inetsrv\gzip.dll "HcCreateFlags=" 2 " Hcdodynamiccompression= "true" hcdoondemandcompression= "true" hcdostaticcompression= "true" Hcdynamiccompressionlevel= "hcfileextensions=" HTML cssjshtm XML txt "hcondemandcomplevel=" hcpriority= "1" hcscriptfileextensions= "Phpdll" ></IISCOMPRESSIONSCHEME>

Then, after saving the Metebase.xml, save it and start IIS again. This enables the GZIP compression to be enabled successfully.

This article is from the "high-tech blog" blog, please be sure to keep this source http://gpj1997.blog.51cto.com/12830710/1941011

Website gzip compression

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.