Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
MapProxyDomain does not work with InPlaceResourceOptimization #1015
I think this should be straightforward to support, as the MapProxyDomain prefixes are established at configuration time and can be statically checked in the handler at request-time.
Note that there are a variety of ipro/MapProxyDomain tests around https://github.com/pagespeed/mod_pagespeed/blob/master/pagespeed/apache/system_test.sh#L988 but those are not shared with nginx.
In the shared system_test script there is a test for MapProxyDomain from the HTML flow: https://github.com/pagespeed/mod_pagespeed/blob/master/pagespeed/system/system_test.sh#L241
but there is no evidence of testing in that shared file for MapProxyDomain of in-place resources.
In normal usage this isn't a problem, because any resources PageSpeed moves onto the mapped proxied domain it will be able to create .pagespeed. resources for, but if you want to set up a server to do IPRO optimization of another server this would be a useful feature.
(This does work in Apache.)
See https://groups.google.com/forum/#!topic/ngx-pagespeed-discuss/IuMfDTtz8sg for a related problem