Skip to content
Home » Web » Apache » How to Enable Deflation of Files on Apache Web Server

How to Enable Deflation of Files on Apache Web Server

Enabling deflation on Apache web server can reduce the size of files that your server responded, the configuration is quite simple:

Just add the following lines to httpd.conf

[root@localhost ~]# vi /etc/httpd/conf/httpd.conf
...
<IfModule mod_deflate.c>
    <filesMatch ".(js|css|html|php)$">
        SetOutputFilter DEFLATE
    </filesMatch>
</IfModule>

Leave a Reply

Your email address will not be published. Required fields are marked *