常用header头 记录

发布于 2023-02-10  246 次阅读


这三个http响应头用来来实现禁用浏览器缓存。

Cache-Control: no-cache
Pragma: no-cache
Expires: Tue Jun 04 1991 10:54:07 GMT  (-1)
gzip加速
Content-Encoding: gzip
强制文件下载header设置
Content-Disposition: attachment;filename=$fname


注错之当