plugins/gallery/.htaccess
author Dan Fuhry <dan@enanocms.org>
Sat, 21 Aug 2010 23:51:10 -0400
changeset 44 17cfc3da0dcc
parent 36 60e80cd47b61
permissions -rw-r--r--
Put a noscript around that
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
     1
# 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.
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
     2
FileETag MTime Size
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
     3
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
     4
# http://www.askapache.com/htaccess/apache-speed-expires.html
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
     5
<IfModule mod_headers.c>
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
     6
  <FilesMatch "\.(jpg|jpeg|png|gif|js|css)$">
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
     7
    Header set Expires "Wed, 1 Jan 2020 20:00:00 GMT"
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
     8
  </FilesMatch>
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
     9
</IfModule>
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
    10
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
    11
# http://www.askapache.com/htaccess/apache-speed-compression.html
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
    12
<IfModule mod_deflate.c>
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
    13
  <FilesMatch "\.(js|css)$">
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
    14
    SetOutputFilter DEFLATE
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
    15
  </FilesMatch>
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
    16
</IfModule>
60e80cd47b61 Added .htaccess with far future Expires + mod_gzip
Dan
parents:
diff changeset
    17