httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject Re: [users@httpd] Re: [webkit-dev] Accept- & Content-Resolution headers proposal
Date Tue, 12 Jun 2007 08:54:50 GMT
On Tue, 12 Jun 2007 10:38:05 +1000
"Windy Road" <> wrote:

> Does Apache support "Feature negotiation"

What does the documentation for mod_negotiation say?

If you need a feature like this in Apache, the easy solution
is to write a module.

> FYI the back story to this request is from a discussion regarding
> having images served to a client dependant on its resolution and/or
> viewport width. Normal browsers may get an the image as 600px across,
> small screen devices may get an image that is 150px across and browser
> requesting the image for printing purposed may get an image that is
> 1200px across.

Similar things have certainly been done, but I'm not aware of it
being published.  For example, three years ago I wrote a set of
modules to transform images on-the-fly to match a client's
capabilities, for a manufacturer of small-screen (mobile phone)
browsers who wanted to use a proxy to reduce the volume of traffic

> I was able to create a type-map file for the images as follows:
> [chop]
> Apache would (correctly) perform server side selection to pick the
> variant with the highest qs, however I could not find any way of
> specifying features (such as DPI) for each variant, that would allow a
> lower qs variant to be selected based on a appropriate request with
> "Accept-Features" (e.g. "Accept-Features: dpi=[70-100]").

Sounds sufficiently close to the existing mod_negotiation that
it might be implemented as an enhancement to that.

Nick Kew

Application Development with Apache - the Apache Modules Book

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message