Depending on the settings of your web server, it is also possible to pre-attach the html files, in addition to the fact that the web server automatically zips them. Usually the extension is .gz, for example MyPage.html becomes MyPage.html.gz. With the right settings, if someone asks for http://example.com/MyPage.html and Apache sees MyPage.html.gz and the client supports compression, they are instead used for the MyPage.html.gz version. Then, the client will transparently decompress the content, and the user will not even recognize and take care that it is compressed (except, maybe a little happier, that the page loads a split second faster)
davr source
share