什么要求做浏览器的" F5"和"按Ctrl + F5"刷新,产生? [英] What requests do browsers' "F5" and "Ctrl + F5" refreshes generate?

查看:148
本文介绍了什么要求做浏览器的" F5"和"按Ctrl + F5"刷新,产生?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么标准动作<大骨节病> F5 和<大骨节病> Ctrl + F5键触发在网页浏览器?

Is there a standard for what actions F5 and Ctrl + F5 trigger in web browsers?

我曾经在IE6和Firefox 2.x版本做实验在<大骨节病> F5 刷新将触发向服务器发送带有的If-Modified-Since的头一个HTTP请求,而<大骨节病> Ctrl + F5键就不会出现这样的标题。在我的理解,<大骨节病> F5 会尽量利用缓存的内容尽可能多的,而<大骨节病> Ctrl + F5键拟放弃所有缓存的内容,只是再次检索来自服务器的所有内容。

I once did experiment in IE6 and Firefox 2.x. The F5 refresh would trigger a HTTP request sent to the server with an If-Modified-Since header, while Ctrl + F5 would not have such a header. In my understanding, F5 will try to utilize cached content as much as possible, while Ctrl + F5 is intended to abandon all cached content and just retrieve all content from the servers again.

但今天,我注意到,在一些最新的浏览器(Chrome浏览器,IE8)的它不以这种方式工作了。无论<大骨节病> F5 和<大骨节病> Ctrl + F5键发送的If-Modified-Since的头。

But today, I noticed that in some of the latest browsers (Chrome, IE8) it doesn't work in this way anymore. Both F5 and Ctrl + F5 send the If-Modified-Since header.

所以,这是怎么应该工作,或者(如果没有标准)怎么办各大浏览器在如何实现这些功能,刷新不同?

So how is this supposed to work, or (if there is no standard) how do the major browsers differ in how they implement these refresh features?

推荐答案

一般来说:

<大骨节病> F5 即使内容被改变,因为它可能会从缓存中加载页面可以给你同样的页面。但是,<大骨节病>控制 - <大骨节病> F5 强制缓存刷新,并保证如果内容发生变化时,你会得到新的内容。

F5 may give you the same page even if the content is changed, because it may load the page from cache. But Ctrl-F5 forces a cache refresh, and will guarantee that if the content is changed, you will get the new content.

这篇关于什么要求做浏览器的&QUOT; F5&QUOT;和&QUOT;按Ctrl + F5&QUOT;刷新,产生?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆