 <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresDefault "access plus 1 days"
      ExpiresByType text/html "access plus 5 minutes"
      ExpiresByType text/xml "access plus 6 hours"
      ExpiresByType text/css "access plus 1 weeks"
      ExpiresByType text/javascript "access plus 1 weeks"
      ExpiresByType application/javascript "access plus 1 weeks"
      ExpiresByType application/x-javascript "access plus 1 weeks"
      ExpiresByType text/ecmascript "access plus 1 weeks"
      ExpiresByType image/gif "access plus 1 years"
      ExpiresByType image/png "access plus 1 years"
      ExpiresByType image/jpeg "access plus 1 years"
      ExpiresByType image/ico "access plus 1 years"
      ExpiresByType image/icon "access plus 1 years"
      ExpiresByType image/x-icon "access plus 1 years"
      ExpiresByType video/x-flv "access plus 1 years"
      ExpiresByType video/quicktime "access plus 1 years"
      ExpiresByType application/x-shockwave-flash "access plus 1 years"
      ExpiresByType application/pdf "access plus 1 years"
    </IfModule>

    # gzip Compression if availiable
AddEncoding gzip .gzip
<IfModule mod_deflate.c>
 AddOutputFilterByType DEFLATE text/plain
 AddOutputFilterByType DEFLATE text/html
 AddOutputFilterByType DEFLATE text/xml
 AddOutputFilterByType DEFLATE text/css
 AddOutputFilterByType DEFLATE text/javascript
 AddOutputFilterByType DEFLATE application/xml
 AddOutputFilterByType DEFLATE application/xhtml+xml
 AddOutputFilterByType DEFLATE application/rss+xml
 AddOutputFilterByType DEFLATE application/javascript
 AddOutputFilterByType DEFLATE application/x-javascript
 AddOutputFilterByType DEFLATE application/x-shockwave-flash
</IfModule>
