Performance

Chris Graham's picture

A simple method to improve the YSlow rating on your sites with a Debian server is to provide entity tags (ETags) and compress JS/CSS.  You will need to to run the following commands to get the required apache modules:

  • a2enmod deflate
  • a2enmod expires

Now edit the /etc/apache2/httpd.conf file to include:

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

<Directory /var/www>
  FileETag MTime Size
</Directory>