On Thu, Oct 27, 2016 at 11:41 PM, Randeep <randeep...@gmail.com> 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 <randeep...@gmail.com> wrote:
>
>> Hi,
>>
>> url http://jitp1.dmain.com/dashw/abpnews/manifest.mpd
>> <http://jitp1.lukup.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
>> <http://jitp1.lukup.com/dashw/abpnews/manifest.mpd?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.rei...@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
>>>> <http://jitp1.lukup.com/dashw/abpnews/manifest.mpd?starttime
>>>> =1477454400000&stoptime=1477456200000>
>>>>
>>>> We need to cache only
>>>> http://jitp1.dmain.com/dashw/abpnews/manifest.mpd
>>>> <http://jitp1.lukup.com/dashw/abpnews/manifest.mpd?starttime
>>>> =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
>> <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>
>
>

Reply via email to