转载:http://dnhome.wordpress.com/2011/10/06/apache-wampserver-enable-compression-gzip/
Compression is a simple and effective way to speed up your site. Modern browsers supports gzip compressed content and are capable of uncompressing gzip data into plain text.
If you use WAMP (www.wampserver.com) to develop websites on a local PC, then you probably don’t need to enable gzip (server-side file compression to reduce the amount of data transferred when a web page is requested).
Enabling gzip on WAMP is actually quite easy, though most of the advice I found was wrong. Here’s what worked for me.
1. Enable Apache module to support gzip, you much enable two module: deflate_module and headers_module
2. Config file type to support gzip on WAMP Server. Open the Apache’s httpd.conf and add the following code at the end of file.
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript
3. Restart apache server
4. DONE
评论
发表评论