Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CEA0F200BB3 for ; Wed, 2 Nov 2016 13:59:41 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CD294160AEA; Wed, 2 Nov 2016 12:59:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2ADD3160AFB for ; Wed, 2 Nov 2016 13:59:40 +0100 (CET) Received: (qmail 29206 invoked by uid 500); 2 Nov 2016 12:59:38 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 29187 invoked by uid 99); 2 Nov 2016 12:59:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2016 12:59:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 360F61A5F0D; Wed, 2 Nov 2016 12:59:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.389 X-Spam-Level: *** X-Spam-Status: No, score=3.389 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, KAM_INFOUSMEBIZ=0.75, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ImzqOEqZ7-0W; Wed, 2 Nov 2016 12:59:34 +0000 (UTC) Received: from mail-qk0-f169.google.com (mail-qk0-f169.google.com [209.85.220.169]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 725155F22F; Wed, 2 Nov 2016 12:59:33 +0000 (UTC) Received: by mail-qk0-f169.google.com with SMTP id o68so16505541qkf.3; Wed, 02 Nov 2016 05:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3vXTaD6l2cjYQ0ib7E5pBHI5hHo7HGyYRJeU/6IA3SE=; b=Y1pkParNSyqR9BB0kGJF0EG+PqDoG7NINjf9bXOSSOb3yem9OhKx9EmOz4tfxJwa92 ugbFmGZgq/IeH2p/yu7ApqHPcIjdHLYIuaki+B2/+Jobyn0w6GBGIT/KFIKJ/uYv8B/I 7TczQF9rmS6PiWweRwTQ+kB5hiDHgzcsqz3vk/Qs5GhV+++WpLgP2HuiJPf0ilUAChtP coeVEvRJBvSP8KWWoF4UZx8d0wIdF1qQEwCAQZ/xI1EELOmRKu0cP49879WcSwW87MCu CKqgLe+swiO/GLs31Uj+c8HQKH64yn+s7/oeo2gPo86mIrO1OxgjkIrpyl7P2VbFyJOQ 6PEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3vXTaD6l2cjYQ0ib7E5pBHI5hHo7HGyYRJeU/6IA3SE=; b=BhNDTbCZaRQzYmbzjTjox/DkKDmp1vVm/L9mRSBweQqq15tD6Z+CmkF1kSzL/BzjrC 1pCUjJw3RxN0J7OTfDS2aosqownJJZUXWQiTg2fllKL6APDQeEE14icnD1xRtl105ODK RTFQPdeJc9habwkk2oq1WO+/ku+DXo059p81t2l490CUJDH5NE5w6ov+wDE2N2okLP/N yvKoOODLCasvwQkyFewK2MbtV8tLr1QkY4Jdr9oktmnYza/k0K+F2gx+9nPxFFItlqdR SCS3hHFpuuRbt7Gis+ayYs62ZWig08M/RXbfpw+PwnZRBzzeU1H0r/rimYaTee/XEV3U yzWw== X-Gm-Message-State: ABUngvfjaY0WDXRLdeu2c+fY7BbskqcY5JdIkmg8D2m7Ls89XWeIstXdU4nwY5RebX3tGZG/emgkdq6luIJrKw== X-Received: by 10.55.182.135 with SMTP id g129mr3395158qkf.166.1478091560636; Wed, 02 Nov 2016 05:59:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.144.100 with HTTP; Wed, 2 Nov 2016 05:59:20 -0700 (PDT) In-Reply-To: References: From: Randeep Date: Wed, 2 Nov 2016 18:29:20 +0530 Message-ID: Subject: Re: Query strings are not forwarded To: users@trafficserver.apache.org Cc: dev@trafficserver.apache.org Content-Type: multipart/alternative; boundary=94eb2c06d6f66ae71805405102be archived-at: Wed, 02 Nov 2016 12:59:42 -0000 --94eb2c06d6f66ae71805405102be Content-Type: text/plain; charset=UTF-8 Hi, Its true. I started using this plugin for removing the query strings from the requests. But when I checked the documentation, I found that the same plugin can be used to whitelist user-agents also. https://docs.trafficserver.apache.org/en/6.2.x/admin-guide/plugins/cachekey.en.html?highlight=cachekey I have whitelisted only Stagefright. But for AppleWebkit also requests are served. cat remap.config map http://jitp1.domain.com/ http://bglrcache1.domain.com/ @plugin=cachekey.so @pparam=--ua-whitelist=lukupplayer:/opt/ats/etc/trafficserver/randeep.config @pparam=--remove-all-params=true cat /opt/ats/etc/trafficserver/randeep.config ^stagefright/1.* @Miles Libbey I have enabled Xdebug plugin. [root@cachetest trafficserver]# cat plugin.config background_fetch.so --config /opt/ats/etc/trafficserver/background_fetch.config *xdebug.so* [root@cachetest trafficserver]# [Nov 2 18:12:58.353] {0x2aafed658a40} STATUS: opened /opt/ats/var/log/trafficserver/diags.log [Nov 2 18:12:58.376] Server {0x2aafed658a40} NOTE: loading plugin '/opt/ats/libexec/trafficserver/background_fetch.so' *[Nov 2 18:12:58.377] Server {0x2aafed658a40} NOTE: loading plugin '/opt/ats/libexec/trafficserver/xdebug.so'* curl -v "http://jitp1.domain.com/dashw/zoom/manifest.mpd" -H 'User-Agent: AppleWebKit' -H 'X-Debug: X-Cache-Key' * About to connect() to jitp1.domain.com port 80 (#0) * Trying 172.16.0.51... connected * Connected to jitp1.domain.com (172.16.0.51) port 80 (#0) > GET /dashw/zoom/manifest.mpd HTTP/1.1 > Host: jitp1.domain.com > Accept: */* > User-Agent: AppleWebKit > X-Debug: X-Cache-Key > < HTTP/1.1 200 OK < Content-Length: 2084 < Content-Type: application/dash+xml < Access-Control-Allow-Origin: * < Cache-Control: max-age=5 < Date: Wed, 02 Nov 2016 12:43:23 GMT < Age: 22 < Server: ATS/6.2.0 < Connection: keep-alive *< X-Cache-Key: /jitp1.domain.com/80/dashw/zoom/manifest.mpd * < wrote: > On Fri, Oct 28, 2016 at 6:04 AM, Sudheer Vinukonda > wrote: > > Not sure to follow - what exactly are you trying to do? Afaik, cachekey > plugin only manipulates the otherwise default cache key (which is the full > request URL) used against the configured cache object(s) and modifies it as > specified. > > > > I don't believe it can "block" any requests or user-agents. > > > >> On Oct 28, 2016, at 4:17 AM, Randeep wrote: > >> > >> Hi Sudheer, > >> > >> Sorry. I had added it. While pasting here somehow it was not selected. I > >> was was checking the whitelisting of a user agent. Query string was > >> working. > >> > >> map http://jitp1.domain.com/ http://bglrcache1.domain.com/ > >> @plugin=cachekey.so > >> @pparam=--ua-whitelist=player:/opt/ats/etc/trafficserver/randeep.config > >> @pparam=--ua-capture=(stagefright\/[^\s]*).* > >> @pparam=--remove-all-params=true > >> > >> Still its not working. It is not blocking the other user agents. > >> > >> [root@cachetest ~]# curl -v " > >> http://jitp1.domain.com/dashw/zoom/manifest.mpd" -H 'User-Agent: > >> AppleWebKit' -H 'X-Debug: X-Cache-Key' > >> * About to connect() to jitp1.domain.com port 80 (#0) > >> * Trying 172.16.0.51... connected > >> * Connected to jitp1.domain.com (172.16.0.51) port 80 (#0) > >>> GET /dashw/zoom/manifest.mpd HTTP/1.1 > >>> Host: jitp1.domain.com > >>> Accept: */* > >>> User-Agent: AppleWebKit > >>> X-Debug: X-Cache-Key > > It doesn't look like you have the X-Debug plugin enabled, so the > Cache-Key isn't being printed here, making it hard to figure out. > Could you enable it? > > > >>> > >> < HTTP/1.1 200 OK > >> < Content-Length: 2082 > >> < Content-Type: application/dash+xml > >> < Access-Control-Allow-Origin: * > >> < Cache-Control: max-age=5 > >> < Date: Fri, 28 Oct 2016 11:14:31 GMT > >> < Age: 19 > >> < Server: ATS/6.2.0 > >> < Connection: keep-alive > >> < > >> >> xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:cenc="urn:mpeg:cenc:2013" > >> ***Truncated*** > >> > >> Regards, > >> Randeep > >> > >> On Fri, Oct 28, 2016 at 4:34 PM, Sudheer Vinukonda < > >> sudheervinukonda@yahoo.com> wrote: > >> > >>> Hmm...where's the pparam to strip query string? > >>> > >>> Please make sure to read through the documentation on cachekey. > >>> Specifically, the query param section you are looking for and the > examples. > >>> > >>> Here's a relevant extract - > >>> > >>> URI query parameters > >>> Ignore the query string (all query parameters) > >>> > >>> The following added to the remap rule will ignore the query, removing > it > >>> from the cache key. > >>> > >>> @plugin=cachekey.so @pparam=--remove-all-params=true > >>> > >>> > >>> On Oct 28, 2016, at 2:27 AM, Randeep wrote: > >>> > >>> Hi Miles Libbey, > >>> > >>> Thanks for pointing it out. I changed it as below. > >>> map http://jitp1.domain.com/ http://bglrcache1.domain.com/ > >>> @plugin=cachekey.so @pparam=--ua-whitelist=player: > >>> /opt/ats/etc/trafficserver/randeep.config @pparam=--ua-capture=( > >>> stagefright\/[^\s]*).* > >>> > >>> Still now luck. > >>> > >>> [root@cachetest ~]# curl -v "http://jitp1.domain.com/ > >>> dashw/zoom/manifest.mpd" -H 'User-Agent: stagefright/1.2 (Linux;Android > >>> 4.2.109)' -H 'X-Debug: X-Cache-Key' > >>> * About to connect() to jitp1.domain.com port 80 (#0) > >>> * Trying 172.16.0.51... connected > >>> * Connected to jitp1.domain.com (172.16.0.51) port 80 (#0) > >>>> GET /dashw/zoom/manifest.mpd HTTP/1.1 > >>>> Host: jitp1.domain.com > >>>> Accept: */* > >>>> User-Agent: stagefright/1.2 (Linux;Android 4.2.109) > >>>> X-Debug: X-Cache-Key > >>>> > >>> < HTTP/1.1 200 OK > >>> < Content-Length: 2082 > >>> < Content-Type: application/dash+xml > >>> < Access-Control-Allow-Origin: * > >>> < Cache-Control: max-age=5 > >>> < Date: Fri, 28 Oct 2016 09:23:33 GMT > >>> < Age: 20 > >>> < Server: ATS/6.2.0 > >>> < Connection: keep-alive > >>> < > >>> >>> ***Truncated**** > >>> > >>> Regards, > >>> Randeep > >>> > >>>> On Fri, Oct 28, 2016 at 1:24 PM, Miles Libbey > wrote: > >>>> > >>>>> On Thu, Oct 27, 2016 at 11:41 PM, Randeep > wrote: > >>>>> > >>>>> Hi, > >>>>> > >>>>> I used the cachekey plugin as below. But its not working. Am I doing > it > >>>>> wrong? > >>>>> > >>>>> My remap.config > >>>>> map http://jitp1.domain.com/ http://bglrcache1.domain.com/ > >>>>> @pparam=--ua-whitelist=lukupplayer:/opt/ats/etc/ > trafficserver/randeep.config > >>>>> @pparam=--ua-capture=(stagefright\/[^\s]*).* > >>>>> > >>>> > >>>> shouldn't you have > >>>> @plugin=cachekey.so in there? > >>>> eg > >>>> map http://jitp1.domain.com/ http://bglrcache1.domain.com/ > >>>> @plugin=cachekey.so @pparam=--ua-whitelist=... > >>>> > >>>> > >>>> cat /opt/ats/etc/trafficserver/randeep.config > >>>>> ^stagefright/1.* > >>>>> > >>>>> I am requesting the like this > >>>>> curl "http://jitp1.domain.com/dashw/abc/manifest.mpd" -H > 'User-Agent: > >>>>> stagefright/1.2 (Linux;Android 4.2.109)' -H 'X-Debug: X-Cache-Key' > >>>>> > >>>>> But its not rejected! > >>>>> [root@cachetest ~]# tail -f /opt/ats/var/log/trafficserver/squid.log > >>>>> |grep abc > >>>>> 1477636406.439 3 172.16.0.51 TCP_MISS/404 199 GET > >>>>> http://bglrcache1.domain.com/dashw/abc/manifest.mpd - PARENT_HIT/ > >>>>> 172.16.0.40 text/plain > >>>>> > >>>>> Please guide. > >>>>> > >>>>> Regards, > >>>>> Randeep > >>>>> > >>>>>> On Thu, Oct 27, 2016 at 5:02 PM, Randeep > wrote: > >>>>>> > >>>>>> Hi, > >>>>>> > >>>>>> url http://jitp1.dmain.com/dashw/abpnews/manifest.mpd > >>>>>> starttime=1477454400000&stoptime=1477456200000> will > >>>>>> give the live content > >>>>>> > >>>>>> url http://jitp1.dmain.com/dashw/abpnews/manifest.mpd?startt > >>>>>> ime=1477454400000&stoptime=1477456200000 > >>>>>> starttime=1477454400000&stoptime=1477456200000> > >>>>>> will give the recorded content from the starttime to endtime. The > manifest > >>>>>> file will be for the specified time. > >>>>>> > >>>>>> but in that case if we cache the response without query strings for > the > >>>>>> above, it might conflict with the live requests! > >>>>>> > >>>>>> I think its better not cache the manifest url with query strings. > Only > >>>>>> the video chunks and manifest file without query string we will > cache. > >>>>>> Is that possible? > >>>>>> > >>>>>> Regards, > >>>>>> Randeep > >>>>>> > >>>>>> On Thu, Oct 27, 2016 at 4:50 PM, Reindl Harald < > h.reindl@thelounge.net> > >>>>>> wrote: > >>>>>> > >>>>>>> > >>>>>>> > >>>>>>>> Am 27.10.2016 um 13:05 schrieb Randeep: > >>>>>>>> > >>>>>>>> Our urls are like > >>>>>>>> > >>>>>>>> http://jitp1.dmain.com/dashw/abpnews/manifest.mpd?starttime= > >>>>>>>> 1477454400000&stoptime=1477456200000 > >>>>>>>> >>>>>>>> =1477454400000&stoptime=1477456200000> > >>>>>>>> > >>>>>>>> We need to cache only > >>>>>>>> http://jitp1.dmain.com/dashw/abpnews/manifest.mpd > >>>>>>>> >>>>>>>> =1477454400000&stoptime=1477456200000> > >>>>>>>> > >>>>>>> > >>>>>>> but *why* are your URLs than that way? > >>>>>>> > >>>>>>> if that params don't do anything remove them > >>>>>>> > >>>>>>> if you configrue your proxy to ignore params and always deliver the > >>>>>>> same content that will for sure break something else and in doubt > it will > >>>>>>> break terrible > >>>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> -- > >>>>>> 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 > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>> -- > >>>>> 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 > >>>>> > >>>>> > >>>>> > >>>> > >>>> > >>> > >>> > >>> -- > >>> 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 > >>> > >>> > >>> > >>> > >> > >> > >> -- > >> 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 > >> > > > -- 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 --94eb2c06d6f66ae71805405102be Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Its true. I started using = this plugin for removing the query strings from the requests. But when I ch= ecked the documentation, I found that the same plugin can be used to whitel= ist user-agents also.

htt= ps://docs.trafficserver.apache.org/en/6.2.x/admin-guide/plugins/cachekey.en= .html?highlight=3Dcachekey

I have whitelisted only St= agefright. But for AppleWebkit also requests are served.

= cat remap.config
map http://jitp1.d= omain.com/ http://bglrcache1.= domain.com/ @plugin=3Dcachekey.so=C2=A0 @pparam=3D--ua-whitelist=3Dluku= pplayer:/opt/ats/etc/trafficserver/randeep.config=C2=A0 @pparam=3D--remove-= all-params=3Dtrue

cat /opt/ats/etc/trafficserver/randeep.config
^= stagefright/1.*

@Miles Libbey
I have enabled Xdebug pl= ugin.

[root@cachetest trafficserver]# cat plugin.config
backgroun= d_fetch.so --config /opt/ats/etc/trafficserver/background_fetch.config
<= b>xdebug.so
[root@cachetest trafficserver]#

[Nov=C2=A0 2 18:= 12:58.353] {0x2aafed658a40} STATUS: opened /opt/ats/var/log/trafficserver/d= iags.log
[Nov=C2=A0 2 18:12:58.376] Server {0x2aafed658a40} NOTE: <Pl= ugin.cc:84 (plugin_load)> loading plugin '/opt/ats/libexec/trafficse= rver/background_fetch.so'
[Nov=C2=A0 2 18:12:58.377] Server {0x2a= afed658a40} NOTE: <Plugin.cc:84 (plugin_load)> loading plugin '/o= pt/ats/libexec/trafficserver/xdebug.so'

curl -v=C2=A0 "= http://jitp1.do= main.com/dashw/zoom/manifest.mpd" -H 'User-Agent: AppleWebKit&= #39;=C2=A0 -H 'X-Debug: X-Cache-Key'
* About to connect() to jitp1.domain.com port 80 (#0)
*=C2= =A0=C2=A0 Trying 172.16.0.51... connected
* Connected to jitp1.domain.com (172.16.0.51) port 80 (#0)
>= ; GET /dashw/zoom/manifest.mpd HTTP/1.1
> Host: jitp1.domain.com
> Accept: */*
> User-Agent:= AppleWebKit
> X-Debug: X-Cache-Key
>
< HTTP/1.1 200 OK<= br>< Content-Length: 2084
< Content-Type: application/dash+xml
= < Access-Control-Allow-Origin: *
< Cache-Control: max-age=3D5
&= lt; Date: Wed, 02 Nov 2016 12:43:23 GMT
< Age: 22
< Server: ATS= /6.2.0
< Connection: keep-alive
< X-Cache-Key: /jitp1.domain.com/80/dash= w/zoom/manifest.mpd
<
<?xml version=3D"1.0" = encoding=3D"UTF-8"?><MPD
*** Data Truncated**= *

Can we get any specific log for cachekey whitelist chec= k?

Regards,
Randeep

On Fri, Oct 28, 2016 at 10:23 = PM, Miles Libbey <mlibbey@apache.org> wrote:
On Fri, Oct 28,= 2016 at 6:04 AM, Sudheer Vinukonda
<sudheervinukonda@yahoo.co= m.invalid> wrote:
> Not sure to follow - what exactly are you trying to do? Afaik, cacheke= y plugin only manipulates the otherwise default cache key (which is the ful= l request URL) used against the configured cache object(s) and modifies it = as specified.
>
> I don't believe it can "block" any requests or user-agen= ts.
>
>> On Oct 28, 2016, at 4:17 AM, Randeep <randeep123@gmail.com> wrote:
>>
>> Hi Sudheer,
>>
>> Sorry. I had added it. While pasting here somehow it was not selec= ted. I
>> was was checking the whitelisting of a user agent. Query string wa= s
>> working.
>>
>> map http://jitp1.domain.com/ http://bglrcache1.domain.com/<= /a>
>> @plugin=3Dcachekey.so
>> @pparam=3D--ua-whitelist=3Dplayer:/opt/ats/etc/trafficserver/= randeep.config
>> @pparam=3D--ua-capture=3D(stagefright\/[^\s]*).*
>> @pparam=3D--remove-all-params=3Dtrue
>>
>> Still its not working. It is not blocking the other user agents. >>
>> [root@cachetest ~]# curl -v=C2=A0 "
>>
http://jitp1.domain.com/dashw/zoom/mani= fest.mpd" -H 'User-Agent:
>> AppleWebKit'=C2=A0 -H 'X-Debug: X-Cache-Key'
>> * About to connect() to jitp1.domain.com port 80 (#0)
>> *=C2=A0 =C2=A0Trying 172.16.0.51... connected
>> * Connected to jitp1.domain.com (172.16.0.51) port 80 (#0)
>>> GET /dashw/zoom/manifest.mpd HTTP/1.1
>>> Host: jitp1.domain.com
>>> Accept: */*
>>> User-Agent: AppleWebKit
>>> X-Debug: X-Cache-Key

It doesn't look like you have the X-Debug plugin enabled, s= o the
Cache-Key isn't being printed here, making it hard to figure out.
Could you enable it?


>>>
>> < HTTP/1.1 200 OK
>> < Content-Length: 2082
>> < Content-Type: application/dash+xml
>> < Access-Control-Allow-Origin: *
>> < Cache-Control: max-age=3D5
>> < Date: Fri, 28 Oct 2016 11:14:31 GMT
>> < Age: 19
>> < Server: ATS/6.2.0
>> < Connection: keep-alive
>> <
>> <?xml version=3D"1.0" encoding=3D"UTF-8"?&g= t;<MPD xmlns:xsi=3D"
>> http://www.w3.org/2001/XMLSchema-instance= "
>> xmlns=3D"urn:mpeg:dash:schema:mpd:2011" xmlns:cenc= =3D"urn:mpeg:cenc:2013"
>> ***Truncated***
>>
>> Regards,
>> Randeep
>>
>> On Fri, Oct 28, 2016 at 4:34 PM, Sudheer Vinukonda <
>> sudheervinukonda@yah= oo.com> wrote:
>>
>>> Hmm...where's the pparam to strip query string?
>>>
>>> Please make sure to read through the documentation on cachekey= .
>>> Specifically, the query param section you are looking for and = the examples.
>>>
>>> Here's a relevant extract -
>>>
>>> URI query parameters
>>> Ignore the query string (all query parameters)
>>>
>>> The following added to the remap rule will ignore the query, r= emoving it
>>> from the cache key.
>>>
>>> @plugin=3Dcachekey.so @pparam=3D--remove-all-params=3Dtru= e
>>>
>>>
>>> On Oct 28, 2016, at 2:27 AM, Randeep <randeep123@gmail.com> wrote:
>>>
>>> Hi Miles Libbey,
>>>
>>> Thanks for pointing it out.=C2=A0 I changed it as below.
>>> map http://jitp1.domain.com/ http://bglrcache1.domain.c= om/
>>> @plugin=3Dcachekey.so=C2=A0 @pparam=3D--ua-whitelist=3Dplayer:=
>>> /opt/ats/etc/trafficserver/randeep.config=C2=A0 @pparam= =3D--ua-capture=3D(
>>> stagefright\/[^\s]*).*
>>>
>>> Still now luck.
>>>
>>> [root@cachetest ~]# curl -v=C2=A0 "http://jitp1.domain.com= /
>>> dashw/zoom/manifest.mpd" -H 'User-Agent: stagefright/= 1.2 (Linux;Android
>>> 4.2.109)'=C2=A0 -H 'X-Debug: X-Cache-Key'
>>> * About to connect() to jitp1.domain.com port 80 (#0)
>>> *=C2=A0 =C2=A0Trying 172.16.0.51... connected
>>> * Connected to jitp1.domain.com (172.16.0.51) port 80 (#0) >>>> GET /dashw/zoom/manifest.mpd HTTP/1.1
>>>> Host: jitp1.domain.com
>>>> Accept: */*
>>>> User-Agent: stagefright/1.2 (Linux;Android 4.2.109)
>>>> X-Debug: X-Cache-Key
>>>>
>>> < HTTP/1.1 200 OK
>>> < Content-Length: 2082
>>> < Content-Type: application/dash+xml
>>> < Access-Control-Allow-Origin: *
>>> < Cache-Control: max-age=3D5
>>> < Date: Fri, 28 Oct 2016 09:23:33 GMT
>>> < Age: 20
>>> < Server: ATS/6.2.0
>>> < Connection: keep-alive
>>> <
>>> <?xml version=3D"1.0" encoding=3D"UTF-8"= ;?><MPD xmlns:xsi=3D"http://www.w3.org/
>>> 2001/XMLSchema-instance" xmlns=3D"urn:mpeg:dash:sche= ma:mpd:2011"
>>> ***Truncated****
>>>
>>> Regards,
>>> Randeep
>>>
>>>> On Fri, Oct 28, 2016 at 1:24 PM, Miles Libbey <mlibbey@apache.org> wrote:
>>>>
>>>>> On Thu, Oct 27, 2016 at 11:41 PM, Randeep <randeep123@gmail.com> wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I used the cachekey plugin as below. But its not worki= ng. Am I doing it
>>>>> wrong?
>>>>>
>>>>> My remap.config
>>>>> map http://jitp1.domain.com/ http://bglrcache1.= domain.com/
>>>>> @pparam=3D--ua-whitelist=3Dlukupplayer:/opt/ats/e= tc/trafficserver/randeep.config
>>>>> @pparam=3D--ua-capture=3D(stagefright\/[^\s]*).*<= br> >>>>>
>>>>
>>>> shouldn't you have
>>>> @plugin=3Dcachekey.so in there?
>>>> eg
>>>> map http://jitp1.domain.com/ http://bglrcache1.doma= in.com/
>>>> @plugin=3Dcachekey.so @pparam=3D--ua-whitelist=3D...
>>>>
>>>>
>>>> cat /opt/ats/etc/trafficserver/randeep.config
>>>>> ^stagefright/1.*
>>>>>
>>>>> I am requesting the like this
>>>>> curl "http://jitp1.domain.co= m/dashw/abc/manifest.mpd" -H 'User-Agent:
>>>>> stagefright/1.2 (Linux;Android 4.2.109)'=C2=A0 -H = 'X-Debug: X-Cache-Key'
>>>>>
>>>>> But its not rejected!
>>>>> [root@cachetest ~]# tail -f /opt/ats/var/log/traf= ficserver/squid.log
>>>>> |grep abc
>>>>> 147= 7636406.439 3 172.16.0.51 TCP_MISS/404 199 GET
>>>>> http://bglrcache1.domain.com= /dashw/abc/manifest.mpd - PARENT_HIT/
>>>>> 172.16.0.40 text/plain
>>>>>
>>>>> Please guide.
>>>>>
>>>>> Regards,
>>>>> Randeep
>>>>>
>>>>>> On Thu, Oct 27, 2016 at 5:02 PM, Randeep <randeep123@gmail.com> wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> url http://jitp1.dmain.com= /dashw/abpnews/manifest.mpd
>>>>>> <http://jitp1.lukup.com/dashw/abpnews= /manifest.mpd?starttime=3D1477454400000&stoptime=3D1477456200= 000> will
>>>>>> give the live content
>>>>>>
>>>>>> url http://jitp1.dm= ain.com/dashw/abpnews/manifest.mpd?startt
>>>>>> ime=3D1477454400000&stoptime=3D1477456200= 000
>>>>>> <http://jitp1.lukup.com/dashw/abpnews= /manifest.mpd?starttime=3D1477454400000&stoptime=3D1477456200= 000>
>>>>>> will give the recorded content from the starttime = to endtime. The manifest
>>>>>> file will be for the specified time.
>>>>>>
>>>>>> but in that case if we cache the response without = query strings for the
>>>>>> above, it might conflict with the live requests! >>>>>>
>>>>>> I think its better not cache the manifest url with= query strings. Only
>>>>>> the video chunks and manifest file without query s= tring we will cache.
>>>>>> Is that possible?
>>>>>>
>>>>>> Regards,
>>>>>> Randeep
>>>>>>
>>>>>> On Thu, Oct 27, 2016 at 4:50 PM, Reindl Harald <= ;h.reindl@thelounge.net> >>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Am 27.10.2016 um 13:05 schrieb Randeep: >>>>>>>>
>>>>>>>> Our urls are like
>>>>>>>>
>>>>>>>> http:= //jitp1.dmain.com/dashw/abpnews/manifest.mpd?starttime=3D
>>>>>>>> 1477454400000&stoptime=3D14774562= 00000
>>>>>>>> <http= ://jitp1.lukup.com/dashw/abpnews/manifest.mpd?starttime
>>>>>>>> =3D1477454400000&stoptime=3D14774= 56200000>
>>>>>>>>
>>>>>>>> We need to cache only
>>>>>>>> http://jitp1.dmain= .com/dashw/abpnews/manifest.mpd
>>>>>>>> <http= ://jitp1.lukup.com/dashw/abpnews/manifest.mpd?starttime
>>>>>>>> =3D1477454400000&stoptime=3D14774= 56200000>
>>>>>>>>
>>>>>>>
>>>>>>> but *why* are your URLs than that way?
>>>>>>>
>>>>>>> if that params don't do anything remove th= em
>>>>>>>
>>>>>>> if you configrue your proxy to ignore params a= nd always deliver the
>>>>>>> same content that will for sure break somethin= g else and in doubt it will
>>>>>>> break terrible
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> 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>
>>>
>>>
>>>
>>
>>
>> --
>> Randeep
>> Mob: +9194= 47831699[kerala]
>> Mob: +9198= 80050349[B'lore]
>> http://twitter.com/Randeeppr
>> http://in.linkedin.com/in/randeeppr
>>
>>
>> [image: --]
>> Randeep Raman
>> [image: http://]about.me/Randeeppr
>> <http://about.me/Randeeppr>
>



--
Ra= ndeep
Mob: +919447831699[kerala]
Mob: +919880050349[B'lore]
http://twitter.com= /Randeeppr