nginx-1.13.4: use preprocessor define instead of const for comparison (#1483)

Address a mistake I made in https://github.com/pagespeed/ngx_pagespeed/pull/1458

While testing the draft for 1.12.34.3 I noticed that older nginx
versions would fail to compile. Switch kNginx13_1_4 to a #define so we
can use it to properly compare.

1 file changed
tree: 5dee6c232f5e98c4fba8f7a86780f018778397e1
  1. scripts/
  2. src/
  3. test/
  4. testing-dependencies/
  5. .gitignore
  6. .gitmodules
  7. .travis.yml
  8. config
  9. config.make
  10. cpp_feature
  11. LICENSE
  12. PSOL_BINARY_URL
  13. README.md
README.md

ngx_pagespeed

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: