Page Speed Optimization

From DreamHost
Jump to: navigation, search
Page speed opt screenshot.jpg
Page Speed Optimization is a tool that reduces website loading times by automatically optimizing web pages and resources on them. It is an apache module, mod_pagespeed, from Google. It was announced in DreamHost's blog in 2010.

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.pagespeed.ce.9-w9vHbyfP.gif. The 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.

How can I clear the Pagespeed Cache

You can't unless you disable and enable it, which takes much too long -> Vote up the suggestion to manually clear the pagespeed cache feature!!!

Personal tools