Two simple ways to improve the speed of Web Access

Source: Internet
Author: User
Keywords Raise US when

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

Introduction: We usually on the Internet, when you search for a content in Baidu, click to enter this page or you enter the Web site directly into a website, you need to wait more than 10 seconds to fully open the page you need, I believe few people are willing to continue to browse the other pages of the station, Because people in the process of waiting, the mood is extremely painful uncomfortable, like you about a certain beauty (or handsome guy), to the agreed time, but she (he) really late to, then this mood everyone should be very good understanding.

So much has been said before to tell you, the site's access speed is so important to ordinary visitors, the speed is slow, the station's repeat customers and PV is certainly very few, because visitors open a page, too slow will be directly closed, do not want to look down; The site's access speed is too slow, it will determine the station to the user's friendliness is too low, so that the weight of the search engine is certainly not high there to go.

Several reasons that affect the speed of Web site access are server hardware, software, programs, bandwidth, and so on, several of the above impact on the speed of the reasons I believe that we all know, if you want to work on this to improve speed, certainly to invest a certain amount of money and manpower, this I will not say, here we mainly share two of relatively simple methods , no need to increase investment, two do not need too much energy.

The first way to improve the speed of Web site access:

Yes, it's gzip, full name gnuzip, it is a GNU Free software file compression program, it to the page compression ratio is quite high, usually can reach about 70% of the compression, but some people say with gzip to search engine unfriendly, will cause down right, through my own use and analysis, There is no such thing, because the gzip compression enabled, speed up the speed of the Web page, so as to improve the user's sense of inspection, so friendly to the user a thing, the search engine how can not support it? There is, such as Baidu, Sina, A5, NetEase, such as a large number of large stations are enabled gzip compression, This proves that it is safe.

Speaking of which gzip compression is so good, how exactly do you want to open it?

Let's start with "Internet Information Services", "Add a new Web service extension" in the Web service extension, enter a name, then select the Path (c:\windows\system32\inetsrv\gzip.dll), the connector to point to, and finally determine (Refer to the figure below).

  

We then open the site's Properties panel, select the service bar, in the HTTP compression select "Compressed application Files", if the site has static pages, set a temporary directory, and to the IIS user write permissions, you can give this directory limit a capacity size.

  

We then modify the "C:\WINDOWS\system32\inetsrv" under the MetaBase.xml file, first back up, and then right-click the select text to open, find "/lm/w3svc/filters/compression/deflate" and " /lm/w3svc/filters/compression/gzip "according to the parameters of the following diagram to modify it, the content is intended to be HTML, ASP, JS, CSS and PHP into the scope of compression, the number 9 represents the compression level." Before saving, you must stop running IIS, save it, and then turn IIS on, and you can use the Run command "net stop IISAdmin" and "iisreset" to turn IIS off and on.

  

After the setup is complete, our IIS has been restarted, so we can test with the tool to see if gzip compression has been turned on properly.

  

The second way to improve the speed of Web site access:

That is to turn on expiration of the enabled content, when the user first visit your site, the browser from your Web site to download content, if the user second visit to your site, browser from the cache to read content, so that users open the site is the speed from the local open speed, this speed can be imagined.

But for the daily update of the site, I do not recommend you to enable the content of the entire station expired, is to enable the section does not need to update the directory, take the PS Learning Network (http://www.ps-xxw.cn) to say it, I only opened the Web site pictures and CSS file content expired, To open the contents of a directory expiration, you need only in the "Internet Information Services" under their own web site to find that folder, and then right-click the property, in the property panel to find the HTTP header on it, set how long time expired, according to their own needs to decide.

  

Do you see the Cache-control in the header information below? The max-age=86400 here means that the content expires for 1 days. 60 sec *60 * 24 hours = 86,400 seconds

  

All rights reserved, reproduced please note from the "PS Learning Network: http://www.ps-xxw.cn Author: Absolute ambition ruthless", please cherish the work of the author's achievements!

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.