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 an optional optimizer worker for the heavy image work.

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

Response header — captured 2026-10-16
x-mod-pagespeed: 1.19.0

A bit of history

ngx_pagespeed was developed by engineers from Google, Taobao and We-Amp 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.

When Google wound down its active development, We-Amp B.V. took over maintenance and continued development of the module, which ships today as part of mod_pagespeed 2.1.

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 filters are the same, and your existing pagespeed directives carry over: the move is a package swap, covered step by step in the ngx_pagespeed migration guide.

mod_pagespeed 2.1 builds on that foundation with:

  • Up to 37 image variants from one decode pass (WebP, AVIF, viewport-aware sizes), from the optional optimizer worker
  • Zero-copy serving of optimized variants from a shared-memory cache
  • 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, including the module install guide for nginx and Apache.

Prebuilt for Debian 12 and 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, containers or Windows?

mod_pagespeed 2.1 is also available for Apache, as a Docker image and Helm chart, for IIS, and as ASP.NET Core middleware (preview). Everything is listed on modpagespeed.com/download/.