1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Enabling Google PageSpeed Tools
The Google PageSpeed Insights tool allows you to measure a page's loading time on mobile and desktop devices while Google's PageSpeed Tools module is an Open Source library that allows you to optimise a site on the server thanks to over 40 filters which follow good practices recommended by Google. To find out more
Infomaniak only manages PageSpeed Tools module activation. If you have a problem with Apache server responses or incompatibility with your Web applications, our support team will not be able to help you (to find out more).
Installing PageSpeed Tools
To enable Google PageSpeed Tools:
- open the Manager (manager.infomaniak.com)
- go to Web Hosting
- click on the hosting/domain name concerned
- under Sites, click on the domain name of the site concerned
- click on Advanced Settings
- click on the Apache tab
- enable the Google PageSpeed Optimization option
Configuration enabled by default
A cache system is also in place for site files. It is updated every 15 minutes.
If necessary, you can customise some directives using the .htaccess file for the site: https://modpagespeed.com/doc/configuration#htaccess
But be careful: according to this Google thread and this discussion, mod_pagespeed unfortunately does not take into account directives in a ".htaccess" file when accessing a dynamic file. In order to avoid or no longer have mod_pagespeed, it must be disabled from the Manager.
Apart from this, it is not unusual after installing PageSpeed for warnings to appear:
"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 are seeing..."
In a shared environment, it is not worrying or unusual to go slightly over the 50 ms response time.