From c19af96cb8b1e272fbbd0f478ff203141a9572f7 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 4 Dec 2012 13:24:58 +0100 Subject: Enable mod_deflate Enabled mod_deflate for: * text/html (HTML files) * text/plain (for future use) * text/css (CSS files) * text/xml (XML RPC) * application/javascript (JavaScript files) * application/json (JSON RPC) * application/x-font-woff (woff fonts) Added proper mime type for woff fonts. Disabled etag header because it doesn't work with mod_deflate. https://fedorahosted.org/freeipa/ticket/3326 --- install/conf/ipa.conf | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'install') diff --git a/install/conf/ipa.conf b/install/conf/ipa.conf index d3f3446b0..a936c7fe6 100644 --- a/install/conf/ipa.conf +++ b/install/conf/ipa.conf @@ -1,5 +1,5 @@ # -# VERSION 10 - DO NOT REMOVE THIS LINE +# VERSION 11 - DO NOT REMOVE THIS LINE # # This file may be overwritten on upgrades. # @@ -22,6 +22,18 @@ LimitRequestFieldSize 100000 AddType application/java-archive jar AddType application/x-xpinstall xpi +# Proper header for .woff fonts +AddType application/x-font-woff woff + +# Enable compression +AddOutputFilterByType DEFLATE text/html text/plain text/xml \ + application/javascript application/json text/css + +# Disable etag http header. Doesn't work well with mod_deflate +# https://issues.apache.org/bugzilla/show_bug.cgi?id=45023 +# Usage of last-modified header and modified-since validator is sufficient. +Header unset ETag +FileETag None # FIXME: WSGISocketPrefix is a server-scope directive. The mod_wsgi package # should really be fixed by adding this its /etc/httpd/conf.d/wsgi.conf: -- cgit