Java之servlet四

版权声明: https://blog.csdn.net/dadan1314/article/details/84311721

HTTP头部

HTTP请求头部

HTTP响应头部

字段 参考值 说明 例子 备注
expires -1 缓存时间 expires: Wed, 21 Nov 2018 14:55:29 GMT  
content-type   内容类型 content-type: text/html;charset=utf-8  
content-disposition

inline

attachment

接收文件 content-disposition: attachment;filename=dsc.jpg

显示文件

下载文件

         
         
refresh 5 刷新时间 refresh: 20;/ServletTest 刷新后,跳转到指定地址
Cache-Control no-cache      
Pragma no-cache      
         
         
         

附录

Win10下IE缓存文件夹路径:INetCache比较特殊,需要手动输入文件夹名称)

C:\Users\<当前登录用户>\AppData\Local\Microsoft\Windows\INetCache

猜你喜欢

转载自blog.csdn.net/dadan1314/article/details/84311721