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
This commit is contained in:
Petr Vobornik
2012-12-04 13:24:58 +01:00
parent 94153bc093
commit c19af96cb8

View File

@@ -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: