I think I started looking at creating a RewriteOptions object, but got side tracked and this project has been idle for a little while.<div>I just updated it this weekend for the latest mod_pagespeed, and put it out there.<br>

<div><div><div><br></div><div>I like how the instaweb API is designed, and how you provide &quot;backend functionalities&quot; through adapter objects (if I remember correctly). </div><div>With nginx extensive subrequests mechanism, fetching external resources shouldn&#39;t be too difficult.</div>

<div><br></div><div>This Makefile could definitely help. I was also wondering if there was a python lib that could make sense of Google&#39;s internal build files ?</div><div><br></div><div>Thank you!</div><div><br></div>

<div>Matthieu.<br><div><br><div class="gmail_quote">On Mon, Jun 6, 2011 at 3:21 PM, Joshua Marantz <span dir="ltr">&lt;<a href="mailto:jmarantz@google.com">jmarantz@google.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div>Out of curiosity, have you defined a mechanism to configure nginx to use any of the predefined filters?  It looks like you were aware of RewriteOptions, which is the API-based equivalent to pagespeed.conf, but you are not using it yet in <a href="https://github.com/mtourne/ngx_instaweb/blob/master/ngx_http_instaweb_module.cpp" target="_blank">https://github.com/mtourne/ngx_instaweb/blob/master/ngx_http_instaweb_module.cpp</a>.<div>



<br></div><div>The next step in your nginx integration looks to be resource-handling and fetching.  Specifically, you need to define a way to fetch external HTTP resources referenced on a page, and a way to handle fetches for rewritten resources.  We can help you if you have any questions feel free to reach out.</div>



</div></div><div><br></div><div>Please also check this out:  </div><div><br></div><div><a href="http://code.google.com/p/modpagespeed/source/browse/trunk/src/net/instaweb/automatic/Makefile" target="_blank">http://code.google.com/p/modpagespeed/source/browse/trunk/src/net/instaweb/automatic/Makefile</a></div>



<div><br></div><div>We&#39;ve been working along the same lines you have:  starting with a mod_pagespeed build, generate a linkable library that has the kernel of functionality needed to integrate mod_pagespeed&#39;s parser &amp; algorithms into a new platform.</div>



<div><br></div><div>-Josh</div><div><br></div>
</blockquote></div><br></div></div></div></div></div>