I think it would be better to not use redirect and just use the header_rewrite to do the redirect and set the cache-control header. Here is an example:
[bcall@homer ~]$ tail -1 /usr/local/etc/trafficserver/remap.config
[bcall@homer ~]$ cat /usr/local/etc/trafficserver/foo.config
set-header Cache-Control "max-age=600, public"
HTTP/1.1 302 Redirect
Date: Thu, 17 Nov 2016 03:13:22 GMT
Cache-Control: max-age=600, public
I ran a test myself and I don’t know of a way to make the response cacheable. I assume you would like to set the Cache-Control header to something like max-age=300. I will talk to a couple other Committers tonight and see if they have any ideas.
This is what I am seeing:
HTTP/1.1 301 Redirect
Date: Wed, 16 Nov 2016 08:13:03 GMT
I am unable to cache the redirected urls, any way to cache the redirected pages?
my rule is like this