【问题标题】:From http response header Identifying does browser supports gzip or not从http响应头识别浏览器是否支持gzip
【发布时间】:2011-11-13 14:30:45
【问题描述】:

是否可以识别“浏览器/客户端是否支持 gzip”?使用 http 标头或请求?

【问题讨论】:

    标签: http http-headers


    【解决方案1】:

    如果浏览器接受 gzip,则发送此标头:

    Accept-Encoding: gzip, deflate
    

    【讨论】:

      【解决方案2】:

      “如果请求中没有 Accept-Encoding 字段,服务器可以假设客户端将接受任何内容编码。” (HTTPbis Part3)

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-11-26
        • 2011-11-01
        • 1970-01-01
        • 1970-01-01
        • 2014-09-30
        • 2016-09-07
        • 2021-07-31
        相关资源
        最近更新 更多