Re: Re: [webkit-dev] Accept- & Content-Resolution headers proposal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 12 Jun 2007 10:38:05 +1000
"Windy Road" <tom@xxxxxxxxxxxxx> 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
sent.

> 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
http://www.apachetutor.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux