Michael Herger wrote:
I wonder if we put a random argument that changes with every refresh in the Handheld meta tag if it would solve the problem. I don't see an obvious Template Toolkit function for random, am I missing one?


There is: Math.rand - math the math plugin is not installed. One solution just good enough might be adding seconds to the url. Try the following in the Handheld/pageheader.html:

[% IF refresh && refreshurl %]<meta http-equiv="refresh" content="[% refresh %]; [% refreshurl %]&player=[% player | uri %]&rand=[% USE Date; Date.format(Date.now, '%M%S') %]">[% END %]

This should add a parameter rand=2345 to the url (minutes and seconds).


Sweet, this worked.

I actually made it %s as that should always be unique, and added a semicolon after Date.format();

[% IF refresh && refreshurl %]<meta http-equiv="refresh" content="[% refresh %]; [% refreshurl %]&player=[% player | uri %]&rand=[% USE Date; Date.format(Date.now, '%s'); %]">[% END %]

Nasty hack to get around it..  but at least it works.

Thanks Michael.

-- Mike
_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to