From 49dace5cf4e85caa27aff4cd68912e79eaf66730 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 27 May 2014 09:43:03 +0200 Subject: [PATCH] Update mod_expires conf --- conf/httpd_alias.conf | 15 ++++++++------- conf/httpd_vhost.conf | 13 +++++++------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/conf/httpd_alias.conf b/conf/httpd_alias.conf index ff364f6..0673379 100644 --- a/conf/httpd_alias.conf +++ b/conf/httpd_alias.conf @@ -20,13 +20,14 @@ ScriptAlias /vroom /opt/vroom/public/vroom.pl Header append Vary User-Agent env=!dont-vary - - - - ExpiresActive On - ExpiresDefault "access plus 1 month" - - + Header unset ETag + + ExpiresActive on + ExpiresDefault "access plus 1 month" + ExpiresByType application/json "access plus 0 seconds" + ExpiresByType application/xml "access plus 0 seconds" + ExpiresByType text/xml "access plus 0 seconds" + ExpiresByType text/html "access plus 0 seconds" SSLRequireSSL on diff --git a/conf/httpd_vhost.conf b/conf/httpd_vhost.conf index a2501f1..0bb0d59 100644 --- a/conf/httpd_vhost.conf +++ b/conf/httpd_vhost.conf @@ -29,13 +29,14 @@ Header append Vary User-Agent env=!dont-vary + Header unset ETag + ExpiresActive on + ExpiresDefault "access plus 1 month" + ExpiresByType application/json "access plus 0 seconds" + ExpiresByType application/xml "access plus 0 seconds" + ExpiresByType text/xml "access plus 0 seconds" + ExpiresByType text/html "access plus 0 seconds" - - - ExpiresActive On - ExpiresDefault "access plus 1 month" - -