Automatic PageSpeed optimization module for Nginx

Clone this repo:
  1. 71e24c1 Refactored #1750 to support older NGINX versions (fixes #1749) by Danila Vershinin · 6 weeks ago master
  2. 143c4b7 [DRAFT] Fixes for NGINX nginx 1.23.0 by Otto van der Schaaf · 6 weeks ago
  3. 9e70f6d Avoids relying on Bash (#1700) by Werner Beroux · 2 years ago
  4. d647f4b Update (#1677) by Ivan Ridao Freitas · 2 years, 7 months ago
  5. c69649a Fix error handling in ps_create_XXX_conf (#1625) by Otto van der Schaaf · 3 years, 6 months ago


Build Status

ngx_pagespeed speeds up your site and reduces page load time by automatically applying web performance best practices to pages and associated assets (CSS, JavaScript, images) without requiring you to modify your existing content or workflow. Features include:

  • Image optimization: stripping meta-data, dynamic resizing, recompression
  • CSS & JavaScript minification, concatenation, inlining, and outlining
  • Small resource inlining
  • Deferring image and JavaScript loading
  • HTML rewriting
  • Cache lifetime extension
  • and more

To see ngx_pagespeed in action, with example pages for each of the optimizations, see our demonstration site.

How to build

Follow the steps on build ngx_pagespeed from source.

How to use

Follow the steps on PageSpeed configuration.

For feedback, questions, and to follow the progress of the project: