Let your website be opened for IIS to enable "content expiration"

  
                  

Let your website open second, enable for IIS "content expiration&&&;quo;

What is content expiration?

When users first visit your website, the browser is from you The website host downloads content, and if the user accesses your website for the second time, the browser reads the content from the cache. Do you know how fast the browser reads web pages from the cache? Seconds open! For example: 2345.com this navigation site. Many large websites have enabled  quo;content expiration”.

We know that the access speed of big websites is generally fast, which is really related to their strong strength, but the relationship with “content expiration” is also very big.

In fact, if you don't enable content expiration, even if your server is no better, it will not reach the speed of a big website. The secret is that they open "content expiration".

This is a great feature. What are the benefits of content expiration for webmasters?

If your website is abroad, it’s slower, yes, that’s only It was the first time that the visit was slow. When the user visited for the second time, the speed was domestic. In fact, because you have enabled content expiration, the server's pressure will definitely drop, which will indirectly speed up the user's first visit. For example, if your foreign host is exhausted,

If you enable content expiration, even if the host of your website is shut down, users can still access your website (whether it’s a slap in the air), why, because the browser Read a web page from the cache. At this point, users can not only access your website, but also very fast.

So we are no longer afraid of the wind as before, and the content expires to make your losses much less.

On the other hand, content expiration significantly reduces server stress, which is worth trying for webmasters who can't afford a high-profile host.

We look at data, such as NetEase, Sohu, computer software and hardware application network and other large websites are basically used in part "all content expired"

set up content expired website, if The second time you visit, the speed is very fast, don't think that their server is strong or something else, don't forget that they have opened "content expiration". Even if you keep opening the above URLs to test the access speed of these sites, there is no pressure on their servers, and you are very satisfied with the speed of each opening.

Because my technology is limited, I think that most of the big stations have enabled "content expiration" or adopt a similar content expiration technology to improve the access speed of the website, which will bring the website Great user experience.

If your website is not updated every minute, I recommend that you turn on content expiration. Why do you say this, for example, if the content expiration time you set is 2 hours, then if your website is not updated within 2 hours, the user is not necessary

Read the webpage from your website host, only You need to read the web page from the browser's cache. This not only means that the pressure on the website host is reduced, but more importantly, the access speed of the website makes the user more satisfied. This is of great benefit to both the webmaster and the user.

Now, please follow me to open “content expiration" for your website. This is an example of IIS6.

Double click on your "Internet Information Services (IIS) Manager", right click on the left side of the website you want to enable "content expiration", select "properties" & rdquo;, in the website that appears Click the “HTTP header" tab on the Properties dialog box, and tick "Enable content expiration" in the following "Expires after this time period" section, specify the expiration time, depending on your personal situation. Yes, generally set to more than 2 hours, you can also refer to the settings of the big website.

Then click "OK" and it's ok, very simple. Please see the picture



This will enable content expiration for your website, if you don't see the effect, or you need to restart IIS (usually effective) .

When you have completed the above operation, please go to http://tool.chinaz.com/Gzips to check if your website successfully opens the content expiration.

For example, my



My website: www.45it.com. Yes, when you see the Cache-Control part max-age=43200, it means success. Different expiration times have different values ​​for max-age. I am 12 hours, and only set up CSS and scripts. After all, the content is updated frequently. If it is a navigation station or the like, it will be OK.

Copyright © Windows knowledge All Rights Reserved