cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pier Fumagalli <p...@betaversion.org>
Subject Re: mod_cache and Content-length
Date Tue, 31 May 2005 21:12:54 GMT
On 30 May 2005, at 15:44, Ugo Cei wrote:

> Hi,
>
> I was reading the ControllingModCache wiki page [1] and it says:
>
> "To generate Content-length, you must currently create your own  
> serializer, to set the buffering flag, as it is not yet configurable."
>
> And indeed, there's no way to configure generation of content- 
> length header in AbstractTextSerializer without overriding the  
> shouldSetContentLenght() method in a subclass.
>
> Is there any particular reason why this has not been made  
> configurable, or is it just that nobody has had this particular  
> itch to scratch yet? In the latter case, I'd like to scratch it  
> myself, if no one objects.
>
>     Ugo
>
> [1] http://wiki.apache.org/cocoon/ControllingModCache

Erm... Apache caches also without "Content-Length" (it actually  
calculates that for you)... In production, this is my configuration:

CacheMaxExpire 1800
CacheRoot /opt/apache/var/cache
CacheSize 1048576
CacheMinFileSize 1
CacheMaxFileSize 524288
CacheDirLevels 5
CacheDirLength 3
CacheDefaultExpire 600
CacheIgnoreCacheControl On
CacheIgnoreNoLastMod On

CacheEnable disk /
CacheDisable /search
CacheDisable /images
CacheDisable /includes

     Pier



Mime
View raw message