ngx_pagespeed

The maintained PageSpeed module for nginx

The upstream ngx_pagespeed module was archived. The maintained continuation lives here: automatic image optimization, CSS and JavaScript minification, and dozens of other performance filters for nginx, with a signed repository, active development, and a modern engine behind it.

When Google announced PageSpeed for nginx, it credited the module to developers from Google, Taobao, and We-Amp. We-Amp maintains it today.

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. took over maintenance and continued development under the ModPageSpeed project, where it ships today as part of ModPageSpeed 2.0.

Sources: Google Developers Blog (2013) credits the module to developers from Google, Taobao, and We-Amp; TechCrunch (2013) reported the same open-source participation; and the Apache Incubator PageSpeed proposal lists We-Amp B.V. as a founding committer organization.

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.

Prebuilt for Debian 11–13 and Ubuntu 22.04/24.04 (amd64 + arm64), and RHEL/AlmaLinux/Rocky 9 (x86_64 + aarch64) and 10 (x86_64), each pinned to that distro's stock nginx.

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.