[
https://issues.apache.org/jira/browse/TS-2227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13803405#comment-13803405
]
ASF subversion and git services commented on TS-2227:
-----------------------------------------------------
Commit 9dcd00b8f82ec0a2678ae11ae739f68d0a496191 in branch refs/heads/master
from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=9dcd00b ]
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"
(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.
> Make header_rewrite load all pparam's as config files
> -----------------------------------------------------
>
> Key: TS-2227
> URL: https://issues.apache.org/jira/browse/TS-2227
> Project: Traffic Server
> Issue Type: New Feature
> Components: Plugins
> Reporter: Leif Hedstrom
> Assignee: Leif Hedstrom
> Fix For: 4.1.0
>
>
> Particularly in a remap rule, it'd be useful to do "concatenation" of config
> files, e.g.
> {code}
> … @plugin=header_rewrite.so @pparam=set-cache-control.config
> @pparam=set-id-tag.config ...
> {code}
> This allows certain portions of a config to be shared across multiple remap
> rules for example.
--
This message was sent by Atlassian JIRA
(v6.1#6144)