pagespeed/ngx_pagespeed — pull request #22 by jeffkaufman (2012-11-05 20:13:27+00:00)
Title: Support Custom Options

Pass headers and query parameters that change options through to Pagespeed. While the add_instrumentation filter is currently off by default, either of these commands below would fetch the example file with the filter on:

curl 'http://localhost:8050/mod_pagespeed_example/add_instrumentation.html?ModPagespeedFilters=add_instrumentation'
curl --header 'ModPagespeedFilters:add_instrumentation' 'http://localhost:8050/mod_pagespeed_example/add_instrumentation.html'

Compared to just `curl 'http://localhost:8050/mod_pagespeed_example/add_instrumentation.html` the difference is that there's a chunk of complicated javascript at the end added by the filter.

You'll need to sync mod_pagespeed to trunk to compile this; it uses GetQueryOptions which recently had it's signature changed.