Background image not reloaded

Hi guys,

background: I have script which is downloading image every day and saving it to /config/www/images/bg.jpg .This image is used as background for all views specified in themes.yaml like

lovelace-background: center / cover no-repeat fixed url('/local/images/bg.jpg')

So this file is overwritten everyday at same time (cron scheduled) and after that I am running automation in HA to run service frontend.reload_themes.

Issue is this images are not reloading in android app. Closing app (removed from background processes) does not help (I have wall mounted tabled running HA app and I dont want to do some manual process to avoid this issue). Everything works fine when I open HA in browser.

I tried something like this but gave up. I think it’s the browser cache but I could be wrong.

I ended up using conditional cards to display a different image at different times of the day, but I don’t think this will work here if its a brand new image each day.

HA frontend uses very heavy caching techniques. You must use a unique file name if you want the frontend to load a new image instead of a cached one.