----- Original Message ----- > Updated Branches: > refs/heads/master a3b07f9d4 -> 9dcd00b8f > > > TS-2230 header_rewrite should support the same hook-management that > header_filter does for remap rules. > > This allows for injecting hook / rules from remap.config into hooks > outside of the remap phase itself. This is particularly useful for > doing header filtering on responses from an origin, based on which > remap rule triggered. With this, a remap.config instance can do e.g. > > cond %{READ_RESPONSE_HDR_HOOK} > cond %{STATUS} >199 [AND] > cond %{STATUS} <299 > rm-header Cache-Control > add-header Cache-Control "max-age=3600"
rfe: Can we get a replace-header command that does the above two things in one line? I just looked at the code, and what I thought was a one-line change has a factory in between, so it's probably a more line change :\ > (we should add a set-header, but that's a different bug). > > TS-2227 This commit also allows for multiple configs per line > > This allows a remap.config file to have multiple @pparam's with > configs (such that you can e.g. share one across mulitple rules). > This also works for the global config(s) in plugin.config. > > I accidentally merged the two patches, hence just one commit. > > > Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo > Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/9dcd00b8 > Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/9dcd00b8 > Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/9dcd00b8 > > Branch: refs/heads/master > Commit: 9dcd00b8f82ec0a2678ae11ae739f68d0a496191 > Parents: a3b07f9 > Author: Leif Hedstrom <zw...@apache.org> > Authored: Fri Oct 18 15:32:15 2013 -0600 This is *really* confusing, git. > Committer: Leif Hedstrom <zw...@apache.org> > Committed: Wed Oct 23 16:09:35 2013 -0600 ++i Igor Galić Tel: +43 (0) 664 886 22 883 Mail: i.ga...@brainsware.org URL: http://brainsware.org/ GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE