Stefan de Konink wrote:
> Alvaro Lopez Ortega schreef:
>> Stefan de Konink wrote:
>>
>>> Is it possible to apply an encoder on top of an handler, but specify 
>>> it per target? I thought in the past this could be configured, but 
>>> now I only see a global encoding (where I don't have a clue how to 
>>> specify my handler).
>>>
>>> I would like to gzip the output of my handler.
>>
>> Handlers and Encoders are completely independent.
>>
>> Right now encoders are applied depending on the request extension. 
>> However, it would be an interesting idea to change the extension 
>> checking by MIME type checking.
> 
> So if I understand it correctly. If I would allow a request with the 
> name .txt go to my handler, and I allow .txt to be gzipped then it will 
> be automatically gzipped?

Yes. If the client browser requests it to be encoded, then it would.

> My worries with MIME would be that there should happen actual processing 
> to check validness.

Using MIME types looks like the correct thing to do, although it would 
most probably have a negative impact on the server performance.  By the 
moment this RFE is just food for thought.

--
Greetings, alo
http://www.alobbs.com/
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to