[mythtv-users] Frontend services API question

Dan Wilga mythtv-users2 at dwilga-linux1.amherst.edu
Wed Mar 18 19:52:12 UTC 2015


On 3/18/15 3:14 PM, Bill Meek wrote:
> On 03/18/2015 01:47 PM, Phil Bridges wrote:
>> On Wed, Mar 18, 2015 at 1:17 PM, Bill Meek <keemllib at gmail.com> wrote:
> ...
>>> I see the same with Firefox.
>>>
>>> Try it with curl (I thing you're getting cached information.):
>>>
>>>      curl <BE>:6547/Frontend/GetStatus|sed 's/></>\n</g'
>>>
>>> The sed is just to make it easier to read.
>>>
>>>
>>>
>> Thanks.  That did it.  Ifind it a little odd, though, that the Chrome 
>> REST
>> tools keep seeing the cached data.
>
> It is odd. The 1st response contains an ETag. The 2nd query includes the
> same ETag (correctly, I believe), but even though the FE screen has
> changed from Watch Recordings to actual Playback (for my test), the
> FE returns a 304 Not Modified in the response.
>
In your browser, you could also try adding a random number to the end, 
and change it every time you want a new version:

   mythbackend:6547/Frontend/GetStatus?foo=12345

This technique is often used by Javascript libraries to avoid ornery 
clients that like to keep old stuff.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20150318/8c5783ff/attachment.html>


More information about the mythtv-users mailing list