And I was able to integrate it directly into a custom home assistant panel pretty easily by adding this to my configuration.yaml and copying my build to the www folder.
However I noticed when using home assistant it caches my build files… So if I make a new build and copy over the files, and refresh the browser it doesn’t update.
On desktop I can force update it by restarting my home assistant (which isn’t ideal but at least it works).
However when using the home assistant app on my iPhone and iPad, even a restart of home assistant doesn’t clear the cache and let me see / use a newer version of my dashboard.
The only way I have found to get home assistant to show the latest files has been to remove the app from my device entirely and re-install home assistant, and then log in again, which is a huge pain as I’m actively trying to use this while I’m working on it.
Is there any way to turn off these strict cache policies or at least lower them to only be cached for e.g. 1 hour?
You should also be able to do this by refreshing the page with the web browser inspector open (assuming you have enabled the setting - cache disabled when the inspector is open - in the inspector).
For the mobile apps you can go to Settings > Companion App > Debugging > Reset Frontend Cache. Then go back to the dashboard and pull down to refresh.
@tom_l Hmm I did try the “disabled cache” on my browser while developing it, but it doesn’t seem to be enough to get home assistant to refresh it.
On the app though, so happy to see there’s a reset cache button in there. Thank you! Much more reasonable than deleting the app and reinstalling every time I want to use the latest version.