location-header: Only set the location field when the input

Only set headers_out.location when the input also originally did
that.

This still needs a test to prevent regression, but I thought I'd
put this out so people can try this.

Should fix https://github.com/pagespeed/ngx_pagespeed/issues/819
Might help https://github.com/pagespeed/ngx_pagespeed/issues/711
2 files changed
tree: 0b6d22f714756f4c237f77d2bcbf4089e1648246
  1. scripts/
  2. src/
  3. test/
  4. .gitignore
  5. config
  6. cpp_feature
  7. LICENSE
  8. README.md
README.md

ngx_pagespeed

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: