Design page: http://www.freeipa.org/page/V3/WebUI_gzip_compression
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 -- Petr Vobornik
From 8723c2f3841730c4be295650ed93521513abaaad Mon Sep 17 00:00:00 2001 From: Petr Vobornik <pvobo...@redhat.com> Date: Tue, 4 Dec 2012 13:24:58 +0100 Subject: [PATCH] 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 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/install/conf/ipa.conf b/install/conf/ipa.conf index d3f3446b0fdcddd3400d784b7b46368db682d335..2a35a1420cf3edeee36e244f692f7b973016171d 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,19 @@ 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 \ + application/x-font-woff + +# 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: -- 1.7.11.7
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel