78

I am accessing some web sites which are really really slow, and I would like to know if those sites are gzipped. Is there an easy way to find this out?

Sathyajith Bhat
  • 61,504
  • 38
  • 179
  • 264
yazz.com
  • 3,311
  • 6
  • 32
  • 48

3 Answers3

116

If you're using Chrome or Firefox, you can open the developer tools and see it.

  • In Chrome, this is done from the wrench menu: Tools > Developer tools, or alternatively by pressing CtrlShiftI.
  • In Firefox, click the menu button: Developer > Inspector, or alternatively by pressing CtrlShiftC.

Once you have the developer tools open, you can click on the Network tab, and do a refresh on the page. If you then click on the top entry in the list and select Headers on the right side, it'll list all the response headers for the page.

If you find Content-Encoding: gzip in the list, then the page is gzip-compressed.

Here's what it looks like in Chrome:

Screenshot of the Chrome inspector.

Here's what it looks like in Firefox: Screenshot of the Firefox inspector.

  • Presumably the reported size is *after* gzipping ? – Damon Apr 20 '16 at 16:24
  • @Damon No, the reported size available to browser is the same, the compression is useful for transport layer and the size available to browser is after decompression, so the same size as document. – Priya Ranjan Singh May 31 '19 at 11:34
  • Wouldn't it be possible for a web server to set this header but still respond with unzipped content? – phil294 Feb 23 '21 at 17:58
7

If you dont have Chrome installed here are some alternatives:

Sharken
  • 1,651
  • 11
  • 6
2

Another online checker: https://checkgzipcompression.com

I've found that none of my installed browsers was showing Content-Encoding: gzip header while the server was actually sending it. Investigation revealed that it was ESET antivirus software being responsible for intercepting and unpacking all traffic on the PC.

Vadzim
  • 1,270
  • 14
  • 18