Server for 3 tips to speed up Web sites

Source: Internet
Author: User
Keywords Up

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

Data prove: The Web page load more than 4 seconds, 25% people will give up, mobile Web page more than 10 seconds, 50% users will give up, 60% people no longer return; Google search results slow 0.4 seconds, a day to reduce the number of searches 8 million times, 40% mobile shoppers will drop the load time of more than 3 seconds of the site, Amazon daily sales of about 67 million U.S. dollars, web pages delayed 1 seconds can lead to a loss of 1.6 billion dollars a year, which is enough to prove how important the speed of Implementation proved that the Web site loading speed from 100ms to 400ms users will reduce 02.%, daily search loss will reach 0.6%.

Any webmaster would like to reduce the page loading time as much as possible, any search engine wants to provide users with a good experience of the service, improve the overall quality of the site, increase user satisfaction, everyone wants to enjoy a fast network experience. How to increase the speed of Web site loading? Can be considered from three aspects.

Select the appropriate host for your corporate website, this is the first step to start the site construction, with a professional configuration of the host to the site to enhance the speed of loading a lot of help.

1, the use of browser caching

When users visit the site, many of the resources on the Web site on the server side slowly to be loaded into the client, in contrast, this will cause the site load delay, especially JPEG images, if the content can be obtained from the browser's cache, it will accelerate the load time, Use the browser's cache to store resources so that the next time a user accesses the same site, the site loads more quickly.

2. Enable Keep activity signal

Keeping the active signal sent at a predetermined time interval plays a big role on the Internet. Once a signal is sent, if no reply is received, the link will route through another path until the link is recovered, in fact, the HTTP retention activity allows the TCP connection to survive, which helps reduce subsequent request delays, so please contact your hosting provider and tell them what you need, Because most hosting companies are disabled for this feature.

3. Enable gzip compression

Gzip compression is currently the most popular, most effective compression method, it can reduce about 70% of the corresponding time. Gzip compression reduces the size of the HTTP response and helps reduce response time. I think this is the easiest way to reduce the weight of the page, just add the following code to your htaccess file:

#压缩的文本: HTML, JavaScript, CSS, xml:

Addoutputfilterbytype DEFLATE filetype

Addoutputfilterbytype DEFLATE HTML

Addoutputfilterbytype DEFLATE by

Addoutputfilterbytype DEFLATE Text/css

Addoutputfilterbytype DEFLATE Application/xml

Addoutputfilterbytype DEFLATE Application/xhtml+xml

Addoutputfilterbytype DEFLATE Application/rss+xml

Addoutputfilterbytype DEFLATE Application/javascript

Addoutputfilterbytype DEFLATE Application/x-javascript

#延伸压缩某些文件类型:

Setoutputfilter DEFLATE

Or in the simplest way, at the top of your html/php file, use the following PHP code:

<?php if (Substr_count ($_server[' http_accept_encoding ', ' gzip ')) Ob_start ("Ob_gzhandler"); else Ob_start ();? >

For some external JavaScript files in the site, using gzip compression can reduce the transmission quality by 60%.

4, landing page redirect Cache

Mobile Web pages redirect users to a different URL, so using the 302 redirect and cache lifetime is the same day as the next time a tourist tries to load a Web site to speed up page load time, which should include user agents, which can only be redirected by users of mobile device visitors.

5. Use CDN

CDN, a content delivery network, is a collection of Web services and collections distributed across multiple locations, which can be more effective in providing content to users. Selecting a specific content server is usually based on measuring the nearest network to the user. For example, when you use a CDN host, you can load data from different servers depending on the visitor's area.

Because of the lack of time and documentation, this article only tells the server to consider how to speed up the site, in the following article will be from the content elements, css,js and pictures and so on for everyone to do detailed introduction, to be continued.

Original article is by: http://www.mybaiduseo.cn/news-2-1.html webmaster starting A5, reprint please keep valid link address.

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.