diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-01-09 09:27:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-01-09 09:27:10 +0000 |
commit | 50535ab339a2b286013ed22fb92f7a28fd19a278 (patch) | |
tree | f8fa550b94f8aa8f91eabf6b62421638fa54a862 /.htaccess | |
parent | f19914529950cfbbe038adb23c967b79c06ba907 (diff) | |
download | brdo-50535ab339a2b286013ed22fb92f7a28fd19a278.tar.gz brdo-50535ab339a2b286013ed22fb92f7a28fd19a278.tar.bz2 |
- Patch #104506 by m3vrick: better cache headers for static files.
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -43,8 +43,13 @@ DirectoryIndex index.php php_value session.auto_start 0 </IfModule> -# Reduce the time dynamically generated pages are cache-able. +# Requires mod_expires to be enabled. <IfModule mod_expires.c> + # Enable expirations. + ExpiresActive On + # Cache all files for 2 weeks after access (A). + ExpiresDefault A1209600 + # Do not cache dynamically generated pages. ExpiresByType text/html A1 </IfModule> |