From 8726b60b812978e1db10e53ea0a29c94b1307f11 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Tue, 27 Apr 2010 14:09:01 +0200 Subject: [PATCH] add cache control statements to the example apache configs --- etc/apache2/dedicated_vhost.conf | 17 +++++++++++++++++ etc/apache2/shared_vhost.conf | 16 ++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/etc/apache2/dedicated_vhost.conf b/etc/apache2/dedicated_vhost.conf index 0f85fa7..de60a3b 100644 --- a/etc/apache2/dedicated_vhost.conf +++ b/etc/apache2/dedicated_vhost.conf @@ -19,4 +19,21 @@ WSGIDaemonProcess mumble-django threads=25 WSGIProcessGroup mumble-django WSGIScriptReloading Off + + # Cache optimization - not necessarily needed for MD, but nice to have :) + FileETag None + + Header unset ETag + + + Header set Cache-Control "max-age=86400, must-revalidate" + + + + # compress content + AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript image/png image/jpeg image/gif + # properly handle requests coming from behind proxies + Header append Vary User-Agent + + diff --git a/etc/apache2/shared_vhost.conf b/etc/apache2/shared_vhost.conf index 388d1d2..50eaa5b 100644 --- a/etc/apache2/shared_vhost.conf +++ b/etc/apache2/shared_vhost.conf @@ -31,4 +31,20 @@ # ----------->8--------- cut here + # Cache optimization - not necessarily needed for MD, but nice to have :) + FileETag None + + Header unset ETag + + + Header set Cache-Control "max-age=86400, must-revalidate" + + + + # compress content + AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript image/png image/jpeg image/gif + # properly handle requests coming from behind proxies + Header append Vary User-Agent + +