Installing mod_pagespeed on Ubuntu
Wednesday, June 8th, 2011mod_pagespeed is an Apache HTTP module which is supposed to do a lot of website performance optimization before sending it to the browser. For details please check mod_pagespeed docs or the Google IO talk (Make the web faster) about this topic.
Installing on Ubuntu is simple, please see Download site and explanation. Please note that the example below uses the 64bit version.
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_amd64.deb dpkg -i mod-pagespeed-*.deb apt-get -f install
This will add the Google repository to your system so an apt-get update & upgrade will keep mod_pagespeed up to date.
A quick check with http://www.webpagetest.org showed that it speeds up vogella.de significantly. I used my Android tutorial as example.
Without the module:
| Load Time | First Byte | Start Render | |
| First View | 13.417s | 0.385s | 1.377s |
| Repeat View | 3.006s | 0.380s | 0.766s |
With the module activated:
| Load Time | First Byte | Start Render | |
| First View | 8.980s | 0.380s | 1.270s |
| Repeat View | 2.441s | 0.389s | 0.792s |
Pretty cool performance improvements for 5 minutes of installation effort.
Thanks to Google for making the web faster. I hope this module gets contributed to the Apache HTTP server.
