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   中道学友  阅读(7621)  评论(0编辑  收藏  举报

编辑推荐:
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律

导航

< 2009年12月 >
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2
3 4 5 6 7 8 9

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

点击右上角即可分享
微信分享提示