From: Thierry Parmentelat Date: Sun, 15 Feb 2009 15:27:55 +0000 (+0000) Subject: optimize : enable compression, and expires on non-php content X-Git-Tag: PLEWWW-4.3-1~42 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=fa8a24491f2b11e171d63daebac26d7f489727ed;p=plewww.git optimize : enable compression, and expires on non-php content --- diff --git a/httpd.conf b/httpd.conf index 8536898..2240a7b 100644 --- a/httpd.conf +++ b/httpd.conf @@ -45,9 +45,17 @@ DirectoryIndex index.php # Reduce the time dynamically generated pages are cache-able. - - ExpiresByType text/html A1 - +# note: drupal's botstrap.inc does: header("Expires: Sun, 19 Nov 1978 05:00:00 GMT"); +# so forget about optimizing php content +ExpiresActive On + +ExpiresDefault "access plus 12 hours" + + +# Turn on gzip compression + +SetOutputFilter DEFLATE + # Various rewrite rules.