pagespeed/ngx_pagespeed — pull request #25 by jeffkaufman (2012-11-06 19:43:17+00:00)
Title: Use the headers generated by pagespeed for .pagespeed resources

Pagespeed puts headers in ngx_base_fetch->response_headers() and nginx calls NgxBaseFetch::CollectHeaders to get them out, which wasn't implemented before.

Before patch:

$ curl -D- http://localhost:8050/mod_pagespeed_example/styles/bold.css.pagespeed.ce.GeAD1d5ga5.css
HTTP/1.1 200 OK
Server: nginx/1.3.6
Date: Tue, 06 Nov 2012 19:42:45 GMT
Transfer-Encoding: chunked
Connection: keep-alive

.bold {
font-weight: bold;
}

After patch:

$ curl -D- http://localhost:8050/mod_pagespeed_example/styles/bold.css.pagespeed.ce.GeAD1d5ga5.css
HTTP/1.1 200 OK
Content-Type: text/css
Transfer-Encoding: chunked
Connection: keep-alive
Server: nginx/1.3.6
Connection: keep-alive
Accept-Ranges: bytes
Date: Tue, 06 Nov 2012 19:42:08 GMT
Expires: Wed, 06 Nov 2013 19:42:08 GMT
Cache-Control: max-age=31536000
Etag: W/"0"
Last-Modified: Tue, 06 Nov 2012 19:42:08 GMT
X-Page-Speed:

.bold {
font-weight: bold;
}