Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

what does "Optimize website" actually do?

Discussion in 'General Discussion' started by nivekau, Nov 28, 2016.

  1. nivekau

    nivekau Active Member

    Joined:
    Jul 22, 2011
    Messages:
    26
    Likes Received:
    2
    Trophy Points:
    53
    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?
     
  2. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    211
    Likes Received:
    13
    Trophy Points:
    18
    Location:
    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 ~ ]#
     
  3. nivekau

    nivekau Active Member

    Joined:
    Jul 22, 2011
    Messages:
    26
    Likes Received:
    2
    Trophy Points:
    53
    Thanks Eminds,

    It responded;
    deflate_module (shared)

    how do I set the server to cache the gzip files?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, using this feature simply populates the default settings to the .htaccess file in account's home directory. The following thread should help if you want to verify compression is working:

    Compression not working

    Information on the additional options available if you'd like to customize the entries in the .htaccess file is available at:

    mod_deflate - Apache HTTP Server Version 2.4

    Thank you.
     
Loading...

Share This Page