IE中的F5 和Ctrl+F5 的区别

在Internet Explorer中按Ctrl + F5, 是一种便捷的强制重新加载页面的方法, 页面所有的组件部分(images, css , javascript等等)都会被强制重新加载. 它等效于用空缓存的IE去访问一个页面.

 

F5就是简单的刷新当前页面, 点击ctrl + r, 或者右键选择刷新, 都是一样的, 他们在发送的http request的header中有"If-Modified"字串. 如果在netmon中查看f5过的trace的话, 会发现正常情况下很多的http 304 not modified响应.

 

而正常情况下Ctrl + F5 就是全部是Http 200 OK响应.

 

另外一个小问题, 就不翻译了, 总之就是在使用ctrl + f5之前, 请先点击一下你想刷新的页面.

 

原文列在下面:

t turns out that Ctrl+F5 only works in IE 7 if the keyboard focus is on the web page itself. If you move the focus anywhere else, such as back to the location bar, it ignores the Ctrl key and behaves as if F5 were typed on its own.

So if you really want to do a forced refresh in IE7 make sure you click on the web page or tab first.

 

原文地址:

http://blog.httpwatch.com/2007/10/19/using-ctrlf5-in-ie-7/

posted on 2009-12-31 18:52  中道学友  阅读(7607)  评论(0编辑  收藏  举报

导航

技术追求准确,态度积极向上