Chrome 开发者工具 header 格式和查看源代码

Chrome developer tools header formats and view source

下面是同一版本 Chrome 的两个屏幕截图。我想知道何时以及为什么 header 名称有时会以不同的单词大小写显示,以及视图 source/view 已解析切换何时可用?我已经阅读了开发人员工具文档,其中只字未提,并尝试以不同的方式加载页面。我怀疑的唯一模式是内容压缩,是吗?

更新: 在使用 gzip

的网站上没有看到这两个版本

它似乎只发生在 HTTP2/SPDY 上服务的资源(比较 this image served over HTTP2 with the same image served over HTTP). There is an old Chrome bug that proves that HTTP2/SPDY headers are being handled differently. I reported this as a bug here