Hello - another strange problem here. I am using an AppDaemon Python script to create a static web page in /config/www/my_location/index.html. This updates index.html every hour.
This displays fine. However changes to the page are never reflected on the dashboard. Update index.html - it shows the old contents. Reload the dashboard - it shows the old contents. Delete index.html - it shows the old contents. Delete the card and recreate a new one - it shows the old contents even if the file is still deleted. Reboot the HA host entirely - you guessed it, it shows the old contents. You get the idea.
Change the name to index2.html and change the card - it shows the new contents.
What is going on here? Where is the cache? How do I fix this?
It does seem to be the browser cache - thank you for the hint. Force refresh of the page - it shows the old content. Move to a Chrome incognito window - shows the new content, and updates each time index.html updates.
Question is then - how to fix this? I am mostly interested in how this will display on the Fully Kiosk browser on the main dashboard. This seems to mimic Chrome in behaviour.
Nope - no effect. This does work refreshing other pages, I use it on other pages, but does not seem to work in this case. I Googled other ideas such as append a random string to the file to force refresh, but that also does not work.
I have index.html open in the file editor on HA, am editing it and then reloading the dashboard page - it is stubbornly unmoved.
However I tried, by accident actually, switching the two meta lines around and that seems to have made it work. ie. the meta refresh comes after the meta Cache-control. I can’t imagine why this would make a difference, but what do I know. Perhaps this is just a coincidence again, I will observe and report again.
Yeah, this is not at all scientific - but logical trial and error. The AppDaemon is now running fine, every 15 minutes it pulls the calendar contents, and generates the HTML. The refresh in the HTML is set to 10 minutes, they are not synchronised which does not matter at this stage.
What seems to happen is the dashboard on a Samsung tablet, running Fully Kiosk, updates OK, but Chrome running on the desktop has some kinda bizarre caching that just does not show changes reliably. What really matters is the Fully Dashboard, but still this will aggravate my OCD so will be a challenge for after Easter.
The repository is now on GitHub if anyone wants to have a look.
I defeated this mess with adding a simple javascript to the static HTML file to append a unix time query string. It “stops” the page from loading too. Ignore the ampersand redundancy, it’s needed in my tablet browser for no reason. Added this to header.