diff --git a/.htaccess b/.htaccess index e206b6fd0f090b47b9b68e5a763d3d98ed89c4e4..37170fb2f53cfd5fed5636e4112885cb83dc318a 100644 --- a/.htaccess +++ b/.htaccess @@ -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>