It would be nice if a plugin could tell the cached screen to "refresh earlier" than the configured threshold.
My usercase: I have a day planner being displayed and contain certain elements that changes on specific times. For example the "current hour" digit is highlited (and the planner smallest division is 15 minutes, but lets keep it simple). If I leave the refresh to 900 seconds, if the screen is loaded at 09:56 , the highlighted hour would be "09" until 10:11.
When polling the URL for the plugin, I could add a "Expires" header. In the usercase above, if it gets polled at 09:56, the "Expires" would be set to 10:00 and the screen gets transmited to the device with a refresh of 4 * 60 seconds instead of 900.
It would be a nice way to avoid outdated information to be shown. In case of a playlist, it just moves to the next screen earlier and if it is a single item playlist, it would just refresh. In case of multiple polling URLs, just use the smallest "Expires" returned.
I have a playlist "sleep" (because I want custom sleep screens) that have refresh set to 3600. It would also be nice to avoid having to configure them to switch back to "main" one hour ealier, in order to deal with the screen be polled 1 minute before the sleep ends.
From what I understood in the trmnl, the firmware "sleeps" the hardware while it waits the refresh time to pass.
Still, I believe it should be a toggle option as many places set Expires to epoch or "now() -1" to avoid caching and also the configured device/playlist refresh to be used in case "Expires" sends a larger value.
It would be nice if a plugin could tell the cached screen to "refresh earlier" than the configured threshold.
My usercase: I have a day planner being displayed and contain certain elements that changes on specific times. For example the "current hour" digit is highlited (and the planner smallest division is 15 minutes, but lets keep it simple). If I leave the refresh to 900 seconds, if the screen is loaded at 09:56 , the highlighted hour would be "09" until 10:11.
When polling the URL for the plugin, I could add a "Expires" header. In the usercase above, if it gets polled at 09:56, the "Expires" would be set to 10:00 and the screen gets transmited to the device with a refresh of
4 * 60seconds instead of 900.It would be a nice way to avoid outdated information to be shown. In case of a playlist, it just moves to the next screen earlier and if it is a single item playlist, it would just refresh. In case of multiple polling URLs, just use the smallest "Expires" returned.
I have a playlist "sleep" (because I want custom sleep screens) that have refresh set to 3600. It would also be nice to avoid having to configure them to switch back to "main" one hour ealier, in order to deal with the screen be polled 1 minute before the sleep ends.
From what I understood in the trmnl, the firmware "sleeps" the hardware while it waits the refresh time to pass.
Still, I believe it should be a toggle option as many places set Expires to epoch or "now() -1" to avoid caching and also the configured device/playlist refresh to be used in case "Expires" sends a larger value.