Apache module for rewriting web pages to reduce latency and bandwidth.
C++ JavaScript HTML Shell Python Makefile Other
Switch branches/tags
Latest commit 1f18e93 Jul 27, 2017 @morlovich morlovich committed on GitHub CSP: Implements the algorithm for matching URLs against source patter…
…ns. (#1512)

* First implementation of the URL-match-expr algorithm, largely from the spec.

Will probably do a cleanup pass on top of it, it's rather scary.

* Simplify a bit by dropping ws:/wss: support.
Not much shorter, but a lot less scary.

* Normalize some in our representation, improve testing of case sensitivity.

* Consistently canonicalize things the GURL way, rather than just using
our %-decoder, which may behave differently in some cases.

Also pre-compute the canonicalized + split form on parse.

* Comment tweaks plus a couple of additional tests,
based on review feedback

README.md

mod_pagespeed

logo

CI Status
Travis Build Status

mod_pagespeed is an open-source Apache module created by Google to help Make the Web Faster by rewriting web pages to reduce latency and bandwidth.

mod_pagespeed releases are available as precompiled linux packages or as source. (See Release Notes for information about bugs fixed)

mod_pagespeed is an open-source Apache module which automatically applies web performance best practices to pages, and associated assets (CSS, JavaScript, images) without requiring that you modify your existing content or workflow.

mod_pagespeed is built on PageSpeed Optimization Libraries, deployed across 100,000+ web-sites, and provided by popular hosting and CDN providers such as DreamHost, GoDaddy, EdgeCast, and others. There are 40+ available optimizations filters, which include:

  • Image optimization, compression, and resizing
  • CSS & JavaScript concatenation, minification, and inlining
  • Cache extension, domain sharding, and domain rewriting
  • Deferred loading of JavaScript and image resources
  • and many others...

Demo

Try it modpagespeed.com
Read about it https://developers.google.com/speed/pagespeed/module
Download it https://modpagespeed.com/doc/download
Check announcements https://groups.google.com/group/mod-pagespeed-announce
Discuss it https://groups.google.com/group/mod-pagespeed-discuss
FAQ https://modpagespeed.com/doc/faq

Curious to learn more about mod_pagespeed? Check out our GDL episode below, which covers the history of the project, an architectural overview of how mod_pagespeed works under the hood, and a number of operational tips and best practices for deploying mod_pagespeed.

GDL Episode