Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable gzip compression in chrome

I need to test my web application without using any http compression(disable gzip,deflate).I am able to do it in firefox using config screen,now i want to do same for google chrome.

Is there any way to disable gzip compression in Google chrome browser?

like image 798
Cris Avatar asked Aug 23 '13 08:08

Cris


People also ask

How do I turn off gzip compression?

To disable gzip compression, open the corresponding file in a text editor and change gzip on to gzip off . Save the changes and close the file.

How do I see gzip compression in Chrome?

Chrome changed the way it reports (see original answer if interested). You can tell using Developer Tools (F12). Go to the Network tab, select the file you want to examine and then look at the Headers tab on the right. If you are gzipped, then you will see that in the Content-Encoding.

Does browser decompress gzip?

gzip is commonly supported by web servers and modern browsers, meaning that servers can automatically compress files with gzip before sending them, and browsers can uncompress files upon receiving them.


1 Answers

Chrome doesn't seem to expose this setting, but what you can do is the following:

  • get the ModHeader plugin for Chrome: https://chrome.google.com/webstore/detail/modheader/idgpnmonknjnojddfkpgkljpfnnfcklj?hl=en (or any other that allows you to fiddle with your browser request headers)
  • set a new custom header accept-encoding to either:
    • an empty value or
    • gzip;q=0,deflate;q=0 either should work
like image 170
Jan Molak Avatar answered Sep 27 '22 15:09

Jan Molak