# ModPageSpeed — self-hosted web performance optimization > Self-hosted web performance optimization for nginx, Apache, IIS, Envoy, and ASP.NET Core. Built by a mod_pagespeed maintainer. Two products that share one optimization core and one cache, in different deployment shapes. We-Amp B.V. ships two commercially maintained products that automatically optimize web content (images, CSS, JS, HTML). They share one optimization core: - **ModPageSpeed 2.0** — a ground-up C++23 rewrite. Optimizes at the reverse-proxy level (an nginx interceptor + factory worker with a shared disk cache, fronting any HTTP origin), or as ASP.NET Core middleware via NuGet. No application code changes required in the proxy mode. - **mod_pagespeed 1.15** — a native in-process module across the broadest server matrix (Apache, nginx, and IIS GA; Envoy experimental), with no separate worker and no added proxy hop. The commercially maintained continuation of Google's open-source mod_pagespeed: drop-in compatible, same directives, same filters, same behavior. Renumbered from 1.1 (forward-semver successor to the last upstream release, 1.14.36.1). Heritage: mod_pagespeed — the open-source optimization core We-Amp's products continue — powers 231,341 live sites today (per BuiltWith, May 2026). These are not We-Amp customers; they are the proof the optimization core works at scale. ## Key Features (ModPageSpeed 2.0) - Image optimization: WebP/AVIF/SVG transcoding, viewport-aware resizing, ML-predicted quality (LightGBM per format), SSIMULACRA2 perceptual verification, content-aware classification (photo/screenshot/illustration/noisy), bilateral denoising, quality baselining from source DQT — up to 37 variants per image (36 raster + 1 SVG) - CSS optimization: four-phase minification, heuristic-based critical CSS extraction, async CSS loading (optional browser pipeline for validation) - JavaScript optimization: safe minification, automatic script deferral via browser analysis, no AST transforms - HTML optimization: critical CSS injection, async CSS loading, script deferral, 103 Early Hints, lazy loading attributes, image dimensions, LCP image preload, font preloading, preconnect injection, speculation rules (experimental) - Variant-aware caching: 32-bit capability bitmask (format, viewport, density, Save-Data, encoding) - Zero-copy serving: sub-millisecond cache hits via mmap with best-fit fallback - AI agent optimization (licensed): serve a rendered-DOM Markdown copy of a page to AI agents at the same URL via Accept negotiation; off by default, nothing leaves the box — https://modpagespeed.com/docs/agent-optimize/ ## Architecture (ModPageSpeed 2.0) Three components in the reverse-proxy deployment: 1. Nginx interceptor — caching reverse proxy with zero-copy mmap serving 2. Cyclone cache — variant-aware disk cache with capability-based keys 3. Factory worker — async optimization worker for HTML, CSS, JS, and images Optimization happens outside the request path. First request serves original content; the worker optimizes asynchronously. Subsequent requests get the optimized variant from cache. ASP.NET Core applications can run the same optimization pipeline in-process as middleware (see below) instead of fronting the app with the nginx proxy. ## ASP.NET Core Middleware ModPageSpeed 2.0 is also available as a NuGet package (`WeAmp.PageSpeed.AspNetCore`) for ASP.NET Core applications. Same optimization pipeline, no nginx required — runs as standard middleware in your ASP.NET Core app. Supports linux-x64, linux-arm64, osx-arm64, and win-x64. - Install: `dotnet add package WeAmp.PageSpeed.AspNetCore` - Getting Started: https://modpagespeed.com/docs/aspnet-getting-started/ ## Pricing Licensed per site — one ladder across every engine and both products: - Unlicensed — $0: fully functional without a key, adds an X-PageSpeed-Warn: unlicensed response header - Community — $0: self-attested, renew every 365 days - Starter — $99/year or $12/month: one site, up to two servers - Business — $948/year or $99/month: unlimited servers per site - Enterprise — from $5,000/year: organization-wide: unlimited sites, servers, and engines - Hoster — about $35/host/month: for hosting providers, billed per host, contact sales - No free trial. The core is always fully functional: run it unlicensed and it fully optimizes, adding an "X-PageSpeed-Warn: unlicensed" response header (plus a console/log warning). The nag never escalates. Production use requires a commercial license — but the software never locks you out. - No bandwidth fees, no per-request charges, no feature gates - License terms: https://we-amp.com/licensing/ ## mod_pagespeed 1.15 mod_pagespeed 1.15 is the commercially maintained continuation of Google's open-source mod_pagespeed (renumbered from 1.1 — the forward-semver successor to the last upstream release, 1.14.36.1). Drop-in compatible — same configuration directives, same filters, same behavior. Swap the binary and keep your existing config. ### Key Changes from Open-Source - Cyclone Cache: fixed-size, lock-free, memory-mapped cache backend (replaces file-based cache) - Platforms: Apache, nginx, and IIS ship as GA packages; Envoy (HTTP filter) is experimental - Security patches for all known CVEs - Pre-built binaries (.deb, .rpm, .msi, tar.gz) via Bazel build system - Same pricing as 2.0: one per-site ladder (Business $948/year or $99/month, unlimited servers per site); no free trial. Production use requires a commercial license — but the software never locks you out ### ASP.NET Core sidecar (NuGet) mod_pagespeed 1.15 also ships as a NuGet sidecar package, `WeAmp.PageSpeed.Sidecar` (with native binaries in `WeAmp.PageSpeed.Sidecar.NativeAssets.Linux`). Linux-only (linux-x64 / linux-arm64); it bundles nginx 1.30.2. Inverse topology: your ASP.NET Core Kestrel app is the public front door, and the bundled nginx runs on loopback behind it as the optimize-proxy. Install with `dotnet add package WeAmp.PageSpeed.Sidecar` (GA on nuget.org). ### Distribution / install channels - Signed apt + yum repository at packages.modpagespeed.com (Apache + nginx .deb / .rpm). One-time setup: `curl -fsSL https://packages.modpagespeed.com/install.sh | sudo sh`, then `sudo apt install mod-pagespeed` / `sudo apt install nginx-module-pagespeed` (Debian / Ubuntu) or `sudo dnf install mod-pagespeed` / `sudo dnf install nginx-module-pagespeed` (AlmaLinux 9). The nginx module ships prebuilt and signed, with a .so pinned to each distro's stock nginx: Debian 11 bullseye (nginx 1.18.0), Debian 12 bookworm (nginx 1.22.1), Debian 13 trixie (nginx 1.26.3), Ubuntu 22.04 jammy (nginx 1.18.0), Ubuntu 24.04 noble (nginx 1.24.0), amd64 + arm64. Because each build is exact-version-pinned to its distro's nginx, running an nginx version we don't yet package needs a matching pinned build — contact us for one. - cPanel / EasyApache 4 (EA4) RPMs for Apache on cPanel hosts - IIS .msi for Windows Server 2019 / 2022 - Direct downloads (.deb, .rpm, .msi, tar.gz) — every file is GPG-signed ### When to Choose 1.15 vs 2.0 Choose by deployment fit, not by recency. Both products share the PSOL optimization core and Cyclone Cache, and both cost the same. - mod_pagespeed 1.15: native in-process module, no separate worker and no added proxy hop. The broadest server matrix — Apache, nginx, and IIS GA (Envoy experimental); the only product native inside Apache and IIS. Drop-in compatible with open-source mod_pagespeed (same directives, same filters, same behavior). The wider classic filter set: combine_css/combine_javascript, image spriting, IPRO, domain mapping, DNS prefetch, plus a built-in /pagespeed_admin/ UI. Also available as an ASP.NET Core sidecar via the WeAmp.PageSpeed.Sidecar NuGet package. - ModPageSpeed 2.0: out-of-process worker behind an nginx reverse proxy fronting any HTTP origin, or native ASP.NET Core middleware (NuGet, P/Invoke). The newest image pipeline (AVIF, SVG auto-vectorization, Jpegli, ML-predicted quality verified with SSIMULACRA2, up to 37 variants per image), variant-aware caching, zero-copy sub-millisecond serving, a web console, and Docker/K8s deployment. Both are actively maintained by We-Amp B.V. ## Company We-Amp B.V., The Netherlands (founded 2012, KvK 57898138) License: Commercial subscription. Source publication under BSL 1.1 is on the public roadmap (no date committed). See https://modpagespeed.com/terms/ and https://modpagespeed.com/license/. mod_pagespeed is an open-source project originally developed at Google. ModPageSpeed 2.0 and mod_pagespeed 1.15 are developed by We-Amp B.V. and are not affiliated with or endorsed by Google. ## Links - Documentation (2.0): https://modpagespeed.com/docs/ - Features: https://modpagespeed.com/features/ - Pricing: https://modpagespeed.com/pricing/ - Download / install: https://modpagespeed.com/download/ - Live Demo: https://modpagespeed.com/demo/ - Optimization Examples (live before/after per filter): https://modpagespeed.com/examples/ - Analyze a page (PageSpeed report mapping): https://modpagespeed.com/analyze/ - RenderPeek — free AI-readability checker (see what an AI agent reads on your page): https://modpagespeed.com/ai-readability/ - Blog: https://modpagespeed.com/blog/ - Getting Started: https://modpagespeed.com/docs/getting-started/ - Install (Docker): https://modpagespeed.com/docs/installation-docker/ - Install (Module): https://modpagespeed.com/docs/installation-module/ - Install (ASP.NET Core): https://modpagespeed.com/docs/aspnet-getting-started/ - Configuration: https://modpagespeed.com/docs/configuration/ - API Reference: https://modpagespeed.com/docs/api-reference/ - Web Console: https://modpagespeed.com/docs/workbench/ - Browser Analysis: https://modpagespeed.com/docs/browser-analysis/ - Savings Calculator: https://modpagespeed.com/calculator/ - Alternatives (mod_pagespeed, ngx_pagespeed, Google PageSpeed module, IISpeed): https://modpagespeed.com/alternatives/ - Comparisons (vs Cloudflare APO, Cloudinary, imgproxy, NitroPack, Thumbor, WP Rocket): https://modpagespeed.com/vs/ - Contact: https://modpagespeed.com/contact/ - License: https://modpagespeed.com/license/ - Terms: https://modpagespeed.com/terms/ - Privacy: https://modpagespeed.com/privacy/ - Security: https://modpagespeed.com/security/ - mod_pagespeed 1.15: https://modpagespeed.com/1.1/ - 1.15 Migrate from open source: https://modpagespeed.com/1.1/migrate/ - 1.15 cPanel / EA4: https://modpagespeed.com/1.1/cpanel/ - 1.15 apt/yum repository: https://modpagespeed.com/download/apt-yum/ - 1.15 Documentation: https://modpagespeed.com/1.1/docs/ - 1.15 Getting Started: https://modpagespeed.com/1.1/docs/getting-started/ - 1.15 Filter Reference: https://modpagespeed.com/1.1/docs/filter-reference/ - 1.15 Configuration: https://modpagespeed.com/1.1/docs/configuration/ - 1.15 FAQ: https://modpagespeed.com/1.1/docs/faq/ - Legacy Docs (1.0): https://modpagespeed.com/1.0/