httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <>
Subject Re: .asis handler isn't driven
Date Mon, 01 Oct 2001 18:20:42 GMT

  we aren't discussing the <AddFoo content-value ext> directives, 
those continue to work fine.  And yes, it would be nice to add a bit of 
server-side 'quality control' over negotiation (say, an additional
'multiplier' where 1.000 is as-requested, .500 would cut the client
assigned weight in half, etc.)  That's a different topic, though.

  We are discussing the effect of <AddHandler somehandler ext> on
negotiation.  That handler isn't part of the calculation for negotation,
therefore my patch from a few weeks ago stopped adding that extension to
the list that was "automagically" acceptable to multiviews.  The client
must now present the ".ext" extension when submitting the request, or 
the file won't be served.

  Ergo, the server will now ignore index.cgi if the user requests "index"
and <AddHandler cgi-script cgi> is the only 'association' for .cgi.  If
the admin associates cgi through mime types, then yes, mod_negotiation
still evalutates "index.cgi" in a multiviewed request for "index".

  So taking the .asis example;

AddMimeType httpd/send-as-is

  DOES work today, with the change.  Here, ".asis" is a mime type, so it
goes the through mime type negotiation phase.


----- Original Message ----- 
From: "Dirk-Willem van Gulik" <>
To: <>
Sent: Monday, October 01, 2001 11:22 AM
Subject: Re: .asis handler isn't driven

> On Mon, 1 Oct 2001, William A. Rowe, Jr. wrote:
> > We still have no mechanism to 'quantify' the quality of one handler or
> > filter over another.  Funny that
> >
> > index.html  4000 bytes
> > index.cgi    500 bytes
> >
> > will serve index.cgi, based on size, when the cpu impact of index.html is
> > _significantly_ less expensive ;)
> Well length is last -if all other things equal-; sourcce_quality is first.
> since you can associate quality with any mimetipe/extensions. And this
> will help you out for the common case. (As does the hardcoded 'set quality
> to 2 (or some other high value) on CGI_MAGICTYPE) when we have args,
> a post or some other indication of CGI).
> Having said this this may sound like a solved problem - this is however
> not a generic solution. As this variance space is not a normal 'ordered'
> space where 1>2 and 2>3 and you got nicely spaced values. In fact this
> space behaves more like a logarithmic one - where distance denses - and
> hence we have all those fiddle factiors; the 0.001f's and so on. Perhaps a
> rewrite is in order -where we use sequential ordering per mime dimension
> (i.e. lang,charset,encoding,lenght) with a *linear* cost function.
> Dw

View raw message