Select Page

mod_pagespeed by google inc, can help you get 100/100 in google pagespeed. You will not get 100/100 straight out of the box, but with some tweaking we might get near.

I will try to help you getting started with mod_pagespeed for Apache on CentOS 7, you might be able to use this guide with other distros.

Before we get started, there’s some thing that you need to know.

  1. Using Google analytics or tagmanager JavaScript will prevent you from getting 100/100
  2. Using external JavaScripts or css, might prevent you from getting 100/100

First we need to have apache installed, and at package the mod_pagespeed requires:

yum install -y httpd at

Now we can install mod_pagespeed module:

rpm -Uvh https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm

this will install mod-pagespeed-stable package on system, so now we have apache and mod_pagespeed.

we now have two new files in /etc/httpd/conf.d/ pagespeed.conf and pagespeed_libraries.conf.

 

Ref source:

Installing From Packages