Stable version of Google's mod_pagespeed

Among the open source software offered by Google in recent times, mod_pagespeed is probably the most interesting, and is certainly intended to save a huge amount of time for web developers.


For about a month is online version 1.0, after two years of beta versions, and the next is now ready as beta.

Let's see what it is. Mod_pagespeed is a module for Apache, the most popular web server, to optimize the way in which Apache serving pages, so as to achieve a much faster loading client side.

The software is easy to install (it is already available from Google packaged for Debian, Ubuntu, Red Hat and Fedora, and users have already made packages for much more, including Windows) consists on a series of filters that the server applies to web pages before serve them, automatically optimizing what would typically optimize the developer of the site, and allowing the visitor's browser a more efficient use of the cache.

One of the great problems of web designers, for example, is the modularization of CSS to use: the more are used, the more are comfortable to use. At the same time, however, many CSS likely to slow down the loading of the page. Usually, you lose a lot of time to create systems that server-side, dealing combine CSS with each other. This will be done automatically by mod_pagespeed, joining all the sheets into one, and entering the name of the virtual sheet so created its MD5 sum and set the caching time for one year. In this way, the visitor's browser will download the CSS only once a year, unless the developer of the site does not change, thus changing the MD5 and making it clear the browser should re-download everything again.


Another example of a filter is that which applies to images. Anyone who had to deal with websites that contain photographs or similar, knows well how boring it is every time create different sized images for thumbnail previews and various. A filter mod_pagespeed takes care of reading the image should be displayed as large, CSS and HTML, and automatically generate the small version. In addition, the image is optimized in terms of definition, often too high for a monitor, is relieved of unnecessary metadata, and is (if the requesting browser supports the format) converted into WebP, an open source format for the transmission of images web, which compresses a lot. This allows you to create websites that use WebP without discriminating the browser "by hand" by analyzing the request, and without having to make more versions of the same image. Also in the file names of the images you set a MD5, which allows you to keep in cache for a year if they are changed.

There are many other filters, well documented and testable on the website of mod_pagespeed. The filters are activated one by one, and Google has grouped all those basic and extremely stable in order to activate them by default (even though it is possible to disable all and enable only what you want). The activation is done from the server configuration, but you can also request via http header to be activated in order to test specific filters before you configure everything.

The software will soon see improved caching system server through the use of memcached. Memcached caching system known Open Source, is already on the beta branch of mod_pagespeed, and allows those who manage sites that reside side by side on most servers using a single area of ​​cache: in this way, if a server creates such thumbnail for an image, all the other servers will quickly available.

Mod_pagespeed is actually nothing more than a wrapper that can be used to make Apache a set of libraries of Google, called PageSpeed ​​Optimization Libraries, which are in fact independent of Apache (have been created in parallel to a proprietary server Apache and Google). These libraries have well-documented APIs that allow anyone interested to write modules for web servers other than Apache, or using other memcached cache systems, such as those existing in the architecture on which you want to run the libraries.

Already several hoster, particularly U.S., integrate the module and allow you to activate it via the control panel.

I mean, you go to a web always faster and less bandwidth-hungry for those who surf the Internet, while developers began an era in which they can finally address the logic and content of a website, without having to think about how to optimize to make it quickly downloaded and at the same time easily modifiable.

A beautiful thanks to Google, which has once again made freely available technology designed for its own systems. Anyone who wants to work has to have a mailing list, and I see that Google has been very active also to consider the demands made on StackOverflow.


Similar Content

Identify harmful Web Shell with PHP Shell Detector

webshell php

A web shell is a script, commonly written in PHP, which can provide access as the root user to a web server compressed. Trojan also renamed PHP can be very harmful if used correctly by an attacker, it is therefore important to periodically analyze the platform's web in search of intruders.

How to spy a mobile phone

how to spy a mobile phone

Have you ever thought to spy your friend’s mobile phone or reading all messages on your girlfriend’s mobile and listen all her calls too.  Maybe you haven’t done it yet because you haven’t found a simply and cheaper way. So reading this guide you can finally try to do it.

There are a lot of free or very cheaper solutions even if you should use them only to make some joke and not to violate the privacy of other people. In this way, in fact, you will commit a serious crime!


Facebook, 1 hour blackout in Europe

Last night, many users have reported on Twitter that Facebook was not accessible. A few minutes later Anonymous posted a message in which the group of hacktivists claimed the attack on the servers of the social network. A spokesman for Menlo Park has denied everything, saying that it was a simple technical problem.

News Magazine: 

Anonymous, this time hitting the State Police

The hacktivist group most famous against the most sensitive Italian goal. The hole suffered by the server of the State Police at the hands of Anonymous last night marks a quantum leap in the company's shares, which - perhaps because they have abandoned WikiLeaks - seem to be devoting more and more data leaks and dedicate to public shares.
News Magazine: 

On Google+ comes the zoom on photos

zoom google+Short, but interesting. It is the latest news on Google+, shared on the social network by Dave Cohen, Google.
It is zooming, used by the user when viewing photos. Everything is connected, quite simply, to the mouse wheel: moving it forward or backward, it becomes possible to zoom in or out details and particulars.
News Magazine: