Confluence 6 啓用 HTTP 壓縮

  1. 在屏幕的右上角單擊 控制檯按鈕 ,而後選擇 基本配置(General Configuration) 連接。
  2. 在左側的面板中選擇 通用配置(General Configuration)
  3. 啓用 HTTP 響應壓縮(Compress HTTP Responses)

你能夠配置那些內容在傳輸的時候被壓縮,這些配置是在 Confluence 中的。在默認的狀況下,下面的 mime 類型將會被壓縮:javascript

  • text/htmltext
  • javascript
  • text/css
  • text/plain
  • application/x-javascript
  • application/javascript

若是你但願修改壓縮內容的類型,添加一個替代的 urlrewrite-gzip-default.xml 文件到  WEB-INF/classes/com/atlassian/gzipfilter/ 目錄中。這個目錄在你的 Confluence 安裝目錄中。一示例文件以下面連接中的內容:https://confluence.atlassian.com/doc/files/13204/149258252/1/1206408412991/urlrewrite-gzip-default.xml。這個並不表明你須要修改這個文件。css

 

https://www.cwiki.us/display/CONF6ZH/Compressing+an+HTTP+Response+within+Confluencehtml

相關文章
相關標籤/搜索