Let your site seconds turn on "Content Expiration" for IIS

Source: Internet
Author: User

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

Let your site seconds open, enable "Content Expiration" for IIS

What is content expiration?

When the user first visits your site, the browser downloads content from your site host, and if the user visits your site for the second time, the browser reads the content from the cache. Do you know how fast a browser reads a Web page from the cache? Seconds to open! For example: 2345.com this 8207.html "> Navigation website. Many large Web sites have "content expiration" enabled.

We know that the speed of large Web sites is generally fast, which is really related to their strong strength, but with the "content expired" relationship is very large.

In fact, if you do not enable content expiration, even if your server is good, can not reach the speed of the big site, the secret is that they opened the "content expired."

This is a very good function, content expiration can bring to the webmaster what benefits?

If your site is abroad, the speed is slow, yes, that is only the first visit slow, when the user's second visit, speed is domestic. In fact, as you enable content expiration, the pressure on the server is bound to drop, which will indirectly accelerate the user's first visit. Another example, your foreign host ventilation,

If you enable content to expire, even if your site's main machine users can still access your site (the Fan god horse), why, because the browser from the cache to read the page. At this point, users can not only access your site, but also fast.

So we are no longer afraid of the ventilation as before, content expiration so that your loss reduced a lot.

On the other hand, content expiration obviously reduces the pressure on the server, which is worth trying for the webmaster who can't afford the high configuration host.

Let's look at the data, the following table is a few big websites are using "content expiration"

  

The website above, if you have a second visit, the speed is very fast, do not think it is their server strong or anything else, do not forget they opened the "content expired." Even if you keep on turning off the URLs to test the speed of these sites, there is no pressure on their servers, and you are very happy with the speed of each opening.

Because of my limited technology, but I think most of the major stations have enabled the "Content expired" or the use of similar content expiration of the technology to enhance the site's access speed, which will bring the site a great user experience.

If your site is not updated every minute, I recommend that you turn on content expiration. Why do you say that, for example, you set the content expiration time is 2 hours, then within 2 hours of your site is not updated, users are not necessary

Read the page from your website host, just read the page from the browser's cache. This not only means that the site host the pressure is reduced, but more importantly, the speed of the site's access to users more satisfied. This is very good for both the webmaster and the user.

Now, please follow me to open "content expiration" for your website, which is a IIS6 example.

Double-click your Internet Information Services (IIS) Manager on the left, right-click the Web site where you want to enable content expiration, select Properties, click the "HTTP Headers" tab on the Site Properties dialog box that appears, and check "Enable Content expiration" in the following "expire after this period" section, Specify the expiration time, depending on your personal situation, generally set to 2 hours or more, you can also refer to the setting of the large web site.

Then click OK, it's easy. Please look at the picture

  

This will enable your site to expire content, if you do not see the effect, or you need to restart IIS, you can use the "iisreset" this command to perform the restart operation.

For instructions on how to use the IISReset command, refer to: http://www.admin5.com/article/20120225/410466.shtml

When you have completed the above operation, please go to http://tool.chinaz.com/Gzips to inquire if your website has successfully opened content expired.

For example, my

  

My website: www.youhenduo.com. Yes, when you see Cache-control part of the max-age=86400, it means success. Different expiration times max-age different values. Mine is one day, the navigation station, one months also OK, hehe.

My site is a virtual host, can not operate IIS Manager, but I use the Web.config configuration file to achieve content expiration, web.config how to achieve content expiration, please search online.

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.