The traffic on the website is a very valuable resource (in the case of the author's vps, the traffic is counted as money = _=!). How to save this valuable resource, minimize the amount of data transfer between the web server and the browser; reduce the cost of the website? Open web gzip compression is the best choice. The gzip compression ratio is relatively high, and it can effectively transmit less than 70% of byte data. Don't worry about browsers not supporting gzip-compressed web pages. Because almost all browsers (more than 95%) support decompressing gzip pages. In this article, I will introduce you to the commonly used server apache and nginx how to open the gzip compression function of the webpage. There is always one for you ^_^.
# BEGIN GZIP #apacheEnable gzip compression, pre-install gzip module <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript </ifmodule> # END GZIP
#nginxEnable gzip compression, put in location gzip on; gzip_min_length 1000; gzip_buffers 4 8k; gzip_http_version 1.1; gzip_types text/text text/html text/plain text/xml Text/css application/x-javascript application/javascript;
If you want to know if gzip compression is successful, go to “Webmaster Tools<quo;Net to check it yourself
What does raid mean? Raid is the abbreviation of English Redundant Array of Independent Disks. In Ch
I am a netizen, working as a network administrator in a company. At the beginning of the year, some
Windows 2003 firewall function introduction The firewall provided by Windows 2003 is called Interne
In the previous section we introduced how to install Windows 2000 Se
Nginx automatically deletes log implementation methods regularly
How to solve storage problems encountered in server virtualization
Three tips to help you effectively reduce data center energy consumption
Two coups, let the DNS server centrally resolve the domain name
How to configure a jsp server in linux environment
IIS can not start the error in several cases summary
Virtual host security settings (2)
Explain how IIS web server handles ASP.NET requests (Figure)
Sharing English XP operating system Chinese characters garbled problem
Windows8 solves the problem of network configuration error and can't access the Internet.
Win7 system removes disk protection tutorial
How to install January Windows 10 Technology Preview
Win7 system can not open the task manager how to do
Autocad2007 3D Drawing Tutorial: Drawing Simple Spring
Win8 shortcuts large collection
Windows 10 for tablets and PCs will be pushed for free upgrade on July 29
The next generation of Windows is named Win9?
Let's put aside the restrictions! Let win2008 force the password to change regularly. Go to