http 消息头与 响应消息头 详解
消息头 (浏览器发送到服务器)
响应消息头 (服务器到浏览器)
Location: url 让浏览器重新定位到新的url
server : apache tomcat 告诉浏览器我是tomcat
Content-Encoding:gzip 我使用了gzip压缩
Content-Length:80 压缩之后数据大小为80字节
Content-language:zh-cn 中文
Content-type:"text/html; charset=GB2312" 内容格式为text/html 编码为GB2312
last-modified:Tue,11 Jul 2000 告诉浏览器 该资源的更新时间
refresh:n,url= 过去n秒 转向到url
content-Disponsition:attachment;filename 下载文件 attachment 代表附件 filename代表文件名
Transfer-Encoding:chunked 传输的编码
set-cookie
Expires:-1 告诉浏览器如何缓存页面
Cache-Control:no-cache 告诉浏览器如何缓存页面
pragma:no-cache 告诉浏览器如何缓存页面
Connection:close/keep-alive 保持连接
Date: 时间