title: Optimize Website
created at: Mon Oct 21 2024 11:22:40 GMT+0000 (Coordinated Universal Time)
updated at: Sat Feb 08 2025 14:22:25 GMT+0000 (Coordinated Universal Time)
---
# Optimize Website
# Overview
This interface allows you to configure your server to automatically compress specified types of content when visitors access that content.
!! Note
!! Your system administrator **must** enable the `mod_deflate` Apache module for this interface to appear in cPanel.
# Manage compression
To disable compression of your website’s content, perform the following steps:
1. Select *Disabled*.
2. Click *Update Settings*.
To compress all of your website’s content, perform the following steps:
1. Select *Compress ****All**** Content*.
2. Click *Update Settings*.
To specify a list of types of content to compress, perform the following steps:
1. Select the *Compress the specified MIME types* option.
2. In the *MIME Types* text box, enter a space-separated list of the types of content that you wish to compress (for example, `text/html text/plain text/xml`).
!! Note
!! Image file formats (for example, `.jpg` and `.png`) already compressed data. Do **not** include any image file formats in the list.
!! Apache **will** compress PHP content if you enable the `zlib.output_compression` setting in cPanel’s [*MultiPHP INI Editor*](https://docs.cpanel.net/cpanel/software/multiphp-ini-editor-for-cpanel/) interface (*cPanel » Home » Software » MultiPHP INI Editor*).
!! For more information, view [Wikipedia’s list of internet media types](https://en.wikipedia.org/wiki/Internet_media_type) .
1. Click *Update Settings*.
!! Note
!! cPanel saves your settings to a `.htaccess` file in your home directory. Your system administrator customizes these settings with the Apache [FileMatch directive](http://httpd.apache.org/docs/2.2/mod/core.html#filesmatch) .
# Additional information
For more information about the `mod_deflate` module, which handles website content compression, read the documentation for your server’s version of Apache:
!! Note
!! The *Stats* sidebar in cPanel’s [*Home*](https://docs.cpanel.net/cpanel/the-cpanel-interface/the-cpanel-interface/) interface displays your server’s version of Apache.
* [Apache 2.0 web server documentation for mod\_deflate](http://httpd.apache.org/docs/2.0/mod/mod_deflate.html) .
* [Apache 2.2 web server documentation for mod\_deflate](http://httpd.apache.org/docs/2.2/mod/mod_deflate.html) .
* [Apache 2.4 web server documentation for mod\_deflate](http://httpd.apache.org/docs/2.4/mod/mod_deflate.html) .