On 6/12/12 11:22 PM, Shu Kit Chan wrote:
Hi,

Using header_filter plugin, I can add or replace header to the request/response.
However, I find it often useful to add/replace header based on some conditions.
I know we can attach the plugin to the mapping rules that we want in
remap.config and therefore giving us the ability to add/replace
headers per remap rules.
But I think it is still a bit limited.
e.g. I want to add an extra header to the request when the user agent
is indicating a smartphone,  And a different header for user agent
indicating a tablet.

I think header_filter plugin is actually taking ideas from a older
plugin that Leif worked on while he is in Yahoo!
The old plugin is actually allowing us to specify more various
conditions for adding/replacing/removing headers on
requests/responses.
Are there any reasons why we are not exposing more options in this plugin?


Cause I'm lazy :). I think Bryan just pushed out the Yahoo version to our git repo. It's still in the standalone repo, but I'll work on moving all those into an "experimental" section in the main repo.

Thanks Bryan for liberating the code :). Reminds me of http://www.gnu.org/music/free-software-song.au <shiver>.

-- Leif


Reply via email to