V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
schezukNewTos
V2EX  ›  前端开发

除下列之外,还有哪些能影响浏览器行为的 HTTP 响应头( HTTP Response Header)?

  •  
  •   schezukNewTos · 2017-02-19 14:22:26 +08:00 · 2680 次点击
    这是一个创建于 2633 天前的主题,其中的信息可能已经有所发展或是发生改变。

    针对最新版的 Firefox/Chrome ,不考虑 HTTP 请求头( HTTP Request Header ):

    • Allow
    • Accept-Ranges
    • Access-Control-Allow-Credentials
    • Access-Control-Allow-Headers
    • Access-Control-Allow-Methods
    • Access-Control-Allow-Origin
    • Access-Control-Expose-Headers
    • Access-Control-Max-Age
    • Age
    • Cache-Control
    • Connection
    • Content-Disposition
    • Content-Security-Policy
    • Content-Security-Policy-Report-Only
    • Date
    • ETag
    • Expires
    • Keep-Alive
    • Last-Modified
    • Location
    • Pragma
    • Proxy-Authenticate
    • Public-Key-Pins
    • Public-Key-Pins-Report-Only
    • Referrer-Policy
    • Retry-After
    • Sec-
    • Server
    • Set-Cookie
    • Set-Cookie2
    • Strict-Transport-Security
    • Tk
    • Trailer
    • Transfer-Encoding
    • Upgrade
    • Vary
    • Via
    • Warning
    • WWW-Authenticate
    • X-Content-Type-Options
    • X-DNS-Prefetch-Control
    • X-Frame-Options
    • X-XSS-Protection
    4 条回复    2017-02-19 18:46:03 +08:00
    kindjeff
        1
    kindjeff  
       2017-02-19 15:07:04 +08:00 via iPhone
    影响浏览器行为是什么意思?
    还有 Content-Type 影响浏览器怎么展示内容,还有 Content-Encoding 影响浏览器怎么解析数据,还有 Content-Length 影响浏览器读多少数据再断连接(逃
    schezukNewTos
        2
    schezukNewTos  
    OP
       2017-02-19 16:16:22 +08:00
    @kindjeff 影响浏览器行为就是说,浏览器把这个 Header 当作浏览器从连接到渲染一系列环节的控制信息,而不是当作用来描述消息本体的元数据,后者又称为[Entity header]( https://developer.mozilla.org/en-US/docs/Glossary/Entity_header)。
    forestyuan
        3
    forestyuan  
       2017-02-19 18:43:56 +08:00
    查一下 RFC 就知道了
    schezukNewTos
        4
    schezukNewTos  
    OP
       2017-02-19 18:46:03 +08:00
    @forestyuan 我查了许多 RFC ,但是一不能保证全面,二不知道浏览器实现了多少……
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   972 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 20:51 · PVG 04:51 · LAX 13:51 · JFK 16:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.