Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Who Compresses their HTML?

Even Stack Overflow doesn't compress their HTML. Is it recommended to compress HTML? As far as I've seen, it looks like Google is the only one.... (view the source). Why isn't this standard practice?

like image 719
Lance Avatar asked Dec 08 '22 04:12

Lance


1 Answers

I think you are confusing the source code minification of HTML, and GZIP compression. The latter is quite common (for example using mod_gzipon Apache, article here) and should be enough in most cases. It is totally internal between the server and the browser, you can't see it in the source code.

Actual minification of the HTML is not really worth doing except for sites where a saved byte can mean tens of thousands of dollars in traffic savings (like for Google.)

like image 156
Pekka Avatar answered Feb 21 '23 00:02

Pekka