Articles

Gzip Compression is Enabled by Default

ServerPilot automatically enables gzip compression on all of your apps.

How Gzip Compression Works

The gzip compression system works by temporarily replacing similar strings in files with shorter ones, making the total file size smaller. When the server sends a file, the file is compressed. When the browser receives the file, it is uncompressed. As a result, web page size can be reduced up to 70 percent when being transferred from the server to the browser, resulting in a much faster download.

File Types That Get Compressed

ServerPilot configures your web server to compress all of the common files that are not already compressed.

Some of the files that are compressed include

  • HTML,
  • CSS,
  • JavaScript,
  • JSON,
  • Text,
  • XML,
  • RSS,
  • SVG, and
  • Uncompressed fonts (OTF, TTF, EOT).

Other files are not compressed by the web browser because the file formats themselves already store the data compressed, thus it would waste server and browser resources to recompress them. Some files that are already compressed include

  • Images (JPG, GIF, PNG, BMP, etc.),
  • Audio (MP3, WAV, etc.),
  • Videos (MOV, MP4, MPEG, AVI, etc.), and
  • Compressed fonts (WOFF).