Google PageSpeed Option Tutorial

Learn how to use the Google PageSpeed option of the SuperCacher service

Google Page Speed is an Apache module (mod_pagespeed) created by Google to reduce page load time. It automatically speeds up your site by applying optimizations to your pages, CSS, JavaScript, images and other content.

How does Google PageSpeed work?

The mod_pagespeed Apache module, developed by Google allows using multiple site speed optimizations like combining and minifying JavaScript and CSS files, inlining small resources, dynamically optimization of images by removing unused metadata from each file, resizing the images to specified dimensions, and re-encoding images to be served in the most efficient format available to the user. When mod_pagespeed is enabled it come with a predefined set of core optimization filters. In addition, you can add more advanced filters for higher performance improvements.

How to enable Google PageSpeed?

You can enable Google PageSpeed from the SuperCacher tool in your cPanel. There, you need to turn the module on from the Google PageSpeed section:

Next, switch PageSpeed on by clicking the On/Off toggle button next to the desired domain name.

Note that currently PageSpeed cannot be used together with the Static and/or the Dynamic cache options. If you switch PageSpeed on, we will automatically switch off any other caching option that is currently active but is not compatible.

How to flush Google PageSpeed cache?

You can either clear the master cache for your entire account, or you can clear it on per domain basis.

Advanced Google PageSpeed configuration

To access the advanced PageSpeed configuration, press the Advanced button next to a domain name that you've activated the service for.

A pop-up will appear with few lines in it. Those are the currently active PageSpeed rules.

By default, you will have four rules added:

  • ModPagespeed On - this line starts the PageSpeed module
  • ModPagespeedDomain - this line defines your domain
  • ModPagespeedEnableFilters extend_cache - this is a complex rule that enables three different optimizations:
    • CSS Optimization
    • Images Optimization
    • JavaScript Optimization
  • ModPagespeedFileCachePath /home/user/.pagespeed_cache/ - the path to the PageSpeed cache file

Google PageSpeed has more than 40 different optimization filters. For detailed information on each one of them, please visit the official Google documentation page.

Note that each time you disable Google PageSpeed, all your custom filters will be reset. Do not forget that if you switch on Static or Dynamic cache, Google PageSpeed will be disabled automatically, and all custom settings will be lost. We recommend that you keep a copy of any custom optimization filters you want to use.