Subject: Configure ATS reverse proxy with live HLS origin returning Cache-Control: no-cache


We tend to use the header_rewrite plugin for this in our remap rules.

map http://inbound.example.com \
    http://origin.example.com \
    @plugin=header_rewrite.so @pparam=hr.config
With hr.config containing:

cond %{READ_RESPONSE_HDR_HOOK} [AND]
cond %{STATUS} >199 [AND]
cond %{STATUS} <400
    rm-header Pragma
    rm-header Expires
    set-header Cache-Control "max-age=604800, public"

(so that we only cache the success not the missing objects).

miles

On Sun, Dec 3, 2017 at 8:54 AM, ezko <[EMAIL PROTECTED]> wrote: