1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Enabling Google PageSpeed Tools
This guide explains how to install the PageSpeed Insights tool on an Infomaniak Web Hosting.
The PageSpeed Insights tool from Google allows you to measure the loading time of a page on mobile and desktop devices while the PageSpeed Tools module from Google is an Open Source library that allows you to optimise a site on the server thanks to more than 40 filters that correspond to good practices recommended by Google. Find out more
Install PageSpeed Tools
To enable Google PageSpeed Tools:
- Open the Manager (manager.infomaniak.com)
- Go to Web Hosting
- Click on the relevant hosting/domain name
- Under Sites, click on the domain name of the relevant site
- Click on Advanced settings
- Click on the Apache tab
- Enable the option Google Page Speed optimisation
Default setting
ModPagespeedEnableFilters combine_css
ModPagespeedEnableFilters extend_cache
ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters rewrite_css
ModPagespeedEnableFilters rewrite_javascript
ModPagespeedEnableFilters combine_javascript
ModPagespeedEnableFilters pedantic
ModPagespeedEnableFilters remove_comments
A caching system is also in place for the site files. This is updated every 15 minutes.
If necessary, it’s possible to customise certain directives via the website’s .htaccess file: https://modpagespeed.com/doc/configuration#htaccess
But beware: according to this Google thread and this discussion, unfortunately mod_pagespeed doesn’t take into account the directives in a ".htaccess" file when accessing a dynamic file. To avoid / get rid of mod_pagespeed, it must be disabled from the Manager.
Known incompatibilities
- ownCloud
- WP Rocket
In addition, it’s not unusual for warnings to appear after installing PageSpeed:
"By default, mod_pagespeed will fetch css/js/images using http. If the webserver doesn’t respond within 50ms (by default), it will abort the request, and log the timeout messages you’re seeing...”
In a shared environment, it’s not a concern or an anomaly to slightly exceed the 50ms response time.