Overview
Here you can have the server compress selected kinds of content automatically before it is delivered to visitors, which reduces the amount of data transferred.
This page appears in cPanel only if your system administrator has turned on the mod_deflate Apache module; the administrator must enable it.
Manage compression
To turn compression off for your site:
- Choose Disabled.
- Press Update Settings.
To compress everything your site serves:
- Choose Compress All Content.
- Press Update Settings.
To compress only certain content types:
-
Choose the Compress the specified MIME types option.
-
In the MIME Types box, type the types to compress, separated by spaces, such as
text/html text/plain text/xml.Note:- Image formats such as
.jpgand.pngare already compressed, so leave them out of the list. - Apache will compress PHP output only if you switch on
zlib.output_compressionin the MultiPHP INI Editor (cPanel » Home » Software » MultiPHP INI Editor). - A full catalogue of types is available in Wikipedia’s list of internet media types.
- Image formats such as
-
Press Update Settings.
The settings are written to a .htaccess file in your home directory. Your system administrator tunes them through the Apache FileMatch directive.
Additional information
The mod_deflate module performs the compression. Its manual for each Apache release is linked below, so pick the one that matches your server:
The Stats sidebar on the cPanel Home screen shows which Apache version your server runs.
