开发者

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

开发者 https://www.devze.com 2023-01-29 07:31 出处:网络
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 he

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

精彩评论

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