You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by Apache Wiki <wi...@apache.org> on 2006/01/04 11:08:35 UTC

[Cocoon Wiki] Update of "ControllingModCache" by BertrandDelacretaz

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.