Privacy Terms

Who We Are At Walk In The Cloud, we are committed to maintaining the trust and confidence of all visitors to our web site. In particular, we want you to know that Walk In The Cloud is not in the business of selling, renting or trading email lists with other companies and businesses for marketing purposes.  In this Privacy Policy, we’ve provided detailed information on when and why we collect personal information, how we use it, the limited conditions under which we may disclose it to others, and how we keep it secure.  We take your privacy seriously and take measures to provide all visitors and users of Walk In The Cloud with a safe and secure environment. Cookies  Walk In The Cloud may set and access Walk In The Cloud cookies on your computer.  Cookies are used to provide our system with the basic information to provide the services you are requesting.  Cookies can be cleared at any time from your internet browser settings.  Google Analytics When someone v...

如何利用 Apache 的 mod_pagespeed 快速強化原先網頁的效率

會接觸到這個套件是因為 Google PageSpeed Insights 實在太嚴格了,在不更改程式碼架構下要做基本的優化,只好找尋較方便的方式。

mod_pagespeed這個Apache的套件,可將一些js, css檔案合併,並自動優化整個網頁讀取速度,不需要更改原來的code撰寫,即可優化一些Google PageSpeed Insights抓出的小毛病。(但真的能改善的還是有限~有總比沒有好~只要一分鐘就能搞定,有做有保佑~)

目前是以環境主機為 Ubuntu 16.04 為例

1. 套件下載
64-bit version
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
32-bit version
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_i386.deb2. 

2. 安裝套件
sudo dpkg -i mod-pagespeed-*.deb

3. 移除套件安裝檔
rm mod-pagespeed-*.deb

4. 重開Apache
service apache2 restart

5. 編輯設定檔 (如不更改可用預設值)
vim /etc/apache2/mods-available/pagespeed.conf

更多詳細的參數設定說明可參考以下文件:
https://www.digitalocean.com/community/tutorials/how-to-get-started-with-mod_pagespeed-with-apache-on-an-ubuntu-and-debian-cloud-server

留言