Welcome! Log In Create A New Profile

Advanced

Re: Content negotiation?

Marcus Clyne
July 29, 2009 10:47AM
Hi,

Nuno Magalhães wrote:
>> It should be relatively simple to write module with such
>> capabilities. And I believe somebody already did this, at least
>> something with name "Accept Language Module" is listed on
>> wiki.nginx.org:
>>
>> http://wiki.nginx.org/NginxAcceptLanguageModule
>>
Unless the code has been updated recently, there are some bugs with the
code which would prevent it doing what it's supposed to (though the
fixes are easy).

A few months ago I wrote a more advanced language-negotiation module
that checked for a POST variable, a cookie and then the Accept-Language
header (in that order) for language info, and set a cookie afterwards if
not already set.

I'm thinking about adding MIME negotiation too. (e.g. being able to
switch between gif, png, svg).

I'm working on other stuff right now, but could check that it's working
and publish it if people are interested.

Any other requests?

Note that you can currently do content negotiation using if (...)
statements and regexes on $http_ variables - incorporating them into a
module would probably just speed things up a bit.

Marcus.
Subject Author Posted

Content negotiation?

Nuno Magalhães July 26, 2009 04:08PM

Re: Content negotiation?

Igor Sysoev July 27, 2009 02:19AM

Re: Content negotiation?

Nuno Magalhães July 27, 2009 07:39AM

Re: Content negotiation?

Nuno Magalhães July 27, 2009 08:25AM

Re: Content negotiation?

Jeff Waugh July 27, 2009 08:17PM

Re: Content negotiation?

Igor Sysoev July 28, 2009 03:02AM

Re: Content negotiation?

Jeff Waugh July 28, 2009 03:37AM

Re: Content negotiation?

Nuno Magalhães July 28, 2009 09:10AM

Re: Content negotiation?

Juan Fco. Giordana July 29, 2009 04:16AM

Re: Content negotiation?

Maxim Dounin July 29, 2009 07:02AM

Re: Content negotiation?

Nuno Magalhães July 29, 2009 09:48AM

Re: Content negotiation?

Marcus Clyne July 29, 2009 10:47AM

Re: Content negotiation?

climbor July 27, 2009 10:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 310
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready