themes/.htaccess
author Dan Fuhry <dan@enanocms.org>
Fri, 02 Dec 2011 01:15:55 -0500
changeset 1355 12c23b83c79d
parent 596 82320949a3b5
permissions -rw-r--r--
Conditionally declare hex2bin() due to a function of the same name being introduced in PHP 5.4

# Thanks to http://phaedo.cx/archives/2007/07/25/tools-for-optimizing-your-website-etag-and-expire-headers-in-django-apache-and-lighttpd/ for this.
FileETag MTime Size

# http://www.askapache.com/htaccess/apache-speed-expires.html
<IfModule mod_headers.c>
  <FilesMatch "\.(jpg|jpeg|png|gif|js|css)$">
    Header set Expires "Wed, 1 Jan 2020 20:00:00 GMT"
  </FilesMatch>
</IfModule>

# http://www.askapache.com/htaccess/apache-speed-compression.html
<IfModule mod_deflate.c>
  <FilesMatch "\.(js|css)$">
    SetOutputFilter DEFLATE
  </FilesMatch>
</IfModule>