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!

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:
    35
    Likes Received:
    2
    Trophy Points:
    58
    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:
    267
    Likes Received:
    20
    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 ~ ]#
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. nivekau

    nivekau Active Member

    Joined:
    Jul 22, 2011
    Messages:
    35
    Likes Received:
    2
    Trophy Points:
    58
    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:
    44,378
    Likes Received:
    1,857
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice