Google PageSpeed Option

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 meta-data 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 pre-defined 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 tab:

Next, switch PageSpeed on by clicking on the button next to the desired domain name:

Important!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?

Regular hosting companies allow you only one way of flushing the PageSpeed cache - through console for the entire server. We at SiteGround, however, have developed a special technique that provide you with an easy and flexible method for clearing your 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 yourdomain.com - 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/yourdomain.com - 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.

Important: 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.