欢迎光临

木子屋

标题: IE刷新网页快捷键F5和Ctrl+F5的区别

作者: dnawo

日期: 2015-01-03 11:04 PM

分类: 操作系统

内容: IE按F5或Ctrl+F5都可以刷新网页，它们有什么区别？下边根据HTTP Header来解释它们的区别：
F5刷新网页
Request Headers：
引用内容GET /ip.htm HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: zh-CN
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0; BOIE9;ZHCN)
Accept-Encoding: gzip, deflate
Host: www.mzwu.com
If-Modified-Since: Wed, 26 Nov 2014 14:37:49 GMT
If-None-Match: "801c68d869d01:1d9d"
DNT: 1
Connection: Keep-Alive
Pragma: no-cache
Response Headers：
引用内容HTTP/1.1 304 Not Modified
Last-Modified: Wed, 26 Nov 2014 14:37:49 GMT
Accept-Ranges: bytes
ETag: "801c68d869d01:1d9d"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Sat, 03 Jan 2015 14:47:50 GMT
Ctrl+F5刷新网页
Request Headers：
引用内容GET /ip.htm HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: zh-CN
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0; BOIE9;ZHCN)
Accept-Encoding: gzip, deflate
Host: www.mzwu.com
DNT: 1
Connection: Keep-Alive
Pragma: no-cache
Response Headers：
引用内容HTTP/1.1 200 OK
Content-Length: 13
Content-Type: text/html
Last-Modified: Wed, 26 Nov 2014 14:37:49 GMT
Accept-Ranges: bytes
ETag: "801c68d869d01:1d9d"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Sat, 03 Jan 2015 14:47:50 GMT
结论：F5尽可能使用缓存，而Ctrl+F5总不使用缓存。

+ 查看当前日志评论 (0)

登录

────────────

木子屋

PJBlog3 v3.2.9.518 Inside.

Processed In 0.609 ms

返回

标题: IE刷新网页快捷键F5和Ctrl+F5的区别

你没有权限发表评论

────────────

木子屋

PJBlog3 v3.2.9.518 Inside.

Processed In 0.609 ms

返回

暂无评论

返回

────────────

木子屋

PJBlog3 v3.2.9.518 Inside.

Processed In 0.625 ms

返回