GZip encoding is a method of compressing web content when it’s sent over the Internet, reducing the file size and download time. It’s supported by most browsers and web servers but is backwards compatible so it won’t cause issues even when it’s not supported by browsers. Using GZip encoding will make EditLive! load faster, but it will also make the site faster for your visitors. Note that to improve the startup time of EditLive! you should also ensure you are taking advantage of Pack200 encoding which applies specifically to EditLive’s jar file.
The process of enabling GZip compression differs depending on the server you’re using. Consult the documentation for your server. For Apache HTTP 2.0 you can use the mod_deflate module. Add the following line to your configuration file:
For Tomcat, GZip encoding is enabled by adding some attributes to the Connector element in the server.xml file. For example:
Note that we only list some types of content to use GZip encoding with. For content that is already compressed like images, GZip encoding generally doesn’t help so we simply ignore it. Depending on your site’s content, there may be other content types that you want to use GZip with, just add them to the list.