apahce module模組--mod_pagespeed -- Google出的,用來優化網頁

http://code.google.com/intl/zh-TW/speed/page-speed/docs/module.html

mod_pagespeed is an open-source Apache module that automatically optimizes web pages and resources on them. It does this by rewriting the resources using filters that implement web performance best practices. Webmasters and web developers can use mod_pagespeed to improve the performance of their web pages when serving content with the Apache HTTP Server.

下載頁面 http://code.google.com/intl/zh-TW/speed/page-speed/download.html
我要用的是 : mod_pagespeed 32-bit .rpm (CentOS/Fedora)

安裝

rpm -ivh mod-pagespeed-beta_current_i386.rpm

套件內容

/etc/cron.daily/mod-pagespeed
/etc/httpd/conf.d/pagespeed.conf
/usr/lib/httpd/modules/mod_pagespeed.so
/var/www/mod_pagespeed/cache
/var/www/mod_pagespeed/files

重新啟動apache

測試
可以在phpinfo的HTTP Headers Information看到相關資訊

X-Mod-Pagespeed 0.9.16.9-576

我用 http://pagespeed.googlelabs.com/ 測試一下效能 (firefox 4 + pagespeed附加元件)
(未修改過 /etc/httpd/conf.d/pagespeed.conf內容)
apache 沒有掛載 pagespeed 時是 80 分
apache 有掛載 pagespeed 時是 82 分

這樣子是有成功嗎! 還是我首頁太多東西了

問題
mod_pagespeed  會讓 TinyEditor 編輯器不能用

評論: 0 | 引用: 0 | 閱讀: 572 | 列印 | 文件 | 轉發

發表評論
暱 稱: 密 碼:
網 址: E - mail:
驗證碼: 驗證碼圖片 選 項:
頭 像:
內 容:
  • 粗體
  • 斜體
  • 底線
  • 插入圖片
  • 超連結
  • 電子郵件
  • 插入引用
  • 表情符號