开发者

How to check whether compression is enabled in gzip/deflate serverside from client (browser)

How to check whether compression is enabled in gzip/deflate serverside from client (browser) by seeing the http request. Whet开发者_如何转开发her content served is zipped?


Check the Content-Encoding header to see what kind of compression was used by the server. Note that the server will only use compression if the browser has sent an Accept-Encoding header, and the server supports at least one of the encodings in this list.

For example, if the browser supplies Accept-Encoding: gzip,deflate and the server supports gzip encoding, it will reply with the Content-Encoding: gzip header and a gzip-compressed entity.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜