cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Royal <>
Subject Re: AcceptSelector
Date Wed, 12 Jun 2002 17:26:54 GMT
On Wednesday 12 June 2002 01:20 pm, Jonas Petersen wrote:
> I am working on a selector that analyses the  Accept header of the
> browser and provides a way to (for example) response with the best
> fitting content(-type). It's comparable with the apache module
> 'mod_negotiation'.


> Now a problem that I encountered:
> For each <map:when/> the select() function gets called. There I do the
> weight calculations with the current Accept header against the
> configuration. This produces some overhead because this really needs to
> happen only once (in the beginning of the <map:select/>.

Already encountered. Look at the Switch Selector:


peter royal ->

To unsubscribe, e-mail:
For additional commands, email:

View raw message