ngx_pagespeed

The maintained PageSpeed module for nginx

ngx_pagespeed brings automatic image optimization, CSS and JavaScript minification, and dozens of other performance filters to nginx. The maintained continuation has a signed repository, active development, and a modern engine behind it.

A bit of history

ngx_pagespeed was created by Google as the nginx port of the original mod_pagespeed Apache module. It brought automatic image optimization, CSS and JavaScript minification, and dozens of other performance filters to nginx — and was adopted by thousands of servers worldwide.

When Google wound down its active development, We-Amp B.V. — founded by a former mod_pagespeed maintainer — took over maintenance and continued development under the ModPageSpeed project. The same team, the same mission: making the web faster with minimal effort.

What changed

If you have been running ngx_pagespeed, the transition is straightforward. The optimization engine is the same, and your existing configuration remains compatible.

ModPageSpeed 2.0 builds on that foundation with:

  • A modern C++23 cache engine for faster, more reliable caching
  • More optimization variants and improved filter performance
  • Continued first-class nginx support
  • Active maintenance and regular releases

To get running, the install hub has the commands for both the signed repository and a from-source build, and the configuration reference covers the minimal directives. The full docs live at modpagespeed.com.

Also running Apache or IIS?

mod_pagespeed 1.1 is the maintained continuation of the open-source module across Apache, IIS, and Envoy — the same configuration, the same filters, and ongoing security patches. The Apache module installs from the same signed repository as the nginx one, under the package name mod-pagespeed.