Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cocoon Wiki" for change 
notification.

The following page has been changed by BertrandDelacretaz:
http://wiki.apache.org/cocoon/ControllingModCache

------------------------------------------------------------------------------
  </map:act>
  }}}
  
+ == Setting the Content-Length=
+ Unfortunately the "set content length" option of most serializers is not 
configurable, in some cases you'll need to extend the appropriate Serializer 
class just to set the appropriate flag. This Needs Improvement (tm).
+ 
+ Here's an example for the HTMLSerializer class:
+ {{{
+ package yourpackage;
+ 
+ import org.apache.cocoon.serialization.HTMLSerializer;
+ 
+ public class BufferingHtmlSerializer extends HTMLSerializer {
+     public boolean shouldSetContentLength() {
+         return true;
+     }
+ }
+ }}}
+ 
  = How to control mod_cache w/o touching Cocoon? =
  It is easy to create two virtual hosts in apache configuration.