> I've studied the MP2 docs (including the 3 books I have: mp Cookbook, > Lincoln Stein's and Stas Bekman's), but really can't find anything that > tells me precisely how to insert an MP2 filter with a specific AP_FTYPE_*. > > Here's a simple flow of what I'd like to have happen: > > 1 - mod_cache [got valid content in cache? If so, go to 4; if not, go to 2] > 2 - mod_proxy [fetch content from origin web] > 3 - mod_cache [content cacheable? If so, cache it locally] > 4 - *MY FILTER* > 5 - deflate > > How can I get MYFILTER inserted in just the right place? (And ideally it > doesn't require modifying Apache source code to change AP_FTYPE values > for mod_cache...!)
try PerlSetOutputFilter http://perl.apache.org/docs/2.0/user/handlers/filters.html#C_PerlSetOutputFilter_ HTH --Geoff