what does "Optimize website" actually do?

nivekau

Well-Known Member
Jul 22, 2011
51
4
58
Australia
cPanel Access Level
Root Administrator
If I enable Optimize Website for select MIME types in cpanel, does it just add something like the following to the .htaccess files in that account;

<IfModule mod_deflate.c>
<filesMatch "\.(html|php|js|css)$">
SetOutputFilter DEFLATE
</filesMatch>
</IfModule>

Or does it do more than this?

Also, how can I check whether mod_deflate is enabled?
And how do I set the server to cache the gzip files?
 

Eminds

Well-Known Member
Nov 10, 2016
319
32
28
India
cPanel Access Level
Root Administrator
If you have root access of your Cpanel server then use the below command and it will show you the results of mod_deflate

[root ~ ]# httpd -M | grep deflate
deflate_module (static)
[root ~ ]#