On Oct 24, 2013, at 3:00 AM, Igor Galić <i.ga...@brainsware.org> wrote:
> > > ----- 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? Your wish is my command, master Igor set-header Cache-Control “max-age=3600” at your service! :-) — leif