pagespeed/ngx_pagespeed — pull request #64 by jeffkaufman (2012-11-19 21:35:30+00:00)
Title: content handler: support static javascript requests

Requests to:

/ngx_pagespeed_static/...

can be handled synchronously by pagespeed. They're used for support files for
optimizations, like js_defer.js.

This also includes a couple refactors:

- I pulled most of NgxBaseFetch::CopyBufferToNginx() out into
ngx_http_pagespeed_string_piece_to_buffer_chain().

- ngx_http_pagespeed_create_request_context() now returns a
CreateRequestContext::Response which gives callers more detailed information
about the request.

- I also pulled ngx_http_pagespeed_set_cache_control() out of
ngx_http_pagespeed_header_filter().

Fixes issue #62.