• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Is mod deflate worth it?

Amin Taheri

Golden Pleskian
Plesk Certified Professional
Is mod deflate worth it?

Ive read that it increases server loads and is not good to have on a busy server, but that it decreases the page load times of sites (pages render faster to clients).

My Server does between 5 and 9 GB of bandwidth a day, with about 800 domains.

Does anyone use it on a busy (or comporable) server and can attest one way or the other from personal expierience?

Is there something better to use instead (cache, mod_expires, etc)?
 
works great

Sure it works great :) .. we run it on multiple servers (all running about 350 domains each).

Bandwidth has gone down a lot .. and the faster page load times are great.

Just add this to your httpd.conf (make sure that the load line for mod_deflate is uncommented.)

Code:
<Location />
  <IfModule mod_deflate.c>                 
    #compress content with type html, text, and css                 
    AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript application/x-javascript
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html                  
    <IfModule mod_headers.c>
      #properly handle requests coming from behind proxies     
      Header append Vary User-Agent
    </IfModule>          
  </IfModule>               
</Location>

We turn on mod expires on a site by site bases (using .htaccess)..

In your .htaccess file:
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A300
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A3600
ExpiresByType text/css A3600
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType text/plain A300
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A2592000
ExpiresByType application/pdf A300
ExpiresByType text/html A300
</IfModule>
 
Back
Top