Home Speed Up Your Web Site With Google’s mod_pagespeed for Apache

Speed Up Your Web Site With Google’s mod_pagespeed for Apache

Today Google released mod_pagespeed, an Apache module that automates many of Google’s Page Speed optimization recommendations. The mod currently offers 18 configurable filters. You’ll probably need root access to install this on your server, but Google is working with GoDaddy to bring this to shared hosting customers. Hopefully, other hosts will follow. Google is also working with CDN provider Contendo to bring mod_pagespeed to its service. If you use WordPress and want to implement some of these fixes without root access, you can try the W3 Total Cache plugin (which is still in pre-1.0 release).

The problem with Page Speed is that not all of the recommendations are easy to implement. A few that are a particularly painful that mod_pagespeed should automate, according to Google, are:

  • Making changes to the pages built by the Content Management Systems (CMS) with no need to make changes to the CMS itself,
  • Recompressing an image when its HTML context changes to serve only the bytes required (typically tedious to optimize manually), and
  • Extending the cache lifetime of the logo and images of your website to a year, while still allowing you to update these at any time.

The current 18 filters fall into three categories. Each filter has risks associated with it, which can be found in the documentation. The categories and filters are:

Optimize Caching

  • Extend Cache
  • Outline CSS
  • Outline JavaScript

Minimize Round Trip Times

  • Combine CSS
  • Inline CSS
  • Inline JavaScript

Minimize Payload Size

  • Collapse Whitespace
  • Combine Heads
  • Elide Attributes
  • Minify Javascript
  • Optimize Images
  • Remove Comments
  • Remove Quotes
  • Rewrite CSS
  • Move CSS to HEAD
  • Optimize Images
  • Add Head
  • Add Instrumentation

Google is apparently planning on adding more filters under the category “minimize request overhead,” but none are available yet.

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the tech industry for major developments, new product launches, AI breakthroughs, video game releases and other newsworthy events. Editors assign relevant stories to staff writers or freelance contributors with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.

Get the biggest tech headlines of the day delivered to your inbox

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.

    Tech News

    Explore the latest in tech with our Tech News. We cut through the noise for concise, relevant updates, keeping you informed about the rapidly evolving tech landscape with curated content that separates signal from noise.

    In-Depth Tech Stories

    Explore tech impact in In-Depth Stories. Narrative data journalism offers comprehensive analyses, revealing stories behind data. Understand industry trends for a deeper perspective on tech's intricate relationships with society.

    Expert Reviews

    Empower decisions with Expert Reviews, merging industry expertise and insightful analysis. Delve into tech intricacies, get the best deals, and stay ahead with our trustworthy guide to navigating the ever-changing tech market.