Page Speed Optimization
You can turn it on and off from the panel's Manage Domains section. Find the domain, click the Edit button, and in the Fully Hosted section of the page check the box for "Page Speed Optimization?".
How does it work?
The mod_pagespeed apache module dynamically adjusts the filenames of site resources, adding information about how 'old' the item is. It uses these age calculations to instruct user's browsers to serve cached copies of resources instead of requesting new copies. This cuts down on the number of requests to the server, which improves site speed in two ways:
- when a user can use a cached version of a resource instead of requesting a new copy, there is no need for the user to wait for the request to be sent to the server and then wait for the server to send the resource back to the user
- with the server serving less resource requests, it has more resources to jump on the requests it does receive, so those requests can potentially be filled in less time
How can I tell it's working?
Go to your website and browse around a bit. Resources that are on multiple web pages, such as a header graphic, will have a filename like
originalFileName.gif is what you named it when you uploaded it to the webserver. All the extra stuff (
.pagespeed.ce.9-w9vHbyfP.gif) is added by pagespeed.
If an image with a name like "Åsen.jpg" does get rewritten by pagespeed, try renaming it to "Aasen.jpg".
How can I clear the Pagespeed Cache
You can't unless you disable and enable it. This is (in part) due to how Google initially designed PageSpeed, and requires some serious refactoring for anyone to do otherwise.
PageSpeed has a lot of additional filters which you can use to minify even further.
Here's an example:
- remove_comments – Remove HTML comments (low risk)
- rewrite_css – parses linked and inline CSS, rewrites the images found and minifies the CSS (med. risk)
- rewrite_images – compresses and optomizes images (med. risk)
- elide_attributes – removing attributes from tags (med. risk)
- move_css_to_head – combines CSS and moves it to the head of your file (low risk)
Other optimizations for speed
Both mod_pagespeed and other performance software (Zend Optimizer+, etc.) can be installed by GetPageSpeed service