Confluence supports HTTP GZip transfer encoding. This means that if a user's web browser supports it, Confluence will compress the data it sends to the user. This will speed up Confluence over slow or congested Internet links, and reduce the amount of bandwidth consumed by a Confluence server.

(info) Gzipping the HTTP Response is available in Confluence 1.4 and later.

You should turn on Confluence's GZip encoding if:

  • ユーザーがインターネット接続または限られた帯域幅の WAN 接続で Confluence にアクセスしている場合。
  • Confluence サーバーとクライアント間のデータ転送量を削減したい場合。

If you are accessing Confluence over a Local Area Network or over a particularly fast WAN, you may wish to leave GZip encoding disabled. If the network is fast enough that transferring data from Confluence to the user isn't a limiting factor, the additional CPU load caused by having to compress each HTTP response may in fact slow Confluence down.

Known issues in Confluence 2.7 and earlier

There are known issues with the GZip filter and memory consumption evident in versions 2.7 of Confluence and earlier (CONF-9930). If you are running a large instance of Confluence 2.7 or earlier and frequently experiencing 'out of memory' errors, we recommend that you do not enable HTTP compression. These issues have been resolved in Confluence 2.8.

HTTP 圧縮の有効化

  1. Go to the Confluence 'Administration Console'. To do this:

    • Open the 'Browse' menu and select 'Confluence Admin'. The 'Administration Console' view will open.
  2. 左側のパネルにある「一般設定」を選択します。
  3. HTTP 応答の圧縮」を有効にします。

In Confluence 2.8 and later, you can configure which types of content are compressed within Confluence. By default, the following mime types will be compressed:

  • テキスト/ html テキスト
  • javascript
  • テキスト / css
  • text/plain
  • アプリケーション / x-javascript
  • アプリケーション / javascript

If you wish to change the types of content to be compressed, add a replacement urlrewrite-gzip-default.xml file within the WEB-INF/classes/com/atlassian/gzipfilter/ directory in your Confluence installation directory. A sample file is provided as an attachment. Generally speaking, it is unlikely that you will need to alter this file.

関連トピック

Performance Tuning
Administrators Guide