Red Hat Content Accelerator is now able to send compressed (gzip) data. This has the potential to decrease the amount of data the Web server sends to the client browser and decrease the browser's load time.
By default, this data compression is disabled. To enable it, add the following line to /etc/sysctl.tux:
net.tux.compression=1 |
The Gzip file with the extension .gz must be in the same directory as the uncompressed versions of the pages you wish to serve. All of the following conditions must be true for Red Hat Content Accelerator to send the .gz file. Otherwise, the original file(s) are sent.
The Red Hat Content Accelerator compression feature is on in /etc/sysctl.tux.
The client has explicitly stated to support gzip encoding.
The original file exists, is a regular file, and has the proper permissions.
The .gz file exists, is a regular file, and has the proper permissions.
The .gz file is newer than or has the same-date as the original file.
The size of the .gz file is smaller than original file.
Note | |
---|---|
A cron job can be created to generate a new gzip file from the latest uncompressed data in each directory. |