Want to speed up Web loading? Turn on gzip compression

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Website page volume is big, the website load is very slow, this is a lot of stationmaster very headache problem. But in order to reduce the volume, it is impossible to delete all the content, fish and bear paws can have both? The answer is yes. Many servers and space now support gzip compression. Using gzip compression can greatly reduce the volume of pages and speed up Web browsing.

gzip compression, what Dongdong? Gzip is a regular use of the Linux system to compress and decompress the file, the general use of GZIP compression can greatly accelerate the site. Sometimes the compression ratio is up to 80%, which has been tested recently, at least 40%, or quite well, For example, this site cheap bar after compression is as follows:

  

Gzip compression efficiency is very high, usually can achieve 70% compression rate, that is to say, if your Web page has 30K, after compression has become about 9K, the benefits have

can save bandwidth resources; Speed up loading.

Here's how to turn on gzip compression

1. Open gzip in Contol panel

In the "SoftWare and Services" column, "Optimize Website":

  

  

By default, only three MIME types in the box are compressed, and CSS and JS can be compressed if we choose Compress all content. Of course the control Panel's gzip compression is server-based, control Panel only provides a friendly interface, if your technology is blind, use the Control Panel to open gzip is the best way.

2.Direct Admin to open gzip

If it is da space how to do it, because the DA space backstage does not have this function option, don't worry, actually can use. htaccess file to achieve, very powerful oh, look at the code: Setoutputfilter DEFLATE

Addoutputfilterbytype DEFLATE HTML text/css image/gif jpeg image/png application/x-javascript

Just put the code in the. htaccess file and upload it to the root directory of the site.

This article from the cheap Bar 5558.biz original link: http://www.5558.biz/a/jianzhanjishu/tuwenjiaocheng/2010/0124/552.html

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.