cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: ServingLargeFiles
Date Fri, 30 Jul 2004 08:37:58 GMT
   Date: 2004-07-30T01:37:57
   Editor: BrunoDumon <bruno@outerthought.org>
   Wiki: Cocoon Wiki
   Page: ServingLargeFiles
   URL: http://wiki.apache.org/cocoon/ServingLargeFiles

   buffersize:0->8192, suggesting to use no buffering at all seems like a bad idea

Change Log:

------------------------------------------------------------------------------
@@ -9,8 +9,8 @@
 You don't want to waste your precious cache space on a 100MB file.
 
 To disable caching add the following attribute to your pipeline:
-{{{
-type="noncaching"
+{{{
+type="noncaching"
 }}}
 
 Details about enabling/disabling caching can be found on in the [http://cocoon.apache.org/2.1/userdocs/concepts/caching.html#How+to+Configure+Caching
official documentation].
@@ -22,8 +22,8 @@
 So, by default, the whole file is loaded in memory before being sent to the client. This
is '''very bad''' and will quickly lead to !OutOfMemory errors. 
 
 To disable response buffering add the following child element to your pipeline:
-{{{
-<map:parameter name="outputBufferSize" value="0"/>
+{{{
+<map:parameter name="outputBufferSize" value="8192"/>
 }}}
 
 Details about response buffering can be found on in the [http://cocoon.apache.org/2.1/userdocs/concepts/caching.html#Configuration+of+Pipelines
official documentation].
@@ -35,11 +35,11 @@
 A [http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25712 bug report and patch] have been
added to !BugZilla. It has not yet been committed to CVS.
 
 === Full Example ===
-{{{
-<map:pipeline type="noncaching">
-  <map:parameter name="outputBufferSize" value="0"/>
-  <map:match pattern="**.zip">
-    <map:read src="{1}.zip" mime-type="application/octet-stream"/>
-  </map:match>
-</map:pipeline>
+{{{
+<map:pipeline type="noncaching">
+  <map:parameter name="outputBufferSize" value="0"/>
+  <map:match pattern="**.zip">
+    <map:read src="{1}.zip" mime-type="application/octet-stream"/>
+  </map:match>
+</map:pipeline>
 }}}

Mime
View raw message