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 navigation site. 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, the 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.
We look at the data, such as NetEase, Sohu, computer software and hardware applications, such as large Web sites have used the basic part of the "content expired"
Set the content expired site, if your 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 a great user experience for the site.
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 in this 2 hours 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 "OK" then click OK, very simple. Please look at the picture
This will enable content expiration for your site, if you do not see the effect, or you need to restart IIS (usually directly in effect).
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
Yes, when you see Cache-control part of the max-age=43200, it means success. Different expiration times have different max-age values. My is 12 hours, and only set the CSS and script, after all, the content is frequently updated, if it is the navigation station and so on one months, hehe.