日期:2014-05-17  浏览次数:20495 次

设置HTTP response headers属性里面的Expire web content作用是什么?
如题,很多教程里面提到,设置IIS要进入我的电脑右键-->管理-->应用程序和服务选择HTTP Response Headers,勾选Expire web content,选择Immediately.

问题是: 这个Expire web content选项是什么意义? Immediately又是什么意义呢?

------解决方案--------------------
我还真没有设置过。
------解决方案--------------------
Configure the HTTP expires response header when you want to specify the expiration of Web content. The server returns the header value to the client browser in an HTML file header. The browser compares that value with the current date to determine whether to display a page that is cached on the client computer or to request an updated page from the server.
Consider the following information when you configure the expires response header:
Content that is updated regularly, such as on a daily or weekly basis, should be configured to expire periodically.

Content that contains sensitive information that you do not want cached or that is updated very frequently should be configured to expire immediately.

Content that is not expected to change should be configured to expire in approximately one year.

来自:
http://technet.microsoft.com/en-us/library/cc770661(v=ws.10).aspx

学习了。