Skip to main content
mod_pagespeed 2.1 is here — open source (Apache-2.0): the module you know, plus the optimizer worker

mod_pagespeed vs NitroPack

TL;DR

NitroPack is a managed SaaS that plugs into WordPress (and other PHP stacks) and offloads optimization to its cloud. mod_pagespeed runs on your server and does the same kind of work without sending content to a third party. NitroPack is faster to set up and takes the operational ownership off your hands. mod_pagespeed is for teams that want the optimization layer and the data path on their own servers.

At a glance

  • Deployment

    mod_pagespeed 2.1
    Self-hosted (module + optimizer worker)
    NitroPack
    Managed SaaS; lightweight plugin on the origin
  • Scope

    mod_pagespeed 2.1
    Full HTML pipeline
    NitroPack
    Full HTML pipeline (caching, minify, image opt, CDN)
  • Platform

    mod_pagespeed 2.1
    WordPress, ASP.NET, generic — nginx/Apache/IIS
    NitroPack
    WordPress, WooCommerce, generic PHP via SDK
  • Pricing model

    mod_pagespeed 2.1
    Free (Apache-2.0); paid support optional
    NitroPack
    Per-site SaaS subscription (see vendor for tiers)
  • Image optimization

    mod_pagespeed 2.1
    WebP and AVIF — responsive variants at origin
    NitroPack
    Compression, format conversion, lazy load — at NitroPack's cloud
  • Critical CSS injection

    mod_pagespeed 2.1
    Yes
    NitroPack
    Yes
  • JS / CSS minification

    mod_pagespeed 2.1
    Yes
    NitroPack
    Yes
  • HTML rewriting

    mod_pagespeed 2.1
    Yes — at origin
    NitroPack
    Yes — at NitroPack's cloud
  • Caching

    mod_pagespeed 2.1
    Local Cyclone cache, zero-copy mmap
    NitroPack
    NitroPack's CDN edge cache
  • CWV optimization

    mod_pagespeed 2.1
    LCP, render-blocking, image bytes; CLS from unsized images
    NitroPack
    LCP, CLS, INP — vendor-managed
  • Measured page-size reduction

    mod_pagespeed 2.1
    −68% on our own pages (origin pipeline)
    NitroPack
    Comparable savings, processed in the vendor cloud
  • License

    mod_pagespeed 2.1
    Licensed under the Apache License 2.0; paid tiers are support subscriptions. See the software license.
    NitroPack
    Proprietary SaaS
  • Data sovereignty

    mod_pagespeed 2.1
    Your servers; nothing leaves your origin
    NitroPack
    Content processed by NitroPack's cloud
  • Works without the vendor

    mod_pagespeed 2.1
    Yes — runs on your own servers, no vendor in the request path; your site keeps serving even if we disappear
    NitroPack
    No — disabling the subscription disables optimization

When to choose NitroPack

  • You run WordPress (or WooCommerce) and want optimization with no server-side operations work. Plugin install, account signup, done.
  • You don't have a sysadmin or DevOps engineer and don't want to acquire one for this problem.
  • You're willing to pay a monthly subscription tiered by traffic to avoid running anything yourself.
  • You want a vendor support line you can call when something breaks at 2 AM.
  • The dashboard, reporting, and managed CDN are part of the value, not just the optimization.

When to choose mod_pagespeed

  • You don't run WordPress, or you run more stacks than just WordPress. NitroPack's strongest support is on WordPress; the mod_pagespeed 2.1 in-process module runs on any nginx, Apache, or IIS host. The IIS package ships from the 1.15 packaging channel.
  • You want no bill that tracks pageviews at all. NitroPack's tiers meter monthly traffic; mod_pagespeed 2.1 is free under the Apache License 2.0 at any volume, on any number of servers.
  • You don't want your HTML routed through a third-party processor — for compliance, latency, or principle.
  • You have the operational capacity to run a Docker image or nginx module and would rather own that surface than pay for a hosted equivalent.
  • You want software licensed under the Apache License 2.0 rather than a proprietary service.

How they overlap

The list of optimizations both products perform is broadly similar: image compression and format conversion, lazy loading, CSS/JS minification, critical CSS, HTML caching, and the rest of the filter set. Both target Core Web Vitals — mod_pagespeed through LCP, render-blocking, and image work; INP and most CLS are application-side and outside its scope.

Where they differ is the deployment model and the cost model. NitroPack does the work in its cloud and meters each site by monthly traffic tier; mod_pagespeed does the work on your servers and is free to run, with no traffic meter.

Migrating from NitroPack to mod_pagespeed

Migration is reasonable if your traffic outgrew NitroPack's pageview tiers, if your stack diversified beyond WordPress, or if compliance constraints rule out third-party content processing.

mod_pagespeed is the right move when you want optimization to live on your origin and keep content out of a vendor's data center — compliance, multi-tenant hosting, or no per-request or per-GB bill at all: the software is free.

If you do migrate:

  1. Stand up mod_pagespeed on a staging origin and verify the filters you depended on (critical CSS, image variants) produce comparable Lighthouse numbers. The Docker Compose walkthrough is a 60-second baseline.
  2. Disable NitroPack's plugin before enabling mod_pagespeed's filters so the two don't double-process HTML.
  3. If you relied on NitroPack's CDN, decide whether to put a generic CDN (Cloudflare, Fastly, BunnyCDN) in front of mod_pagespeed or run origin-only.
  4. Recreate any per-page optimization exclusions in mod_pagespeed's filter configuration.

Code & config side-by-side

Enabling NitroPack: install the WordPress plugin, sign up, paste the site ID. Optimization happens in NitroPack's cloud — no server-side config.

Installing mod_pagespeed 2.1 for nginx on Debian 11/12/13, Ubuntu 22.04/24.04 (amd64 + arm64), or AlmaLinux 9 (x86_64 + aarch64):

curl -fsSL https://packages.modpagespeed.com/install.sh | sudo sh
sudo apt install nginx-module-pagespeed   # or: sudo dnf install nginx-module-pagespeed

Then enable the filters (nginx config, one-time):

pagespeed on;
pagespeed RewriteLevel CoreFilters;
pagespeed EnableFilters lazyload_images,prioritize_critical_css,convert_jpeg_to_webp;
pagespeed FileCachePath /var/cache/pagespeed;

The same response is generated, but the work happens inside your nginx process instead of inside someone else's data center. The trade is operational ownership against vendor lock-in and traffic-tier cost scaling.

Outgrowing metered SaaS

No per-request or per-GB bill at all — the software is free — content stays on your origin, works on any stack, no HTML routed through a third party. On our own pages the origin pipeline measures −68% page size. Install and run it.

Open source under the Apache License 2.0 — free in development and in production.

See also:

NitroPack and other product names are trademarks of their respective owners. Comparisons reflect publicly available information as of 2026 and are provided for evaluation; We-Amp B.V. is not affiliated with or endorsed by NitroPack.