Why does Safari not accept GZIP compression?

前端 未结 3 1834
孤独总比滥情好
孤独总比滥情好 2021-01-18 13:50

I have a pretty big JavaScript file here which I want to embed into my website. The HTTP server is smart enough to GZIP the file before delivering it to the browser.

3条回答
  •  借酒劲吻你
    2021-01-18 14:13

    I've run into this problem as well, while trying to optimize the load time of a website on iOS7 Safari mobile iPad.

    • Encoded = uncompressed filesize, from server
    • Decoded = uncompressed filesize, locally
    • Transferred = uncompressed file size + headers sent and received
    • Content-Length = compressed file sent, from server

    Safari chose a really weird way of representing these numbers in their debugger.

提交回复
热议问题