关于浏览器f5和ctrl+f5加深对缓冲的理解。

来源:互联网 发布:国学大师txt数据库 编辑:程序博客网 时间:2024/05/16 14:43

IE:

F5:

GET http://192.168.1.107/htdocs/ HTTP/1.1

Accept: */*
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
If-Modified-Since: Thu, 24 Sep 2015 05:46:11 GMT
If-None-Match: "2000000003ba7-2c-52077bfa4806f"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; QQPinyin 722; .NET4.0C; .NET4.0E)
Host: 192.168.1.107
Connection: Keep-Alive
Pragma: no-cache
Cookie: Hm_lvt_f5127c6793d40d199f68042b8a63e725=1443074128; _5t_trace_tms=1; TKPaoPao=true

Authorization: Basic eGlvbmd5Zjp4aW9uZ3lm

HTTP/1.1 304 Not Modified
Date: Thu, 24 Sep 2015 06:39:36 GMT
Server: Apache/2.2.25 (Win32)
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
ETag: "2000000003ba7-2c-52077bfa4806f"


需要一次交互行为询问是否过期。


CTRL+F5

GET http://192.168.1.107/htdocs/ HTTP/1.1
Accept: */*
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; QQPinyin 722; .NET4.0C; .NET4.0E)
Host: 192.168.1.107
Connection: Keep-Alive
Pragma: no-cache
Cookie: Hm_lvt_f5127c6793d40d199f68042b8a63e725=1443074128; _5t_trace_tms=1; TKPaoPao=true
Authorization: Basic eGlvbmd5Zjp4aW9uZ3lm

HTTP/1.1 200 OK
Date: Thu, 24 Sep 2015 06:39:39 GMT
Server: Apache/2.2.25 (Win32)
Last-Modified: Thu, 24 Sep 2015 05:46:11 GMT
ETag: "2000000003ba7-2c-52077bfa4806f"
Accept-Ranges: bytes
Content-Length: 44
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: text/html

<html><body><h1>It works!</h1></body></html>


可以看出

If-Modified-Since:

If-None-Match:

没有再发了。导致服务器全部重新发给你。



这里的cookie有什么作用,表示状态!


可以看出密码这些是没有清除的。



























0 0
原创粉丝点击