You may try using cachekey plugin to ignore the query params only from the cache key and not from remap, instead of using regex_remap with no-query-string param, which will basically remove the query string from remap.
There is an excellent documentation and some examples on how to do this at https://docs.trafficserver.apache.org/en/latest/admin-guide/plugins/cachekey.en.html - Sudheer > On Oct 27, 2016, at 12:22 AM, Randeep <randeep...@gmail.com> wrote: > > Hi all, > > We are using ats to cache our live MPEG dash and HLS streams. > We use version 6.2.0 with parent-child architecture. > > In the requests there are some query strings like timestamps for playing > catchup,start-over,timeshift etc. > > Before the requests where not caching so we added @pparam=no-query-string > so that it will cache without query stings. I thought it will strip the > query strings only when caching but it is stripping the query-string while > forwarding to domain also. Because of this a lot of services like catchup > doesn't work. > > remap.config > map http://jitp1.domain.com/ http://bglrcache1.domain.com/ > @plugin=/opt/ats/libexec/trafficserver/regex_remap.so > @pparam=/opt/ats/etc/trafficserver/jitp1.config @pparam=no-query-string > > cat /opt/ats/etc/trafficserver/jitp5.config > ^/(.*)$ http://bglrcache5.domain.com/$1 > > How can we achieve both url forwarding with query sting and caching the > content without the query-string? > > -- > Randeep > Mob: +919447831699[kerala] > Mob: +919880050349[B'lore] > http://twitter.com/Randeeppr > http://in.linkedin.com/in/randeeppr > > > [image: --] > Randeep Raman > [image: http://]about.me/Randeeppr > <http://about.me/Randeeppr>